Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14210
b: refs/heads/master
c: 3506229
h: refs/heads/master
v: v3
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Nov 15, 2005
1 parent 0c41d12 commit 0fc5798
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a88cde13bae3fffd6ecc812bdd02c91eafb6073e
refs/heads/master: 3506229ff9968e5dbc862a50285fbea0e8821b58
5 changes: 3 additions & 2 deletions trunk/arch/x86_64/kernel/reboot.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ static inline void kb_wait(void)

void machine_shutdown(void)
{
unsigned long flags;
/* Stop the cpus and apics */
#ifdef CONFIG_SMP
int reboot_cpu_id;
Expand All @@ -98,15 +99,15 @@ void machine_shutdown(void)
smp_send_stop();
#endif

local_irq_disable();
local_irq_save(flags);

#ifndef CONFIG_SMP
disable_local_APIC();
#endif

disable_IO_APIC();

local_irq_enable();
local_irq_restore(flags);
}

void machine_emergency_restart(void)
Expand Down
5 changes: 3 additions & 2 deletions trunk/arch/x86_64/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,13 +450,14 @@ int smp_call_function (void (*func) (void *info), void *info, int nonatomic,

void smp_stop_cpu(void)
{
unsigned long flags;
/*
* Remove this CPU:
*/
cpu_clear(smp_processor_id(), cpu_online_map);
local_irq_disable();
local_irq_save(flags);
disable_local_APIC();
local_irq_enable();
local_irq_restore(flags);
}

static void smp_really_stop_cpu(void *dummy)
Expand Down

0 comments on commit 0fc5798

Please sign in to comment.