diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2013-06-20 06:50:14 -0400 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2013-06-22 04:16:42 -0400 |
commit | 18437347b976b81e616a57fb36922a240e71a6de (patch) | |
tree | 8ef714be7f29305adf671b0bcbc7482797d6936f /arch/arc | |
parent | 8235703e103579bdcedadcaf63bc1896f82b191b (diff) |
ARC: More code beautification with IS_ENABLED()
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Diffstat (limited to 'arch/arc')
-rw-r--r-- | arch/arc/kernel/irq.c | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/arch/arc/kernel/irq.c b/arch/arc/kernel/irq.c index 8115fa531575..d1ef4129de7d 100644 --- a/arch/arc/kernel/irq.c +++ b/arch/arc/kernel/irq.c | |||
@@ -38,15 +38,9 @@ void __cpuinit arc_init_IRQ(void) | |||
38 | write_aux_reg(AUX_IENABLE, 0); | 38 | write_aux_reg(AUX_IENABLE, 0); |
39 | 39 | ||
40 | /* setup any high priority Interrupts (Level2 in ARCompact jargon) */ | 40 | /* setup any high priority Interrupts (Level2 in ARCompact jargon) */ |
41 | #ifdef CONFIG_ARC_IRQ3_LV2 | 41 | level_mask |= IS_ENABLED(CONFIG_ARC_IRQ3_LV2) << 3; |
42 | level_mask |= (1 << 3); | 42 | level_mask |= IS_ENABLED(CONFIG_ARC_IRQ5_LV2) << 5; |
43 | #endif | 43 | level_mask |= IS_ENABLED(CONFIG_ARC_IRQ6_LV2) << 6; |
44 | #ifdef CONFIG_ARC_IRQ5_LV2 | ||
45 | level_mask |= (1 << 5); | ||
46 | #endif | ||
47 | #ifdef CONFIG_ARC_IRQ6_LV2 | ||
48 | level_mask |= (1 << 6); | ||
49 | #endif | ||
50 | 44 | ||
51 | if (level_mask) { | 45 | if (level_mask) { |
52 | pr_info("Level-2 interrupts bitset %x\n", level_mask); | 46 | pr_info("Level-2 interrupts bitset %x\n", level_mask); |