Make tasklets use per-cpu...
PATCH 1/1 Make tasklets use per-cpu...
Linus, please apply.
Alexey, why were these exported, since none of the functions which access them are inline? I assume this was an error left from an earlier implementation.
Thanks to Anton for testing...
Name: Tasklet Per-CPU Cleanup Patch
Author: Rusty Russell
Status: Cleanup
D: This makes tasklet_vec and tasklet_hi_vec static inside softirq.c, and
D: makes them __per_cpu_data.
include/linux/interrupt.h +0 -8
@@ -124,14 +124,6 @@TASKLET_STATE_RUN /* Tasklet is running (SMP only) */ }; -struct tasklet_head -{ -struct tasklet_struct *list; -} __attribute__ ((__aligned__ (SMP_CACHE_BYTES ))); - -extern struct tasklet_head tasklet_vec[NR_CPUS ]; -extern struct tasklet_head tasklet_hi_vec[NR_CPUS ]; -#ifdef CONFIG_SMP static inline int tasklet_trylock (struct tasklet_struct *t) {
kernel/ksyms.c +0 -2
@@ -565,8 +565,6 @@EXPORT_SYMBOL (strsep);/* software interrupts */ -EXPORT_SYMBOL (tasklet_hi_vec); -EXPORT_SYMBOL (tasklet_vec);EXPORT_SYMBOL (bh_task_vec);EXPORT_SYMBOL (init_bh);EXPORT_SYMBOL (remove_bh);
kernel/softirq.c +23 -22
101 lines not on this page · raw message
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.