]> git.proxmox.com Git - mirror_ubuntu-disco-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)
commitfe1952fc0afb9a2e4c79f103c08aef5d13db1873
treeea1fc050910844e3c72d8fa576e7bf429c09d788
parent7450f6f03e9d6dc95d2014c4cceac8adf98560e8
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