[CPUFREQ] Restore previously used governor on a hot-replugged CPU
authorThomas Renninger <trenn@suse.de>
Mon, 9 Jul 2007 18:35:28 +0000 (11:35 -0700)
committerDave Jones <davej@redhat.com>
Fri, 13 Jul 2007 05:29:51 +0000 (01:29 -0400)
commit084f34939424161669467c19280dbcf637730314
tree85285adb98b7306a28152cf48bfae98d3f1f05c8
parent91973de736bc97dc04156242c5a4b00993b6c902
[CPUFREQ] Restore previously used governor on a hot-replugged CPU

Negative side effect: needs NR_CPUs pointer array of memory in
CONFIG_HOTPLUG_CPU case.

Still needs userspace track keeping and rewriting of governors if governors
change while a CPU is not active (always the governor at CPU remove time is
restored).

Move of policy->user_policy.governor assignment is just a minor cleanup.
http://bugzilla.kernel.org/show_bug.cgi?id=8671

Signed-off-by: Thomas Renninger <trenn@suse.de>
Signed-off-by: Mattia Dongili <malattia@linux.it>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Dave Jones <davej@redhat.com>
drivers/cpufreq/cpufreq.c