Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit acfc429

Browse files
spandruvadarafaeljw
authored andcommitted
cpufreq: intel_pstate: Replace boot_cpu_has()
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>
1 parent 787025a commit acfc429

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/cpufreq/intel_pstate.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1633,7 +1633,7 @@ void notify_hwp_interrupt(void)
16331633
unsigned long flags;
16341634
u64 value;
16351635

1636-
if (!hwp_active || !boot_cpu_has(X86_FEATURE_HWP_NOTIFY))
1636+
if (!hwp_active || !cpu_feature_enabled(X86_FEATURE_HWP_NOTIFY))
16371637
return;
16381638

16391639
rdmsrl_safe(MSR_HWP_STATUS, &value);
@@ -1661,7 +1661,7 @@ static void intel_pstate_disable_hwp_interrupt(struct cpudata *cpudata)
16611661
{
16621662
bool cancel_work;
16631663

1664-
if (!boot_cpu_has(X86_FEATURE_HWP_NOTIFY))
1664+
if (!cpu_feature_enabled(X86_FEATURE_HWP_NOTIFY))
16651665
return;
16661666

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

0 commit comments

Comments
 (0)