openrisc: restart: Call common handlers before hanging
authorJoel Stanley <joel@jms.id.au>
Sun, 27 Dec 2020 09:14:46 +0000 (19:44 +1030)
committerStafford Horne <shorne@gmail.com>
Fri, 1 Jan 2021 06:00:08 +0000 (15:00 +0900)
commit131172a4a8ce3fccfd4a9f0f8b3c0d0e59222f1d
tree6b961fa64950bb9dfc906ad0205d0a16b42398d1
parent472ab9ee15c6a28adbac65a543af58461b49a947
openrisc: restart: Call common handlers before hanging

Currently openrisc will print a message and then hang in an infinite
loop when rebooting.

This patch adopts some code from ARM, which calls the common restart
infrastructure and hangs after a small delay if the restart infra
doesn't do anything.

Signed-off-by: Joel Stanley <joel@jms.id.au>
Signed-off-by: Stafford Horne <shorne@gmail.com>
arch/openrisc/kernel/process.c