]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Access local paca after hard irq disabled
authorTiejun Chen <tiejun.chen@windriver.com>
Mon, 15 Jul 2013 02:36:04 +0000 (10:36 +0800)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Wed, 24 Jul 2013 04:18:44 +0000 (14:18 +1000)
commit3d347ab3f337def8508c0938a6251813a0094a56
treea2abb3bc097e52117ff5005e2f50a1a45eda0736
parent7458d6d5f927b6ab920d202ddfe9bd2f2e3be188
powerpc: Access local paca after hard irq disabled

In hard_irq_disable(), we accessed the PACA before we hard disabled
the interrupts, potentially causing a warning as get_paca() will
us debug_smp_processor_id().

Move that to after the disabling, and also use local_paca directly
rather than get_paca() to avoid several redundant and useless checks.

Signed-off-by: Tiejun Chen <tiejun.chen@windriver.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/hw_irq.h