Tasklet cleanup
PATCH 1/1 Tasklet cleanup
Alexey, not sure why you exported tasklet_vec & tasklet_hi_vec? Noone uses them...
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.
Hello!
Quoted 1 line
Alexey, not sure why you exported
tasklet_vec&tasklet_hi_vec?
Maybe, they were used in some inlines, when the exports were added. Maybe, it was a mud. If they can be static... amen.
Alexey