cpufreq: intel_pstate: Reflect current no_turbo state correctly
authorGabriele Mazzotta <gabriele.mzt@gmail.com>
Mon, 13 Oct 2014 15:37:41 +0000 (08:37 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 23 Oct 2014 20:59:59 +0000 (22:59 +0200)
commit4521e1a0ce173daa23dfef8312d09051e057ff8e
tree50e75a75204f297d8867c5e8e6ec00ee8fb6deca
parentc034b02e213d271b98c45c4a7b54af8f69aaac1e
cpufreq: intel_pstate: Reflect current no_turbo state correctly

Some BIOSes modify the state of MSR_IA32_MISC_ENABLE_TURBO_DISABLE
based on the current power source for the system battery AC vs
battery. Reflect the correct current state and ability to modify the
no_turbo sysfs file based on current state of
MSR_IA32_MISC_ENABLE_TURBO_DISABLE.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=83151
Cc: All applicable <stable@vger.kernel.org>
Signed-off-by: Gabriele Mazzotta <gabriele.mzt@gmail.com>
Signed-off-by: Dirk Brandewie <dirk.j.brandewie@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c