Skip to content

Commit

Permalink
cpufreq: intel_pstate: Replace boot_cpu_has()
Browse files Browse the repository at this point in the history
Replace boot_cpu_has() with cpu_feature_enabled().

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Link: https://patch.msgid.link/20240624162714.1431182-1-srinivas.pandruvada@linux.intel.com
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Srinivas Pandruvada authored and Rafael J. Wysocki committed Jun 25, 2024
1 parent 787025a commit acfc429
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/cpufreq/intel_pstate.c
Original file line number Diff line number Diff line change
Expand Up @@ -1633,7 +1633,7 @@ void notify_hwp_interrupt(void)
unsigned long flags;
u64 value;

if (!hwp_active || !boot_cpu_has(X86_FEATURE_HWP_NOTIFY))
if (!hwp_active || !cpu_feature_enabled(X86_FEATURE_HWP_NOTIFY))
return;

rdmsrl_safe(MSR_HWP_STATUS, &value);
Expand Down Expand Up @@ -1661,7 +1661,7 @@ static void intel_pstate_disable_hwp_interrupt(struct cpudata *cpudata)
{
bool cancel_work;

if (!boot_cpu_has(X86_FEATURE_HWP_NOTIFY))
if (!cpu_feature_enabled(X86_FEATURE_HWP_NOTIFY))
return;

/* wrmsrl_on_cpu has to be outside spinlock as this can result in IPC */
Expand Down

0 comments on commit acfc429

Please sign in to comment.