]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq/intel_pstate: Load only on Intel hardware
authorBorislav Petkov <bp@suse.de>
Mon, 1 Apr 2019 15:03:45 +0000 (17:03 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 1 Apr 2019 21:39:23 +0000 (23:39 +0200)
commit4e98648119bdbf83de14115b6a7acd4742f0e4a0
tree18266d5ae625c7f3baa1340f77327ffcecb8f6de
parentb7a31ea379e672048cd04255d27306c97d980b41
cpufreq/intel_pstate: Load only on Intel hardware

This driver is Intel-only so loading on anything which is not Intel is
pointless. Prevent it from doing so.

While at it, correct the "not supported" print statement to say CPU
"model" which is what that test does.

Fixes: d32b64acda2c (cpufreq: intel_pstate: Add reasons for failure and debug messages)
Suggested-by: Erwan Velu <e.velu@criteo.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c