[PATCH] kill __init_timer_base in favor of boot_tvec_bases

Commit a4a6198b80:
	[PATCH] tvec_bases too large for per-cpu data

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.

Signed-off-by: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Oleg Nesterov 2006-03-31 02:30:30 -08:00 committed by Linus Torvalds
parent 5ce29646eb
commit 3691c5199e
2 changed files with 39 additions and 53 deletions

View file

@ -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) \