diff options
author | Tiejun Chen <tiejun.chen@windriver.com> | 2013-07-15 23:09:30 -0400 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2013-08-14 00:57:47 -0400 |
commit | de021bb79c7636df24864fa2dbb958121303663b (patch) | |
tree | c2833f1a4ac4455b2b4f1ca2bc19d0e3a321fcf2 /arch/powerpc/include/asm/irqflags.h | |
parent | 7033b64b48a3eafdd5d5f541ff6ccb96f69d9911 (diff) |
powerpc/ppc64: Rename SOFT_DISABLE_INTS with RECONCILE_IRQ_STATE
The SOFT_DISABLE_INTS seems an odd name for something that updates the
software state to be consistent with interrupts being hard disabled, so
rename SOFT_DISABLE_INTS with RECONCILE_IRQ_STATE to avoid this confusion.
Signed-off-by: Tiejun Chen <tiejun.chen@windriver.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/include/asm/irqflags.h')
-rw-r--r-- | arch/powerpc/include/asm/irqflags.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/powerpc/include/asm/irqflags.h b/arch/powerpc/include/asm/irqflags.h index 6f9b6e23dc5a..f51a5580bfd0 100644 --- a/arch/powerpc/include/asm/irqflags.h +++ b/arch/powerpc/include/asm/irqflags.h | |||
@@ -40,9 +40,10 @@ | |||
40 | #define TRACE_DISABLE_INTS TRACE_WITH_FRAME_BUFFER(.trace_hardirqs_off) | 40 | #define TRACE_DISABLE_INTS TRACE_WITH_FRAME_BUFFER(.trace_hardirqs_off) |
41 | 41 | ||
42 | /* | 42 | /* |
43 | * This is used by assembly code to soft-disable interrupts | 43 | * This is used by assembly code to soft-disable interrupts first and |
44 | * reconcile irq state. | ||
44 | */ | 45 | */ |
45 | #define SOFT_DISABLE_INTS(__rA, __rB) \ | 46 | #define RECONCILE_IRQ_STATE(__rA, __rB) \ |
46 | lbz __rA,PACASOFTIRQEN(r13); \ | 47 | lbz __rA,PACASOFTIRQEN(r13); \ |
47 | lbz __rB,PACAIRQHAPPENED(r13); \ | 48 | lbz __rB,PACAIRQHAPPENED(r13); \ |
48 | cmpwi cr0,__rA,0; \ | 49 | cmpwi cr0,__rA,0; \ |
@@ -58,7 +59,7 @@ | |||
58 | #define TRACE_ENABLE_INTS | 59 | #define TRACE_ENABLE_INTS |
59 | #define TRACE_DISABLE_INTS | 60 | #define TRACE_DISABLE_INTS |
60 | 61 | ||
61 | #define SOFT_DISABLE_INTS(__rA, __rB) \ | 62 | #define RECONCILE_IRQ_STATE(__rA, __rB) \ |
62 | lbz __rA,PACAIRQHAPPENED(r13); \ | 63 | lbz __rA,PACAIRQHAPPENED(r13); \ |
63 | li __rB,0; \ | 64 | li __rB,0; \ |
64 | ori __rA,__rA,PACA_IRQ_HARD_DIS; \ | 65 | ori __rA,__rA,PACA_IRQ_HARD_DIS; \ |