]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2f92d9decbff03be320d4efb1c83b83df3992df5
tree6b961fa64950bb9dfc906ad0205d0a16b42398d1
parente08ff769c320f6419e08491182a9e7928a7aed4a
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