Skip to contentSkip to conversation

Softirq splitting

PATCH In review Thomas Gleixner 2 participants 3 messages Jun 8, 2005 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Softirq splitting

The patch splits the softirq handling into seperate threads. This allows to prioritize the softirq handling and decouples the various softirqs from each other.

The split prepares the next logical step to bind specific softirq processing to an interrupt thread.

include/linux/interrupt.h +2 -0
diff --exclude='*~' -urN linux-2.6.12-rc6-rt/include/linux/interrupt.h linux-2.6.12-rc6-rt-work/include/linux/interrupt.h
@@ -113,6 +113,8 @@
 	NET_RX_SOFTIRQ,
 	SCSI_SOFTIRQ,
 	TASKLET_SOFTIRQ
+	/* Entries after this are ignored in the split softirq mode */
+	MAX_SOFTIRQ,
 };
 
 /* softirq mask and active fields moved to irq_cpustat_t in
kernel/Makefile +3 -1
diff --exclude='*~' -urN linux-2.6.12-rc6-rt/kernel/Makefile linux-2.6.12-rc6-rt-work/kernel/Makefile
@@ -3,12 +3,14 @@
 #
 
 obj-y     = sched.o fork.o exec_domain.o panic.o printk.o profile.o \
-	    exit.o itimer.o time.o softirq.o resource.o \
+	    exit.o itimer.o time.o resource.o \
 	    sysctl.o capability.o ptrace.o timer.o user.o \
 	    signal.o sys.o kmod.o workqueue.o pid.o \
 	    rcupdate.o intermodule.o extable.o params.o posix-timers.o \
 	    kthread.o wait.o kfifo.o sys_ni.o posix-cpu-timers.o
 
+obj-$(CONFIG_SOFTIRQ_ONE) += softirq.o
+obj-$(CONFIG_SOFTIRQ_SPLIT) += softirq-split.o
 obj-$(CONFIG_PREEMPT_RT) += rt.o
 
 obj-$(CONFIG_DEBUG_PREEMPT) += latency.o
kernel/softirq-split.c +417 -0

417 lines not on this page · raw message

lib/Kconfig.RT +12 -0
diff --exclude='*~' -urN linux-2.6.12-rc6-rt/lib/Kconfig.RT linux-2.6.12-rc6-rt-work/lib/Kconfig.RT
@@ -150,3 +150,15 @@
 	depends on PREEMPT_RT || !SPINLOCK_BKL
 	default n if !PREEMPT
 	default y
+
+config SOFTIRQ_SPLIT
+	bool "Split softirq threads"
+	depends on PREEMPT_RT
+	default n if !PREEMPT_RT
+	default y
+
+config SOFTIRQ_ONE
+	bool
+	depends on !SOFTIRQ_SPLIT
+	default y
+
#1 lore raw

In article <[email protected]> (at Wed, 08 Jun 2005 16:03:29 +0200), Thomas Gleixner <[email protected]> says:

include/linux/interrupt.h line 119

Quoted 11 lines

diff --exclude='*~' -urN linux-2.6.12-rc6-rt/include/linux/interrupt.h linux-2.6.12-rc6-rt-work/include/linux/interrupt.h

include/linux/interrupt.h +2 -0
@@ -113,6 +113,8 @@
 	NET_RX_SOFTIRQ,
 	SCSI_SOFTIRQ,
 	TASKLET_SOFTIRQ
+	/* Entries after this are ignored in the split softirq mode */
+	MAX_SOFTIRQ,
 };
 

Hey, have you ever compiled?
You need comma after TASKLET_SOFTIRQ.

--yoshfuji

#2 lore raw
Quoted 8 lines

include/linux/interrupt.h line 118

Quoted 5 lines
include/linux/interrupt.h +2 -0
 	TASKLET_SOFTIRQ
+	/* Entries after this are ignored in the split softirq mode */
+	MAX_SOFTIRQ,
 };

Hey, have you ever compiled?
You need comma after TASKLET_SOFTIRQ.

Sorry, your right. I missed that when I extracted it from my devel tree.

tglx