From: Ingo Molnar Date: Thu, 2 Aug 2007 15:41:40 +0000 (+0200) Subject: [PATCH] sched: calc_delta_mine(): use fixed limit X-Git-Tag: v2.6.23-rc2~13^2~8 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ecf691daf7afb418537ba459290191a0a5853be5;p=linux-2.6 [PATCH] sched: calc_delta_mine(): use fixed limit use fixed limit in calc_delta_mine() - this saves an instruction :) Signed-off-by: Ingo Molnar --- diff --git a/kernel/sched.c b/kernel/sched.c index ed8cebf532..b2bc8fa24b 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -657,7 +657,7 @@ calc_delta_mine(unsigned long delta_exec, unsigned long weight, tmp = (tmp * lw->inv_weight) >> WMULT_SHIFT; } - return (unsigned long)min(tmp, (u64)sysctl_sched_runtime_limit); + return (unsigned long)min(tmp, (u64)(unsigned long)LONG_MAX); } static inline unsigned long