Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 18331
b: refs/heads/master
c: b8e383d
h: refs/heads/master
i:
  18329: 10b3ed7
  18327: 3ee1f32
v: v3
  • Loading branch information
Kumar Gala authored and Paul Mackerras committed Jan 14, 2006
1 parent 278661e commit 3b516cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: 7a45fb19cef93574230827e6e2c97ad5760ddecd
refs/heads/master: b8e383d592daaa35c944a9083ee92c995dce66ca
9 changes: 6 additions & 3 deletions trunk/arch/powerpc/kernel/setup-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ void machine_shutdown(void)
void machine_restart(char *cmd)
{
machine_shutdown();
ppc_md.restart(cmd);
if (ppc_md.restart)
ppc_md.restart(cmd);
#ifdef CONFIG_SMP
smp_send_stop();
#endif
Expand All @@ -112,7 +113,8 @@ void machine_restart(char *cmd)
void machine_power_off(void)
{
machine_shutdown();
ppc_md.power_off();
if (ppc_md.power_off)
ppc_md.power_off();
#ifdef CONFIG_SMP
smp_send_stop();
#endif
Expand All @@ -129,7 +131,8 @@ EXPORT_SYMBOL_GPL(pm_power_off);
void machine_halt(void)
{
machine_shutdown();
ppc_md.halt();
if (ppc_md.halt)
ppc_md.halt();
#ifdef CONFIG_SMP
smp_send_stop();
#endif
Expand Down

0 comments on commit 3b516cd

Please sign in to comment.