Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARC: More code beautification with IS_ENABLED()

Signed-off-by: Vineet Gupta <vgupta@synopsys.com>

+3 -9
+3 -9
arch/arc/kernel/irq.c
··· 38 38 write_aux_reg(AUX_IENABLE, 0); 39 39 40 40 /* setup any high priority Interrupts (Level2 in ARCompact jargon) */ 41 - #ifdef CONFIG_ARC_IRQ3_LV2 42 - level_mask |= (1 << 3); 43 - #endif 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 41 + level_mask |= IS_ENABLED(CONFIG_ARC_IRQ3_LV2) << 3; 42 + level_mask |= IS_ENABLED(CONFIG_ARC_IRQ5_LV2) << 5; 43 + level_mask |= IS_ENABLED(CONFIG_ARC_IRQ6_LV2) << 6; 50 44 51 45 if (level_mask) { 52 46 pr_info("Level-2 interrupts bitset %x\n", level_mask);