Skip to contentSkip to conversation

idle_at_tick is only used when CONFIG_SMP is set

PATCH Applied Henrik Austad 2 participants 2 messages Feb 13, 2009 – Feb 15, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 idle_at_tick is only used when CONFIG_SMP is set

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.

---
 kernel/sched.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/sched.c +1 -1
index 8ee437a..a8a4abc 100644
@@ -549,7 +549,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;
@@ -590,6 +589,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;
Signature · 1 line
1.6.1
Applied
#1 lore raw
Quoted 7 lines · Henrik Austad

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.

---
 kernel/sched.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Applied to tip:sched/cleanups, thanks Henrik!

Ingo