tracing/softirq: Move __raise_softirq_irqoff() out of header
authorSteven Rostedt <srostedt@redhat.com>
Thu, 26 Jan 2012 01:18:55 +0000 (20:18 -0500)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 3 Feb 2012 14:48:19 +0000 (09:48 -0500)
The __raise_softirq_irqoff() contains a tracepoint. As tracepoints in headers
can cause issues, and not to mention, bloats the kernel when they are
in a static inline, it is best to move the function that contains the
tracepoint out of the header and into softirq.c.

Link: http://lkml.kernel.org/r/20120118120711.GB14863@elte.hu
Suggested-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/interrupt.h
kernel/irq/chip.c
kernel/softirq.c

index a64b00e286f59ecf800948d95a424ae3ba697569..3f830e00511852a7ddd93a82f044502c80beeea4 100644 (file)
@@ -20,7 +20,6 @@
 #include <linux/atomic.h>
 #include <asm/ptrace.h>
 #include <asm/system.h>
-#include <trace/events/irq.h>
 
 /*
  * These correspond to the IORESOURCE_IRQ_* defines in
@@ -456,11 +455,7 @@ asmlinkage void do_softirq(void);
 asmlinkage void __do_softirq(void);
 extern void open_softirq(int nr, void (*action)(struct softirq_action *));
 extern void softirq_init(void);
-static inline void __raise_softirq_irqoff(unsigned int nr)
-{
-       trace_softirq_raise(nr);
-       or_softirq_pending(1UL << nr);
-}
+extern void __raise_softirq_irqoff(unsigned int nr);
 
 extern void raise_softirq_irqoff(unsigned int nr);
 extern void raise_softirq(unsigned int nr);
index f7c543a801d97a67a2778e2685fa181739a803ac..fc418249f01fc439c21d859f0f740b2ec49708f5 100644 (file)
@@ -16,6 +16,8 @@
 #include <linux/interrupt.h>
 #include <linux/kernel_stat.h>
 
+#include <trace/events/irq.h>
+
 #include "internals.h"
 
 /**
index 4eb3a0fa351e788297e7d14f0f56cec66d61c1ae..06d40993594a1e9868d81c49a4b01e686b3907eb 100644 (file)
@@ -385,6 +385,12 @@ void raise_softirq(unsigned int nr)
        local_irq_restore(flags);
 }
 
+void __raise_softirq_irqoff(unsigned int nr)
+{
+       trace_softirq_raise(nr);
+       or_softirq_pending(1UL << nr);
+}
+
 void open_softirq(int nr, void (*action)(struct softirq_action *))
 {
        softirq_vec[nr].action = action;