]> 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)
commit600eb03d2fa2576dd3915d6a0f878ba2320205bb
tree18266d5ae625c7f3baa1340f77327ffcecb8f6de
parent93e08937bc58c51cee8c371b7593b2be4a6d736c
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: 2c34e5db06db (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