[PATCH] Fix powernow oops on dual-core athlon
authorDave Jones <davej@redhat.com>
Sat, 30 Jul 2005 20:30:30 +0000 (21:30 +0100)
committerChris Wright <chrisw@osdl.org>
Fri, 5 Aug 2005 07:04:25 +0000 (00:04 -0700)
commit2d0c661b972f94baa8fd5f80b3f49e76056fdf79
treebcf45a7099b5e302324eda09ec43bd3c189edc04
parent31278a7db3987f5d1b487f11637096e1169582d1
[PATCH] Fix powernow oops on dual-core athlon

Date: Thu, 28 Jul 2005 16:38:21 +0000 (-0700)
Subject: powernow-k8 requires that a data structure for
X-Git-Tag: v2.6.13-rc4
X-Git-Url: http://www.kernel.org/git/gitweb.cgi?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=03938c3f1062b0f279a0ef937a471d4db83702ed

powernow-k8 requires that a data structure for
each core be created in the _cpu_init function
call.  The cpufreq infrastructure doesn't call
_cpu_init for the second core in each processor.
Some systems crashed when _get was called with
an odd-numbered core because it tried to
dereference a NULL pointer since the data
structure had not been created.

The attached patch solves the problem by
initializing data structures for all shared
cores in the _cpu_init function.  It should
apply to 2.6.12-rc6 and has been tested by
AMD and Sun.

Signed-off-by: Mark Langsdorf <mark.langsdorf@amd.com>
Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: Chris Wright <chrisw@osdl.org>
arch/i386/kernel/cpu/cpufreq/powernow-k8.c