
The i386 port has its own reset_cpu() dispatch for its various supported CPU families, so the existing do_reset() function is simply altered to use the new prototype for __arch_restart().
In addition, the debug message and delay are duplicated from the generic code, so they are removed.
This reset code will probably work even when the CPU is in a bad state, so no separate __arch_emergency_restart() function is required.
Signed-off-by: Kyle Moffett Kyle.D.Moffett@boeing.com Cc: Graeme Russ graeme.russ@gmail.com --- arch/i386/cpu/cpu.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/arch/i386/cpu/cpu.c b/arch/i386/cpu/cpu.c index 2339cd4..b1454ba 100644 --- a/arch/i386/cpu/cpu.c +++ b/arch/i386/cpu/cpu.c @@ -122,10 +122,8 @@ int x86_cpu_init_r(void) } int cpu_init_r(void) __attribute__((weak, alias("x86_cpu_init_r")));
-int do_reset(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) +int __arch_restart(void) { - printf ("resetting ...\n"); - udelay(50000); /* wait 50 ms */ disable_interrupts(); reset_cpu(0);