Commit aa41eb99 authored by Andi Kleen's avatar Andi Kleen Committed by Linus Torvalds

[PATCH] x86_64: Mark powernow k8 init functions as __cpuinit

cpufreq init can be called when a CPU is set online.
Need to make powernow-k8's initialisation functions __cpuinit to
prevents oopses when a CPU is off/onlined on a AMD system

Cc: trenn@suse.de
Cc: mark.langsdorf@amd.com
Cc: davej@redhat.com
Signed-off-by: default avatarAndi Kleen <ak@suse.de>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 9d8d5a28
...@@ -980,7 +980,7 @@ static int powernowk8_verify(struct cpufreq_policy *pol) ...@@ -980,7 +980,7 @@ static int powernowk8_verify(struct cpufreq_policy *pol)
} }
/* per CPU init entry point to the driver */ /* per CPU init entry point to the driver */
static int __init powernowk8_cpu_init(struct cpufreq_policy *pol) static int __cpuinit powernowk8_cpu_init(struct cpufreq_policy *pol)
{ {
struct powernow_k8_data *data; struct powernow_k8_data *data;
cpumask_t oldmask = CPU_MASK_ALL; cpumask_t oldmask = CPU_MASK_ALL;
...@@ -1141,7 +1141,7 @@ static struct cpufreq_driver cpufreq_amd64_driver = { ...@@ -1141,7 +1141,7 @@ static struct cpufreq_driver cpufreq_amd64_driver = {
}; };
/* driver entry point for init */ /* driver entry point for init */
static int __init powernowk8_init(void) static int __cpuinit powernowk8_init(void)
{ {
unsigned int i, supported_cpus = 0; unsigned int i, supported_cpus = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment