From: Yuyang Du Date: Fri, 19 Dec 2014 00:29:56 +0000 (+0800) Subject: sched: Fix odd values in effective_load() calculations X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~297^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32a8df4e0b33fccc9715213b382160415b5c4008;p=pandora-kernel.git sched: Fix odd values in effective_load() calculations In effective_load, we have (long w * unsigned long tg->shares) / long W, when w is negative, it is cast to unsigned long and hence the product is insanely large. Fix this by casting tg->shares to long. Reported-by: Sasha Levin Signed-off-by: Yuyang Du Signed-off-by: Peter Zijlstra (Intel) Cc: Dave Jones Cc: Andrey Ryabinin Cc: Linus Torvalds Link: http://lkml.kernel.org/r/20141219002956.GA25405@intel.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed