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)
commit4ab526468344c11d2d1807ae95feb1f5305dc014
tree18266d5ae625c7f3baa1340f77327ffcecb8f6de
parent79a3aaa7b82e3106be97842dedfd8429248896e6
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: 076b862c7e44 (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