lkml.org 
[lkml]   [2004]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH][2.6.7-rc3-mm1] perfctr #if/#ifdef cleanup
Clean up #if/#ifdef confusion in <asm-i386/perfctr.h>.

Signed-off-by: Mikael Pettersson <mikpe@csd.uu.se>

diff -ruN linux-2.6.7-rc3-mm1/include/asm-i386/perfctr.h linux-2.6.7-rc3-mm1.perfctr-update/include/asm-i386/perfctr.h
--- linux-2.6.7-rc3-mm1/include/asm-i386/perfctr.h 2004-06-09 19:38:39.000000000 +0200
+++ linux-2.6.7-rc3-mm1.perfctr-update/include/asm-i386/perfctr.h 2004-06-09 21:04:33.000000000 +0200
@@ -168,7 +168,7 @@
#define PERFCTR_INTERRUPT_SUPPORT 1
#endif

-#if PERFCTR_INTERRUPT_SUPPORT
+#ifdef PERFCTR_INTERRUPT_SUPPORT
extern void perfctr_cpu_set_ihandler(perfctr_ihandler_t);
extern void perfctr_cpu_ireload(struct perfctr_cpu_state*);
extern unsigned int perfctr_cpu_identify_overflow(struct perfctr_cpu_state*);
@@ -187,7 +187,7 @@

#endif /* CONFIG_PERFCTR */

-#if defined(CONFIG_PERFCTR) && PERFCTR_INTERRUPT_SUPPORT
+#if defined(CONFIG_PERFCTR) && defined(PERFCTR_INTERRUPT_SUPPORT)
asmlinkage void perfctr_interrupt(struct pt_regs*);
#define perfctr_vector_init() \
set_intr_gate(LOCAL_PERFCTR_VECTOR, perfctr_interrupt)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:03    [W:0.036 / U:0.436 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site