Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 201490
b: refs/heads/master
c: 3d3f78d
h: refs/heads/master
v: v3
  • Loading branch information
Russell King committed Jul 27, 2010
1 parent 5315d46 commit 18527f7
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 10 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: 5388a6b266e9c3357353332ba0cd5549082887f1
refs/heads/master: 3d3f78d752bfada5b6041f2f7bd0833d8bdf7a4a
4 changes: 0 additions & 4 deletions trunk/arch/arm/kernel/machine_kexec.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ void machine_kexec_cleanup(struct kimage *image)
{
}

void machine_shutdown(void)
{
}

void machine_crash_shutdown(struct pt_regs *regs)
{
}
Expand Down
12 changes: 11 additions & 1 deletion trunk/arch/arm/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,19 +198,29 @@ int __init reboot_setup(char *str)

__setup("reboot=", reboot_setup);

void machine_halt(void)
void machine_shutdown(void)
{
#ifdef CONFIG_SMP
smp_send_stop();
#endif
}

void machine_halt(void)
{
machine_shutdown();
while (1);
}

void machine_power_off(void)
{
machine_shutdown();
if (pm_power_off)
pm_power_off();
}

void machine_restart(char *cmd)
{
machine_shutdown();
arm_pm_restart(reboot_mode, cmd);
}

Expand Down
11 changes: 7 additions & 4 deletions trunk/arch/arm/kernel/smp.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,10 +471,13 @@ static DEFINE_SPINLOCK(stop_lock);
*/
static void ipi_cpu_stop(unsigned int cpu)
{
spin_lock(&stop_lock);
printk(KERN_CRIT "CPU%u: stopping\n", cpu);
dump_stack();
spin_unlock(&stop_lock);
if (system_state == SYSTEM_BOOTING ||
system_state == SYSTEM_RUNNING) {
spin_lock(&stop_lock);
printk(KERN_CRIT "CPU%u: stopping\n", cpu);
dump_stack();
spin_unlock(&stop_lock);
}

set_cpu_online(cpu, false);

Expand Down

0 comments on commit 18527f7

Please sign in to comment.