From: Mike Galbraith Date: Fri, 17 Oct 2008 13:33:21 +0000 (+0200) Subject: sched: minor fast-path overhead reduction X-Git-Tag: v2.6.28-rc1~43^2~4 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b0aa51b999c449e5e3f9faa1ee406e052d407fe7;p=linux-2.6-omap-h63xx.git sched: minor fast-path overhead reduction Greetings, 103638d added a bit of avoidable overhead to the fast-path. Use sysctl_sched_min_granularity instead of sched_slice() to restrict buddy wakeups. Signed-off-by: Mike Galbraith Acked-by: Peter Zijlstra Signed-off-by: Ingo Molnar --- diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c index 18fd17172eb..67084936b60 100644 --- a/kernel/sched_fair.c +++ b/kernel/sched_fair.c @@ -747,7 +747,7 @@ pick_next(struct cfs_rq *cfs_rq, struct sched_entity *se) struct rq *rq = rq_of(cfs_rq); u64 pair_slice = rq->clock - cfs_rq->pair_start; - if (!cfs_rq->next || pair_slice > sched_slice(cfs_rq, cfs_rq->next)) { + if (!cfs_rq->next || pair_slice > sysctl_sched_min_granularity) { cfs_rq->pair_start = rq->clock; return se; }