From: Andrew Bresticker Date: Wed, 25 Mar 2015 17:25:44 +0000 (-0700) Subject: MIPS: Provide fallback reboot/poweroff/halt implementations X-Git-Tag: omap-for-v4.1/fixes-rc1~111^2~114 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f45e388ff0f90b922b77bef959a2cfb0645cffbe;p=pandora-kernel.git MIPS: Provide fallback reboot/poweroff/halt implementations 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. Signed-off-by: Andrew Bresticker Cc: James Hogan Cc: Maciej W. Rozycki Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/9600/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed