Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 274187
b: refs/heads/master
c: ec27329
h: refs/heads/master
i:
  274185: 15e611c
  274183: 8c1ba5f
v: v3
  • Loading branch information
Benjamin Herrenschmidt committed Sep 20, 2011
1 parent 6e0ab57 commit 26c1167
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 7 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: daea1175a9f0f70eab5b33e2827d57ba8c686816
refs/heads/master: ec27329ffb3b4f619be9f0065c473fcb36ea52ce
32 changes: 26 additions & 6 deletions trunk/arch/powerpc/platforms/powernv/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,19 +83,39 @@ static void pnv_show_cpuinfo(struct seq_file *m)
of_node_put(root);
}

static void pnv_restart(char *cmd)
static void __noreturn pnv_restart(char *cmd)
{
for (;;);
long rc = OPAL_BUSY;

while (rc == OPAL_BUSY || rc == OPAL_BUSY_EVENT) {
rc = opal_cec_reboot();
if (rc == OPAL_BUSY_EVENT)
opal_poll_events(NULL);
else
mdelay(10);
}
for (;;)
opal_poll_events(NULL);
}

static void pnv_power_off(void)
static void __noreturn pnv_power_off(void)
{
for (;;);
long rc = OPAL_BUSY;

while (rc == OPAL_BUSY || rc == OPAL_BUSY_EVENT) {
rc = opal_cec_power_down(0);
if (rc == OPAL_BUSY_EVENT)
opal_poll_events(NULL);
else
mdelay(10);
}
for (;;)
opal_poll_events(NULL);
}

static void pnv_halt(void)
static void __noreturn pnv_halt(void)
{
for (;;);
pnv_power_off();
}

static unsigned long __init pnv_get_boot_time(void)
Expand Down

0 comments on commit 26c1167

Please sign in to comment.