diff options
author | Steven Rostedt <srostedt@redhat.com> | 2012-01-25 20:18:55 -0500 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2012-02-03 09:48:19 -0500 |
commit | f069686e4bdc60a637d210ea3eea25fcdb82df88 (patch) | |
tree | 5a8f9fcafb2edaaf785c0b7f22d176b4cc87ea02 /kernel/softirq.c | |
parent | ac483c446b67870444c9eeaf8325d3d2af9b91bc (diff) | |
download | op-kernel-dev-f069686e4bdc60a637d210ea3eea25fcdb82df88.zip op-kernel-dev-f069686e4bdc60a637d210ea3eea25fcdb82df88.tar.gz |
tracing/softirq: Move __raise_softirq_irqoff() out of header
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>
Diffstat (limited to 'kernel/softirq.c')
-rw-r--r-- | kernel/softirq.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/softirq.c b/kernel/softirq.c index 4eb3a0f..06d4099 100644 --- a/kernel/softirq.c +++ b/kernel/softirq.c @@ -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; |