Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182083
b: refs/heads/master
c: fc48c41
h: refs/heads/master
i:
  182081: e473496
  182079: 7af2a49
v: v3
  • Loading branch information
Wu Zhangjin authored and Ralf Baechle committed Feb 27, 2010
1 parent 716eabd commit bbf9f1e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 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: e52dd9fc6b9e0c17b220bd38371ff15032a1a155
refs/heads/master: fc48c41af81b953578a54f80ad07d2f1efa81378
13 changes: 11 additions & 2 deletions trunk/arch/mips/loongson/common/reset.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,26 @@ static void loongson_restart(char *command)
((void (*)(void))ioremap_nocache(LOONGSON_BOOT_BASE, 4)) ();
}

static void loongson_halt(void)
static void loongson_poweroff(void)
{
mach_prepare_shutdown();
unreachable();
}

static void loongson_halt(void)
{
pr_notice("\n\n** You can safely turn off the power now **\n\n");
while (1) {
if (cpu_wait)
cpu_wait();
}
}

static int __init mips_reboot_setup(void)
{
_machine_restart = loongson_restart;
_machine_halt = loongson_halt;
pm_power_off = loongson_halt;
pm_power_off = loongson_poweroff;

return 0;
}
Expand Down

0 comments on commit bbf9f1e

Please sign in to comment.