Re: [PATCH] MIPS: Provide fallback reboot/poweroff/halt implementations

2015-03-24 Thread Andrew Bresticker
On Tue, Mar 24, 2015 at 7:22 AM, James Hogan wrote: > Hi Andrew, > > On 04/03/15 23:59, Andrew Bresticker wrote: >> If a machine-specific hook is not implemented for restart, poweroff, >> or halt, fall back to halting secondary CPUs, disabling interrupts, >> and spinning. In the case of restart,

Re: [PATCH] MIPS: Provide fallback reboot/poweroff/halt implementations

2015-03-24 Thread Andrew Bresticker
Hi James, On Tue, Mar 24, 2015 at 7:22 AM, James Hogan wrote: > Hi Andrew, > > On 04/03/15 23:59, Andrew Bresticker wrote: >> If a machine-specific hook is not implemented for restart, poweroff, >> or halt, fall back to halting secondary CPUs, disabling interrupts, >> and spinning. In the case o

Re: [PATCH] MIPS: Provide fallback reboot/poweroff/halt implementations

2015-03-24 Thread James Hogan
Hi Andrew, On 04/03/15 23:59, Andrew Bresticker wrote: > If a machine-specific hook is not implemented for restart, poweroff, > or halt, fall back to halting secondary CPUs, disabling interrupts, > and spinning. In the case of restart, attempt to restart the system > via do_kernel_restart() (whic

Re: [PATCH] MIPS: Provide fallback reboot/poweroff/halt implementations

2015-03-06 Thread Maciej W. Rozycki
On Wed, 4 Mar 2015, Andrew Bresticker wrote: > If a machine-specific hook is not implemented for restart, poweroff, > or halt, fall back to halting secondary CPUs, disabling interrupts, > and spinning. In the case of restart, attempt to restart the system > via do_kernel_restart() (which will cal

[PATCH] MIPS: Provide fallback reboot/poweroff/halt implementations

2015-03-04 Thread Andrew Bresticker
If a machine-specific hook is not implemented for restart, poweroff, or halt, fall back to halting secondary CPUs, disabling interrupts, and spinning. In the case of restart, attempt to restart the system via do_kernel_restart() (which will call any registered restart handlers) before halting. Si