diff options
author | Ingo Molnar <mingo@elte.hu> | 2007-10-15 11:00:08 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-10-15 11:00:08 -0400 |
commit | 75d4ef16a6aa84f708188bada182315f80aab6fa (patch) | |
tree | 580c044338e3525f39038b1fe703c2a6138f9357 /kernel | |
parent | 30cfdcfc5f180fc21a3dad6ae3b7b2a9ee112186 (diff) |
sched: fix delay accounting performance regression
fix delay accounting performance regression - those sched_clock()
calls are not needed.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/sched_stats.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/sched_stats.h b/kernel/sched_stats.h index c20a94dda61e..1d9ec98c38de 100644 --- a/kernel/sched_stats.h +++ b/kernel/sched_stats.h | |||
@@ -129,7 +129,7 @@ rq_sched_info_depart(struct rq *rq, unsigned long long delta) | |||
129 | # define schedstat_set(var, val) do { } while (0) | 129 | # define schedstat_set(var, val) do { } while (0) |
130 | #endif | 130 | #endif |
131 | 131 | ||
132 | #if defined(CONFIG_SCHEDSTATS) || defined(CONFIG_TASK_DELAY_ACCT) | 132 | #ifdef CONFIG_SCHEDSTATS |
133 | /* | 133 | /* |
134 | * Called when a process is dequeued from the active array and given | 134 | * Called when a process is dequeued from the active array and given |
135 | * the cpu. We should note that with the exception of interactive | 135 | * the cpu. We should note that with the exception of interactive |
@@ -233,5 +233,5 @@ sched_info_switch(struct task_struct *prev, struct task_struct *next) | |||
233 | #else | 233 | #else |
234 | #define sched_info_queued(t) do { } while (0) | 234 | #define sched_info_queued(t) do { } while (0) |
235 | #define sched_info_switch(t, next) do { } while (0) | 235 | #define sched_info_switch(t, next) do { } while (0) |
236 | #endif /* CONFIG_SCHEDSTATS || CONFIG_TASK_DELAY_ACCT */ | 236 | #endif /* CONFIG_SCHEDSTATS */ |
237 | 237 | ||