]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: acpi-cpufreq: Clean up hot plug notifier callback
authorRichard Cochran <rcochran@linutronix.de>
Fri, 18 Mar 2016 21:26:11 +0000 (22:26 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sat, 19 Mar 2016 23:39:04 +0000 (00:39 +0100)
commit71e5c4dafc6c38824bdebdee749c9573157f24dc
treebd57ede6bda570eaabd4da0069da727ef2ebfcd3
parentf6be20b502f050cc9f81d799a879d60ce5fda3d0
cpufreq: acpi-cpufreq: Clean up hot plug notifier callback

This driver has two issues.  First, it tries to fiddle with the hot
plugged CPU's MSR on the UP_PREPARE event, at a time when the CPU is
not yet online.  Second, the driver sets the "boost-disable" bit for a
CPU when going down, but does not clear the bit again if the CPU comes
up again due to DOWN_FAILED.

This patch fixes the issues by changing the driver to react to the
ONLINE/DOWN_FAILED events instead of UP_PREPARE.  As an added benefit,
the driver also becomes symmetric with respect to the hot plug
mechanism.

Signed-off-by: Richard Cochran <rcochran@linutronix.de>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/acpi-cpufreq.c