]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: intel_pstate: Fix limits issue with operation mode switching
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 27 Feb 2017 23:05:01 +0000 (00:05 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 28 Feb 2017 12:55:52 +0000 (13:55 +0100)
commit1e3c619f93f79a3afd60074548b013bb4029849f
treefc5e53d4c1700681df745dfc9c45afc93f3fb8f3
parent5590e16bc0e67e1ac01eb8188bc5dcb2006f1853
cpufreq: intel_pstate: Fix limits issue with operation mode switching

There is a problem with intel_pstate operation mode switching
introduced by commit 5dc3ef13de79 (cpufreq: intel_pstate: Operation
mode control from sysfs), because the global sysfs limits are
preserved across operation modes while per-policy limits are
reinitialized from scratch on a mode switch and both sets of limits
may get out of sync this way.

Fix that by always reinitializing the global limits upon the
registration of the driver.

Fixes: 5dc3ef13de79 (cpufreq: intel_pstate: Operation mode control from sysfs)
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
drivers/cpufreq/intel_pstate.c