]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Rework runlatch code
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 1 Mar 2012 01:45:27 +0000 (12:45 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 8 Mar 2012 23:55:02 +0000 (10:55 +1100)
commit06aabaeac0dd7ef7fa84d0dff1a10667a6d628b1
treeea1fc050910844e3c72d8fa576e7bf429c09d788
parent0aff28db6faab732decb37249e4428eeb8408199
powerpc: Rework runlatch code

This moves the inlines into system.h and changes the runlatch
code to use the thread local flags (non-atomic) rather than
the TIF flags (atomic) to keep track of the latch state.

The code to turn it back on in an asynchronous interrupt is
now simplified and partially inlined.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/exception-64s.h
arch/powerpc/include/asm/reg.h
arch/powerpc/include/asm/system.h
arch/powerpc/include/asm/thread_info.h
arch/powerpc/kernel/exceptions-64s.S
arch/powerpc/kernel/process.c