34 lines
970 B
Diff
34 lines
970 B
Diff
Subject: softirq-thread-do-softirq.patch
|
|
From: Thomas Gleixner <tglx@linutronix.de>
|
|
Date: Tue, 28 Jun 2011 15:44:15 +0200
|
|
Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/4.0/patches-4.0.5-rt3.tar.xz
|
|
|
|
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
|
|
---
|
|
include/linux/interrupt.h | 2 +-
|
|
net/core/dev.c | 2 +-
|
|
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
--- a/include/linux/interrupt.h
|
|
+++ b/include/linux/interrupt.h
|
|
@@ -425,7 +425,7 @@ struct softirq_action
|
|
|
|
asmlinkage void do_softirq(void);
|
|
asmlinkage void __do_softirq(void);
|
|
-
|
|
+static inline void thread_do_softirq(void) { do_softirq(); }
|
|
#ifdef __ARCH_HAS_DO_SOFTIRQ
|
|
void do_softirq_own_stack(void);
|
|
#else
|
|
--- a/net/core/dev.c
|
|
+++ b/net/core/dev.c
|
|
@@ -3406,7 +3406,7 @@ int netif_rx_ni(struct sk_buff *skb)
|
|
preempt_disable();
|
|
err = netif_rx_internal(skb);
|
|
if (local_softirq_pending())
|
|
- do_softirq();
|
|
+ thread_do_softirq();
|
|
preempt_enable();
|
|
|
|
return err;
|