]> git.baikalelectronics.ru Git - kernel.git/commit
[CPUFREQ] Fix stale cpufreq_cpu_governor pointer
authorPrarit Bhargava <prarit@redhat.com>
Thu, 12 Nov 2009 14:18:46 +0000 (09:18 -0500)
committerDave Jones <davej@redhat.com>
Wed, 18 Nov 2009 04:15:04 +0000 (23:15 -0500)
commit1c76dc89f4b4bd6c5886180e9030b051f474ab86
tree50ae248a292e85d3e784d12e2e6a37823048d98b
parentfc1d5ce39dc4032a2c132c1d349f86b054d414c3
[CPUFREQ] Fix stale cpufreq_cpu_governor pointer

Dave,

Attached is an update of my patch against the cpufreq fixes branch.

Before applying the patch I compiled and booted the tree to see if the panic
was still there -- to my surprise it was not.  This is because of the conversion
of cpufreq_cpu_governor to a char[].

While the panic is kaput, the problem of stale data continues and my patch is
still valid.  It is possible to end up with the wrong governor after hotplug
events because CPUFREQ_DEFAULT_GOVERNOR is statically linked to a default,
while the cpu siblings may have had a different governor assigned by a user.

ie) the patch is still needed in order to keep the governors assigned
properly when hotplugging devices

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Dave Jones <davej@redhat.com>
drivers/cpufreq/cpufreq.c