aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/sched.c
diff options
context:
space:
mode:
authorHenrik Austad <henrik@austad.us>2009-02-13 14:35:45 -0500
committerIngo Molnar <mingo@elte.hu>2009-02-15 15:16:10 -0500
commita0a522ce3d6d8c907e45d4f2730ee8573484cc88 (patch)
tree6f66bc1f1a466d0262236d11ffe17d6a1d6964a6 /kernel/sched.c
parent5274f8354d6a1ed9d6688e6a89b705b94aa1b6e9 (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.c2
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 {
555 unsigned long nr_running; 555 unsigned long nr_running;
556 #define CPU_LOAD_IDX_MAX 5 556 #define CPU_LOAD_IDX_MAX 5
557 unsigned long cpu_load[CPU_LOAD_IDX_MAX]; 557 unsigned long cpu_load[CPU_LOAD_IDX_MAX];
558 unsigned char idle_at_tick;
559#ifdef CONFIG_NO_HZ 558#ifdef CONFIG_NO_HZ
560 unsigned long last_tick_seen; 559 unsigned long last_tick_seen;
561 unsigned char in_nohz_recently; 560 unsigned char in_nohz_recently;
@@ -596,6 +595,7 @@ struct rq {
596 struct root_domain *rd; 595 struct root_domain *rd;
597 struct sched_domain *sd; 596 struct sched_domain *sd;
598 597
598 unsigned char idle_at_tick;
599 /* For active balancing */ 599 /* For active balancing */
600 int active_balance; 600 int active_balance;
601 int push_cpu; 601 int push_cpu;