]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s: Implement system reset idle wakeup reason
authorNicholas Piggin <npiggin@gmail.com>
Fri, 29 Sep 2017 03:29:41 +0000 (13:29 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 4 Oct 2017 00:26:32 +0000 (11:26 +1100)
commite170c188962a84e16fa485d2b40c6d39a88b3151
tree259555d50eae392517f7213c5efbe5b8c2156dcd
parent6dcf456b78acfb4bdee1ed133cf49d03888d759c
powerpc/64s: Implement system reset idle wakeup reason

It is possible to wake from idle due to a system reset exception, in
which case the CPU takes a system reset interrupt to wake from idle,
with system reset as the wakeup reason.

The regular (not idle wakeup) system reset interrupt handler must be
invoked in this case, otherwise the system reset interrupt is lost.

Handle the system reset interrupt immediately after CPU state has been
restored.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/irq.c