diff options
author | Ingo Molnar <mingo@elte.hu> | 2007-08-02 11:41:40 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-08-02 11:41:40 -0400 |
commit | 6cfb0d5d06bea2b8791f32145eae539d524e5f6c (patch) | |
tree | ec84e29c73833fac72f7307b7573410b2e60b291 /kernel/sched_fair.c | |
parent | 8179ca23d513717cc5e3dc81a1ffe01af0955468 (diff) |
[PATCH] sched: reduce debug code
move the rest of the debugging/instrumentation code to under
CONFIG_SCHEDSTATS too. This reduces code size and speeds code up:
text data bss dec hex filename
33044 4122 28 37194 914a sched.o.before
32708 4122 28 36858 8ffa sched.o.after
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_fair.c')
-rw-r--r-- | kernel/sched_fair.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index 5bf7285ad02c..6f579ff5a9bc 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c | |||
@@ -349,7 +349,7 @@ static inline void | |||
349 | update_stats_wait_start(struct cfs_rq *cfs_rq, struct sched_entity *se, u64 now) | 349 | update_stats_wait_start(struct cfs_rq *cfs_rq, struct sched_entity *se, u64 now) |
350 | { | 350 | { |
351 | se->wait_start_fair = cfs_rq->fair_clock; | 351 | se->wait_start_fair = cfs_rq->fair_clock; |
352 | se->wait_start = now; | 352 | schedstat_set(se->wait_start, now); |
353 | } | 353 | } |
354 | 354 | ||
355 | /* | 355 | /* |
@@ -447,7 +447,7 @@ update_stats_wait_end(struct cfs_rq *cfs_rq, struct sched_entity *se, u64 now) | |||
447 | } | 447 | } |
448 | 448 | ||
449 | se->wait_start_fair = 0; | 449 | se->wait_start_fair = 0; |
450 | se->wait_start = 0; | 450 | schedstat_set(se->wait_start, 0); |
451 | } | 451 | } |
452 | 452 | ||
453 | static inline void | 453 | static inline void |