powerpc/book3e: Add generic 64-bit idle powersave support
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 14 Jul 2010 04:12:16 +0000 (14:12 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 14 Jul 2010 04:13:18 +0000 (14:13 +1000)
commit34d97e07cc81ab6f1e63696127cc7a5d2c4fce4b
treec406c3e1b964c4ec8bcd5650d6a339115b4ef6d3
parent850f22d5688941ea51628f3f8f8dcf3baff409ff
powerpc/book3e: Add generic 64-bit idle powersave support

We use a similar technique to ppc32: We set a thread local flag
to indicate that we are about to enter or have entered the stop
state, and have fixup code in the async interrupt entry code that
reacts to this flag to make us return to a different location
(sets NIP to LINK in our case).

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
--
v2. Fix lockdep bug
    Re-mask interrupts when coming back from idle
arch/powerpc/include/asm/machdep.h
arch/powerpc/kernel/Makefile
arch/powerpc/kernel/exceptions-64e.S
arch/powerpc/kernel/idle_book3e.S [new file with mode: 0644]