]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Replace mfmsr instructions with load from PACA kernel_msr field
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 2 Mar 2012 00:33:52 +0000 (11:33 +1100)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 8 Mar 2012 23:55:20 +0000 (10:55 +1100)
commit5b7e1c1732d16a8bd55fd25ea79e4b4b601d89c3
treea4509657892acb0b853760d6d26729a913a5fc2b
parent8b242d762250b75476b521a31e3c1e8c2b706eff
powerpc: Replace mfmsr instructions with load from PACA kernel_msr field

On 64-bit, the mfmsr instruction can be quite slow, slower
than loading a field from the cache-hot PACA, which happens
to already contain the value we want in most cases.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/exception-64s.h
arch/powerpc/include/asm/hw_irq.h
arch/powerpc/kernel/entry_64.S
arch/powerpc/kernel/exceptions-64s.S