diff options
author | Henrik Austad <henrik@austad.us> | 2009-02-13 20:35:45 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-02-15 21:16:10 +0100 |
commit | a0a522ce3d6d8c907e45d4f2730ee8573484cc88 (patch) | |
tree | 6f66bc1f1a466d0262236d11ffe17d6a1d6964a6 /kernel/sched.c | |
parent | 5274f8354d6a1ed9d6688e6a89b705b94aa1b6e9 (diff) |
sched: idle_at_tick is only used when CONFIG_SMP is set
Impact: struct rq size optimization
The idle_at_tick in struct rq is only used in SMP settings
and it does not make sense to have this in the rq in an UP setup.
Signed-off-by: Henrik Austad <henrik@austad.us>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index 5faf5d482fcd..648154cf1117 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -555,7 +555,6 @@ struct rq { unsigned long nr_running; #define CPU_LOAD_IDX_MAX 5 unsigned long cpu_load[CPU_LOAD_IDX_MAX]; - unsigned char idle_at_tick; #ifdef CONFIG_NO_HZ unsigned long last_tick_seen; unsigned char in_nohz_recently; @@ -596,6 +595,7 @@ struct rq { struct root_domain *rd; struct sched_domain *sd; + unsigned char idle_at_tick; /* For active balancing */ int active_balance; int push_cpu; |