* [PATCH] idle_at_tick is only used when CONFIG_SMP is set
@ 2009-02-13 19:35 Henrik Austad
2009-02-15 20:16 ` Ingo Molnar
0 siblings, 1 reply; 3+ messages in thread
From: Henrik Austad @ 2009-02-13 19:35 UTC (permalink / raw)
To: Ingo Molnar; +Cc: LKML, Peter Zijlstra, 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.
Signed-off-by: Henrik Austad <henrik@austad.us>
---
kernel/sched.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/sched.c b/kernel/sched.c
index 8ee437a..a8a4abc 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -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;
--
1.6.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* [PATCH] idle_at_tick is only used when CONFIG_SMP is set
@ 2009-02-13 16:17 Henrik Austad
0 siblings, 0 replies; 3+ messages in thread
From: Henrik Austad @ 2009-02-13 16:17 UTC (permalink / raw)
To: Ingo Molnar; +Cc: Peter Zijlstra, LKML, 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.
This will also increase packing of rq.
Signed-off-by: Henrik Austad <henrik@austad.us>
---
kernel/sched.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/sched.c b/kernel/sched.c
index c1d0ed3..4404e47 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -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;
--
1.6.1.rc2
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-02-15 20:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-13 19:35 [PATCH] idle_at_tick is only used when CONFIG_SMP is set Henrik Austad
2009-02-15 20:16 ` Ingo Molnar
-- strict thread matches above, loose matches on Subject: below --
2009-02-13 16:17 Henrik Austad
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox