summaryrefslogtreecommitdiffstats
path: root/kernel/sched_stats.h
diff options
context:
space:
mode:
authorPaul Turner <pjt@google.com>2010-12-16 04:10:17 +0100
committerIngo Molnar <mingo@elte.hu>2010-12-19 16:36:22 +0100
commit43365bd7ff37979d2afdccbe953299ed64a4649b (patch)
treeb90aa8813d0f92cae88bc26604e48dea0ee9f87d /kernel/sched_stats.h
parentMerge commit 'v2.6.37-rc6' into sched/core (diff)
downloadlinux-43365bd7ff37979d2afdccbe953299ed64a4649b.tar.xz
linux-43365bd7ff37979d2afdccbe953299ed64a4649b.zip
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 <pjt@google.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <20101216031038.067028969@google.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched_stats.h')
0 files changed, 0 insertions, 0 deletions