]> 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)
commit0cd28c170cc859b46396442637decdd927e14913
tree259555d50eae392517f7213c5efbe5b8c2156dcd
parente56a82b31e5d60d9f3b18e7f80a4eedc0a090339
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