sched: improve rq-clock overflow logic
authorIngo Molnar <mingo@elte.hu>
Fri, 10 Aug 2007 21:05:11 +0000 (23:05 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 10 Aug 2007 21:05:11 +0000 (23:05 +0200)
commit529c77261bccd9d37f110f58b0753d95beaa9fa2
treefff049581ceaa06591ba07938bb370a0ccee7293
parentac07860264bd2b18834d3fa3be47032115524cea
sched: improve rq-clock overflow logic

improve the rq-clock overflow logic: limit the absolute rq->clock
delta since the last scheduler tick, instead of limiting the delta
itself.

tested by Arjan van de Ven - whole laptop was misbehaving due to
an incorrectly calibrated cpu_khz confusing sched_clock().

Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
kernel/sched.c