diff options
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/cpuid.c | 4 | ||||
-rw-r--r-- | arch/x86/kernel/msr.c | 4 |
2 files changed, 2 insertions, 6 deletions
diff --git a/arch/x86/kernel/cpuid.c b/arch/x86/kernel/cpuid.c index 288e7a6598ac..daff52a62248 100644 --- a/arch/x86/kernel/cpuid.c +++ b/arch/x86/kernel/cpuid.c | |||
@@ -154,12 +154,10 @@ static int __cpuinit cpuid_class_cpu_callback(struct notifier_block *nfb, | |||
154 | err = cpuid_device_create(cpu); | 154 | err = cpuid_device_create(cpu); |
155 | break; | 155 | break; |
156 | case CPU_UP_CANCELED: | 156 | case CPU_UP_CANCELED: |
157 | case CPU_UP_CANCELED_FROZEN: | ||
157 | case CPU_DEAD: | 158 | case CPU_DEAD: |
158 | cpuid_device_destroy(cpu); | 159 | cpuid_device_destroy(cpu); |
159 | break; | 160 | break; |
160 | case CPU_UP_CANCELED_FROZEN: | ||
161 | destroy_suspended_device(cpuid_class, MKDEV(CPUID_MAJOR, cpu)); | ||
162 | break; | ||
163 | } | 161 | } |
164 | return err ? NOTIFY_BAD : NOTIFY_OK; | 162 | return err ? NOTIFY_BAD : NOTIFY_OK; |
165 | } | 163 | } |
diff --git a/arch/x86/kernel/msr.c b/arch/x86/kernel/msr.c index 4dfb40530057..1f3abe048e93 100644 --- a/arch/x86/kernel/msr.c +++ b/arch/x86/kernel/msr.c | |||
@@ -162,12 +162,10 @@ static int __cpuinit msr_class_cpu_callback(struct notifier_block *nfb, | |||
162 | err = msr_device_create(cpu); | 162 | err = msr_device_create(cpu); |
163 | break; | 163 | break; |
164 | case CPU_UP_CANCELED: | 164 | case CPU_UP_CANCELED: |
165 | case CPU_UP_CANCELED_FROZEN: | ||
165 | case CPU_DEAD: | 166 | case CPU_DEAD: |
166 | msr_device_destroy(cpu); | 167 | msr_device_destroy(cpu); |
167 | break; | 168 | break; |
168 | case CPU_UP_CANCELED_FROZEN: | ||
169 | destroy_suspended_device(msr_class, MKDEV(MSR_MAJOR, cpu)); | ||
170 | break; | ||
171 | } | 169 | } |
172 | return err ? NOTIFY_BAD : NOTIFY_OK; | 170 | return err ? NOTIFY_BAD : NOTIFY_OK; |
173 | } | 171 | } |