summaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorHenrik Austad <henrik@austad.us>2009-02-13 20:35:45 +0100
committerIngo Molnar <mingo@elte.hu>2009-02-15 21:16:10 +0100
commita0a522ce3d6d8c907e45d4f2730ee8573484cc88 (patch)
tree6f66bc1f1a466d0262236d11ffe17d6a1d6964a6 /kernel/sched.c
parent5274f8354d6a1ed9d6688e6a89b705b94aa1b6e9 (diff)
downloadop-kernel-dev-a0a522ce3d6d8c907e45d4f2730ee8573484cc88.zip
op-kernel-dev-a0a522ce3d6d8c907e45d4f2730ee8573484cc88.tar.gz
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c
index 5faf5d4..648154c 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;
OpenPOWER on IntegriCloud