sched: sync wakeups vs avg_overlap
authorPeter Zijlstra <peterz@infradead.org>
Wed, 8 Oct 2008 07:16:04 +0000 (09:16 +0200)
committerIngo Molnar <mingo@elte.hu>
Wed, 8 Oct 2008 10:20:26 +0000 (12:20 +0200)
While looking at the code I wondered why we always do:

  sync && avg_overlap < migration_cost

Which is a bit odd, since the overlap test was meant to detect sync wakeups
so using it to specialize sync wakeups doesn't make much sense.

Hence change the code to do:

  sync || avg_overlap < migration_cost

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>

No differences found