diff options
Diffstat (limited to 'arch/i386/kernel/acpi/cstate.c')
-rw-r--r-- | arch/i386/kernel/acpi/cstate.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/i386/kernel/acpi/cstate.c b/arch/i386/kernel/acpi/cstate.c index 20563e52c622..12e937c1ce4b 100644 --- a/arch/i386/kernel/acpi/cstate.c +++ b/arch/i386/kernel/acpi/cstate.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/init.h> | 11 | #include <linux/init.h> |
12 | #include <linux/acpi.h> | 12 | #include <linux/acpi.h> |
13 | #include <linux/cpu.h> | 13 | #include <linux/cpu.h> |
14 | #include <linux/sched.h> | ||
14 | 15 | ||
15 | #include <acpi/processor.h> | 16 | #include <acpi/processor.h> |
16 | #include <asm/acpi.h> | 17 | #include <asm/acpi.h> |
@@ -155,10 +156,8 @@ static int __init ffh_cstate_init(void) | |||
155 | 156 | ||
156 | static void __exit ffh_cstate_exit(void) | 157 | static void __exit ffh_cstate_exit(void) |
157 | { | 158 | { |
158 | if (cpu_cstate_entry) { | 159 | free_percpu(cpu_cstate_entry); |
159 | free_percpu(cpu_cstate_entry); | 160 | cpu_cstate_entry = NULL; |
160 | cpu_cstate_entry = NULL; | ||
161 | } | ||
162 | } | 161 | } |
163 | 162 | ||
164 | arch_initcall(ffh_cstate_init); | 163 | arch_initcall(ffh_cstate_init); |