ARM64: kernel: psci: use restart_handlers instead of arm_pm_restart
From: Heiko Stuebner <heiko@...> Date: Sun, 7 Jun 2015 23:01:08 +0200
Commit-Message
Instead of hogging the arm_pm_restart callback, register a restart_handler to make it possible for machines to register more board-specific restart functionality. The priority is set to 127, 1 below the "default" to facilitate for example the use of regular per-soc restart handlers at their default priority 128 and others like the gpio-restart at priority 129 or above. Non-psci restarts can be necessary when either the psci implementation is faulty and does not implement the restart callback or devices need even more custom restart operations, like recent rk3288-chromebooks. While the soc-level restart could restart those, an external component needed to be also reset (via gpio-restart) to allow the device to even boot again. Signed-off-by: Heiko Stuebner <heiko@...>
Patch-Comment
arch/arm64/kernel/psci.c | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-)
Statistics
- 9 lines added
- 2 lines removed