diff options
author | Luis Henriques <henrix@sapo.pt> | 2009-03-24 18:10:02 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-03-24 18:16:51 -0400 |
commit | 67aa0f767af488a7f1e41cccb4f7a4893f24a1ab (patch) | |
tree | 7852ed82045798af8881f486b175c11512dd1437 /kernel/sched_debug.c | |
parent | efd247fa34084d9b162f485004ae6d8a04059f0c (diff) |
sched: remove unused fields from struct rq
Impact: cleanup, new schedstat ABI
Since they are used on in statistics and are always set to zero, the
following fields from struct rq have been removed: yld_exp_empty,
yld_act_empty and yld_both_empty.
Both Sched Debug and SCHEDSTAT_VERSION versions has also been
incremented since ABIs have been changed.
The schedtop tool has been updated to properly handle new version of
schedstat:
http://rt.wiki.kernel.org/index.php/Schedtop_utility
Signed-off-by: Luis Henriques <henrix@sapo.pt>
Acked-by: Gregory Haskins <ghaskins@novell.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
LKML-Reference: <20090324221002.GA10061@hades.domain.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_debug.c')
-rw-r--r-- | kernel/sched_debug.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/kernel/sched_debug.c b/kernel/sched_debug.c index 4daebffa0565..467ca72f1657 100644 --- a/kernel/sched_debug.c +++ b/kernel/sched_debug.c | |||
@@ -286,9 +286,6 @@ static void print_cpu(struct seq_file *m, int cpu) | |||
286 | #ifdef CONFIG_SCHEDSTATS | 286 | #ifdef CONFIG_SCHEDSTATS |
287 | #define P(n) SEQ_printf(m, " .%-30s: %d\n", #n, rq->n); | 287 | #define P(n) SEQ_printf(m, " .%-30s: %d\n", #n, rq->n); |
288 | 288 | ||
289 | P(yld_exp_empty); | ||
290 | P(yld_act_empty); | ||
291 | P(yld_both_empty); | ||
292 | P(yld_count); | 289 | P(yld_count); |
293 | 290 | ||
294 | P(sched_switch); | 291 | P(sched_switch); |
@@ -313,7 +310,7 @@ static int sched_debug_show(struct seq_file *m, void *v) | |||
313 | u64 now = ktime_to_ns(ktime_get()); | 310 | u64 now = ktime_to_ns(ktime_get()); |
314 | int cpu; | 311 | int cpu; |
315 | 312 | ||
316 | SEQ_printf(m, "Sched Debug Version: v0.08, %s %.*s\n", | 313 | SEQ_printf(m, "Sched Debug Version: v0.09, %s %.*s\n", |
317 | init_utsname()->release, | 314 | init_utsname()->release, |
318 | (int)strcspn(init_utsname()->version, " "), | 315 | (int)strcspn(init_utsname()->version, " "), |
319 | init_utsname()->version); | 316 | init_utsname()->version); |