diff options
Diffstat (limited to 'arch/x86/kernel/process.c')
-rw-r--r-- | arch/x86/kernel/process.c | 17 |
1 files changed, 2 insertions, 15 deletions
diff --git a/arch/x86/kernel/process.c b/arch/x86/kernel/process.c index 607af0d4d5ef..81a5f5e8f142 100644 --- a/arch/x86/kernel/process.c +++ b/arch/x86/kernel/process.c | |||
@@ -277,18 +277,6 @@ void exit_idle(void) | |||
277 | } | 277 | } |
278 | #endif | 278 | #endif |
279 | 279 | ||
280 | void arch_cpu_idle_prepare(void) | ||
281 | { | ||
282 | /* | ||
283 | * If we're the non-boot CPU, nothing set the stack canary up | ||
284 | * for us. CPU0 already has it initialized but no harm in | ||
285 | * doing it again. This is a good place for updating it, as | ||
286 | * we wont ever return from this function (so the invalid | ||
287 | * canaries already on the stack wont ever trigger). | ||
288 | */ | ||
289 | boot_init_stack_canary(); | ||
290 | } | ||
291 | |||
292 | void arch_cpu_idle_enter(void) | 280 | void arch_cpu_idle_enter(void) |
293 | { | 281 | { |
294 | local_touch_nmi(); | 282 | local_touch_nmi(); |
@@ -312,6 +300,8 @@ void arch_cpu_idle(void) | |||
312 | { | 300 | { |
313 | if (cpuidle_idle_call()) | 301 | if (cpuidle_idle_call()) |
314 | x86_idle(); | 302 | x86_idle(); |
303 | else | ||
304 | local_irq_enable(); | ||
315 | } | 305 | } |
316 | 306 | ||
317 | /* | 307 | /* |
@@ -368,9 +358,6 @@ void amd_e400_remove_cpu(int cpu) | |||
368 | */ | 358 | */ |
369 | static void amd_e400_idle(void) | 359 | static void amd_e400_idle(void) |
370 | { | 360 | { |
371 | if (need_resched()) | ||
372 | return; | ||
373 | |||
374 | if (!amd_e400_c1e_detected) { | 361 | if (!amd_e400_c1e_detected) { |
375 | u32 lo, hi; | 362 | u32 lo, hi; |
376 | 363 | ||