summaryrefslogtreecommitdiffstats
path: root/arch/mips/pnx8550/common/reset.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2010-09-19 00:09:09 +0100
committerRalf Baechle <ralf@linux-mips.org>2010-10-04 18:33:57 +0100
commitc1b47e9508f74c152407323260f9fbb980d2fde1 (patch)
tree3e913dd2799fad90bc0856ced4826e97ade33480 /arch/mips/pnx8550/common/reset.c
parent863cb9bad8f992a9c171e90552045eac77808e84 (diff)
downloadtalos-op-linux-c1b47e9508f74c152407323260f9fbb980d2fde1.tar.gz
talos-op-linux-c1b47e9508f74c152407323260f9fbb980d2fde1.zip
MIPS: PNX8550: Sort out machine halt, restart and powerdown functions.
No rubbish printks - those belong to userspace. The halt function now actually halts the system and the poweroff function was deleted because it didn't actually power down the system. Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/pnx8550/common/reset.c')
-rw-r--r--arch/mips/pnx8550/common/reset.c20
1 files changed, 5 insertions, 15 deletions
diff --git a/arch/mips/pnx8550/common/reset.c b/arch/mips/pnx8550/common/reset.c
index fadd8744a6bc..e7a12ff304b9 100644
--- a/arch/mips/pnx8550/common/reset.c
+++ b/arch/mips/pnx8550/common/reset.c
@@ -22,29 +22,19 @@
*/
#include <linux/kernel.h>
+#include <asm/processor.h>
#include <asm/reboot.h>
#include <glb.h>
void pnx8550_machine_restart(char *command)
{
- char head[] = "************* Machine restart *************";
- char foot[] = "*******************************************";
-
- printk("\n\n");
- printk("%s\n", head);
- if (command != NULL)
- printk("* %s\n", command);
- printk("%s\n", foot);
-
PNX8550_RST_CTL = PNX8550_RST_DO_SW_RST;
}
void pnx8550_machine_halt(void)
{
- printk("*** Machine halt. (Not implemented) ***\n");
-}
-
-void pnx8550_machine_power_off(void)
-{
- printk("*** Machine power off. (Not implemented) ***\n");
+ while (1) {
+ if (cpu_wait)
+ cpu_wait();
+ }
}
OpenPOWER on IntegriCloud