OSDN Git Service

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)
commit78adf6c214f04fef01c714d78441653dc838a3ba
tree259555d50eae392517f7213c5efbe5b8c2156dcd
parent064996d62a33ffe10264b5af5dca92d54f60f806
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