diff options
author | Ingo Molnar <mingo@elte.hu> | 2007-10-15 11:00:06 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-10-15 11:00:06 -0400 |
commit | 7a62eabc4d60980eb39fff659f168d903b55c6d7 (patch) | |
tree | d7ac8019f7ed2f863040952ec7139c18ebd2c554 | |
parent | 86d9560cb6bd85986e98b4c63705daec94406bd4 (diff) |
sched: debug: update exec_clock only when SCHED_DEBUG
micro-optimization: update cfs_rq->exec_clock only if
CONFIG_SCHED_DEBUG=y.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Mike Galbraith <efault@gmx.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | kernel/sched_fair.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index 895fef74d99a..ce79eb0f0660 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c | |||
@@ -301,7 +301,7 @@ __update_curr(struct cfs_rq *cfs_rq, struct sched_entity *curr, | |||
301 | schedstat_set(curr->exec_max, max((u64)delta_exec, curr->exec_max)); | 301 | schedstat_set(curr->exec_max, max((u64)delta_exec, curr->exec_max)); |
302 | 302 | ||
303 | curr->sum_exec_runtime += delta_exec; | 303 | curr->sum_exec_runtime += delta_exec; |
304 | cfs_rq->exec_clock += delta_exec; | 304 | schedstat_add(cfs_rq, exec_clock, delta_exec); |
305 | delta_exec_weighted = delta_exec; | 305 | delta_exec_weighted = delta_exec; |
306 | if (unlikely(curr->load.weight != NICE_0_LOAD)) { | 306 | if (unlikely(curr->load.weight != NICE_0_LOAD)) { |
307 | delta_exec_weighted = calc_delta_fair(delta_exec_weighted, | 307 | delta_exec_weighted = calc_delta_fair(delta_exec_weighted, |