[PATCH 2/7] powerpc: xmon should call machine_xxx not ppc_md.xxx directly
Mark A. Greer
mgreer at mvista.com
Tue Dec 4 16:44:30 EST 2007
From: Mark A. Greer <mgreer at mvista.com>
xmon should call machine_[restart|halt|power_off] instead of
ppc_md.[restart|halt|power_off].
Signed-off-by: Mark A. Greer <mgreer at mvista.com>
---
I'm not sure about this one. Does anyone see a problem with this?
arch/powerpc/xmon/xmon.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/powerpc/xmon/xmon.c b/arch/powerpc/xmon/xmon.c
index 121b04d..56267e3 100644
--- a/arch/powerpc/xmon/xmon.c
+++ b/arch/powerpc/xmon/xmon.c
@@ -908,11 +908,11 @@ static void bootcmds(void)
cmd = inchar();
if (cmd == 'r')
- ppc_md.restart(NULL);
+ machine_restart();
else if (cmd == 'h')
- ppc_md.halt();
+ machine_halt();
else if (cmd == 'p')
- ppc_md.power_off();
+ machine_power_off();
}
static int cpu_cmd(void)
More information about the Linuxppc-dev
mailing list