aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2015-09-16 06:08:49 -0400
committerRussell King <rmk+kernel@arm.linux.org.uk>2015-09-16 18:58:46 -0400
commit12fc7306e6ffae4e86680892f2286063d7d6eae7 (patch)
treef9d24c12835f079f58861726c24c098132c1b5f1
parent9b55613f42e8d40d5c9ccb8970bde6af4764b2ab (diff)
ARM: get rid of needless #if in signal handling code
Remove the #if statement which caused trouble for kernels that support both ARMv6 and ARMv7. Older architectures do not implement these bits, so it should be safe to always clear them. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
-rw-r--r--arch/arm/kernel/signal.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/arm/kernel/signal.c b/arch/arm/kernel/signal.c
index 586eef26203d..29e5dc70bb41 100644
--- a/arch/arm/kernel/signal.c
+++ b/arch/arm/kernel/signal.c
@@ -343,7 +343,6 @@ setup_return(struct pt_regs *regs, struct ksignal *ksig,
343 */ 343 */
344 thumb = handler & 1; 344 thumb = handler & 1;
345 345
346#if __LINUX_ARM_ARCH__ >= 6
347 /* 346 /*
348 * Clear the If-Then Thumb-2 execution state. ARM spec 347 * Clear the If-Then Thumb-2 execution state. ARM spec
349 * requires this to be all 000s in ARM mode. Snapdragon 348 * requires this to be all 000s in ARM mode. Snapdragon
@@ -352,11 +351,10 @@ setup_return(struct pt_regs *regs, struct ksignal *ksig,
352 * 351 *
353 * We must do this whenever we are running on a Thumb-2 352 * We must do this whenever we are running on a Thumb-2
354 * capable CPU, which includes ARMv6T2. However, we elect 353 * capable CPU, which includes ARMv6T2. However, we elect
355 * to do this whenever we're on an ARMv6 or later CPU for 354 * to always do this to simplify the code; this field is
356 * simplicity. 355 * marked UNK/SBZP for older architectures.
357 */ 356 */
358 cpsr &= ~PSR_IT_MASK; 357 cpsr &= ~PSR_IT_MASK;
359#endif
360 358
361 if (thumb) { 359 if (thumb) {
362 cpsr |= PSR_T_BIT; 360 cpsr |= PSR_T_BIT;