MIPS: loongson: use IS_ENABLED()
authorFlorian Fainelli <florian@openwrt.org>
Tue, 31 Jan 2012 17:19:08 +0000 (18:19 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Mon, 23 Jul 2012 12:55:54 +0000 (13:55 +0100)
Signed-off-by: Florian Fainelli <florian@openwrt.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/3336/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/mach-loongson/loongson.h

index 1e29b9dd1d7395752d401fca112b2f1f528357c8..06367c37e1b2dd2c04154143a17b9c07e1ae6e30 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/io.h>
 #include <linux/init.h>
 #include <linux/irq.h>
+#include <linux/kconfig.h>
 
 /* loongson internal northbridge initialization */
 extern void bonito_irq_init(void);
@@ -66,7 +67,7 @@ extern int mach_i8259_irq(void);
 #include <linux/interrupt.h>
 static inline void do_perfcnt_IRQ(void)
 {
-#if defined(CONFIG_OPROFILE) || defined(CONFIG_OPROFILE_MODULE)
+#if IS_ENABLED(CONFIG_OPROFILE)
        do_IRQ(LOONGSON2_PERFCNT_IRQ);
 #endif
 }
This page took 0.025801 seconds and 5 git commands to generate.