Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 34094
b: refs/heads/master
c: 477bcae
h: refs/heads/master
v: v3
  • Loading branch information
Corey Minyard authored and Paul Mackerras committed Sep 13, 2006
1 parent eae4a14 commit 8b778e2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 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: c3412dcb75ff4d64b44bedc72761d5707d19edf7
refs/heads/master: 477bcae4c289a60f2303fbd4a3a875dcca647cf8
17 changes: 12 additions & 5 deletions trunk/arch/ppc/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,8 @@ void machine_restart(char *cmd)
ppc_md.restart(cmd);
}

void machine_power_off(void)
static void ppc_generic_power_off(void)
{
#ifdef CONFIG_NVRAM
nvram_sync();
#endif
ppc_md.power_off();
}

Expand All @@ -143,7 +140,17 @@ void machine_halt(void)
ppc_md.halt();
}

void (*pm_power_off)(void) = machine_power_off;
void (*pm_power_off)(void) = ppc_generic_power_off;

void machine_power_off(void)
{
#ifdef CONFIG_NVRAM
nvram_sync();
#endif
if (pm_power_off)
pm_power_off();
ppc_generic_power_off();
}

#ifdef CONFIG_TAU
extern u32 cpu_temp(unsigned long cpu);
Expand Down

0 comments on commit 8b778e2

Please sign in to comment.