kill __init_timer_base in favor of boot_tvec_bases
PATCH 1/1 kill __init_timer_base in favor of boot_tvec_bases
This patch
[PATCH] tvec_bases too large for per-cpu data http://kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=a4a6198b80cf82eb8160603c98da218d1bd5e104
introduced "struct tvec_t_base_s boot_tvec_bases" which is visible at compile time. This means we can kill __init_timer_base and move timer_base_s's content into tvec_t_base_s.
include/linux/timer.h | 8 ++-- kernel/timer.c | 84 ++++++++++++++++++++------------------------------ 2 files changed, 39 insertions(+), 53 deletions(-)
Signed-off-by Oleg Nesterov <[email protected]>
include/linux/timer.h renamed from include/linux/timer.h~TIMER +4 -4
@@ -6,7 +6,7 @@#include <linux/spinlock.h> #include <linux/stddef.h> -struct timer_base_s ; +struct tvec_t_base_s ;struct timer_list {struct list_head entry;
@@ -15,16 +15,16 @@ struct timer_list {void (*function)(unsigned long );unsigned long data; -struct timer_base_s *base; +struct tvec_t_base_s *base; }; -extern struct timer_base_s __init_timer_base; +extern struct tvec_t_base_s boot_tvec_bases;#define TIMER_INITIALIZER (_function, _expires, _data) { \ .function = (_function), \ .expires = (_expires), \ .data = (_data), \ - .base = &__init_timer_base, \ + .base = &boot_tvec_bases, \ }#define DEFINE_TIMER (_name, _function, _expires, _data) \
kernel/timer.c renamed from kernel/timer.c~TIMER +35 -49
249 lines not on this page · raw message