Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279810
b: refs/heads/master
c: ac15e00
h: refs/heads/master
v: v3
  • Loading branch information
Russell King committed Nov 10, 2011
1 parent 4eac5f2 commit 0a9ba79
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 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: 34adeda943e1fb10e8de022b834996e04241fa7d
refs/heads/master: ac15e00b1efe705b66a36d1a6a9db7f6ed524c43
20 changes: 9 additions & 11 deletions trunk/arch/arm/kernel/process.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,8 @@ void arm_machine_restart(char mode, const char *cmd)
/* Push out any further dirty data, and ensure cache is empty */
flush_cache_all();

/*
* Now call the architecture specific reboot code.
*/
/* Now call the architecture specific reboot code. */
arch_reset(mode, cmd);

/*
* Whoops - the architecture was unable to reboot.
* Tell the user!
*/
mdelay(1000);
printk("Reboot failed -- System halted\n");
while (1);
}

/*
Expand Down Expand Up @@ -250,7 +240,15 @@ void machine_power_off(void)
void machine_restart(char *cmd)
{
machine_shutdown();

arm_pm_restart(reboot_mode, cmd);

/* Give a grace period for failure to restart of 1s */
mdelay(1000);

/* Whoops - the platform was unable to reboot. Tell the user! */
printk("Reboot failed -- System halted\n");
while (1);
}

void __show_regs(struct pt_regs *regs)
Expand Down

0 comments on commit 0a9ba79

Please sign in to comment.