From: Paul Turner Date: Thu, 4 Oct 2012 11:18:30 +0000 (+0200) Subject: sched: Account for blocked load waking back up X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~75^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aff3e498844441fa71c5ee1bbc470e1dff9548d9;p=pandora-kernel.git sched: Account for blocked load waking back up When a running entity blocks we migrate its tracked load to cfs_rq->blocked_runnable_avg. In the sleep case this occurs while holding rq->lock and so is a natural transition. Wake-ups however, are potentially asynchronous in the presence of migration and so special care must be taken. We use an atomic counter to track such migrated load, taking care to match this with the previously introduced decay counters so that we don't migrate too much load. Signed-off-by: Paul Turner Reviewed-by: Ben Segall Signed-off-by: Peter Zijlstra Link: http://lkml.kernel.org/r/20120823141506.726077467@google.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed