aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/entry-common.S
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2013-03-28 07:44:25 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2013-04-03 11:50:12 -0400
commit651e94995ed5c10d77adcf19edb9de7d6f0cac3e (patch)
tree723b79cbaaa99af34e9021b9216e46d58f733698 /arch/arm/kernel/entry-common.S
parent07961ac7c0ee8b546658717034fe692fd12eefa9 (diff)
ARM: entry-common: get rid of unnecessary ifdefs
The contents of the asm_trace_hardirqs_on is already conditional on CONFIG_TRACE_IRQFLAGS. There's little point also making the use of the macro conditional as well. Get rid of these ifdefs to make the code easier to read. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel/entry-common.S')
-rw-r--r--arch/arm/kernel/entry-common.S5
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/arm/kernel/entry-common.S b/arch/arm/kernel/entry-common.S
index 3248cde504ed..6f37ddfadbfa 100644
--- a/arch/arm/kernel/entry-common.S
+++ b/arch/arm/kernel/entry-common.S
@@ -35,9 +35,7 @@ ret_fast_syscall:
35 ldr r1, [tsk, #TI_FLAGS] 35 ldr r1, [tsk, #TI_FLAGS]
36 tst r1, #_TIF_WORK_MASK 36 tst r1, #_TIF_WORK_MASK
37 bne fast_work_pending 37 bne fast_work_pending
38#if defined(CONFIG_IRQSOFF_TRACER)
39 asm_trace_hardirqs_on 38 asm_trace_hardirqs_on
40#endif
41 39
42 /* perform architecture specific actions before user return */ 40 /* perform architecture specific actions before user return */
43 arch_ret_to_user r1, lr 41 arch_ret_to_user r1, lr
@@ -71,9 +69,8 @@ ENTRY(ret_to_user_from_irq)
71 tst r1, #_TIF_WORK_MASK 69 tst r1, #_TIF_WORK_MASK
72 bne work_pending 70 bne work_pending
73no_work_pending: 71no_work_pending:
74#if defined(CONFIG_IRQSOFF_TRACER)
75 asm_trace_hardirqs_on 72 asm_trace_hardirqs_on
76#endif 73
77 /* perform architecture specific actions before user return */ 74 /* perform architecture specific actions before user return */
78 arch_ret_to_user r1, lr 75 arch_ret_to_user r1, lr
79 76