diff options
author | Borislav Petkov <bp@suse.de> | 2019-03-30 14:20:22 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-04-08 12:26:09 +0300 |
commit | 108ec36b699475001f5af81ff7db624427d14dbe (patch) | |
tree | c3a7a4cb8db9b935c4c9fb18d1b1b7959d6b3f0e /drivers/cpufreq/powernow-k8.c | |
parent | 9083e4986124389e2a7c0ffca95630a4983887f0 (diff) | |
download | linux-108ec36b699475001f5af81ff7db624427d14dbe.tar.xz |
drivers/cpufreq: Convert some slow-path static_cpu_has() callers to boot_cpu_has()
Using static_cpu_has() is pointless on those paths, convert them to the
boot_cpu_has() variant.
No functional changes.
Signed-off-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/cpufreq/powernow-k8.c')
-rw-r--r-- | drivers/cpufreq/powernow-k8.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpufreq/powernow-k8.c b/drivers/cpufreq/powernow-k8.c index fb77b39a4ce3..3c12e03fa343 100644 --- a/drivers/cpufreq/powernow-k8.c +++ b/drivers/cpufreq/powernow-k8.c @@ -1178,7 +1178,7 @@ static int powernowk8_init(void) unsigned int i, supported_cpus = 0; int ret; - if (static_cpu_has(X86_FEATURE_HW_PSTATE)) { + if (boot_cpu_has(X86_FEATURE_HW_PSTATE)) { __request_acpi_cpufreq(); return -ENODEV; } |