cpufreq: intel_pstate: Check cpuid for MSR_HWP_INTERRUPT
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Tue, 19 Jul 2016 23:52:01 +0000 (16:52 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 21 Jul 2016 12:29:30 +0000 (14:29 +0200)
commitda7de91c3e237f3ace1aa29b82c69702dc0176c5
treef98877f23dd6ac4897d30dfce2ad328c0b48126e
parentbc95a454b6dcf6aa464deef86e18c1770b8682b8
cpufreq: intel_pstate: Check cpuid for MSR_HWP_INTERRUPT

The MSR MSR_HWP_INTERRUPT is valid only when CPUID.06H:EAX[8] = 1, so
check for feature before accessing this MSR.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c