From: Paul Turner Date: Thu, 16 Dec 2010 03:10:17 +0000 (-0800) Subject: sched: Move periodic share updates to entity_tick() X-Git-Tag: v2.6.38-rc1~489^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43365bd7ff37979d2afdccbe953299ed64a4649b;p=pandora-kernel.git sched: Move periodic share updates to entity_tick() Long running entities that do not block (dequeue) require periodic updates to maintain accurate share values. (Note: group entities with several threads are quite likely to be non-blocking in many circumstances). By virtue of being long-running however, we will see entity ticks (otherwise the required update occurs in dequeue/put and we are done). Thus we can move the detection (and associated work) for these updates into the periodic path. This restores the 'atomicity' of update_curr() with respect to accounting. Signed-off-by: Paul Turner Signed-off-by: Peter Zijlstra LKML-Reference: <20101216031038.067028969@google.com> Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed