aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorBalbir Singh <[email protected]>2008-11-12 10:49:00 +0000
committerIngo Molnar <[email protected]>2008-11-12 11:33:50 +0000
commita2d477778e82a60a0b7114cefdb70aa43af28782 (patch)
tree52fb05ee2d63765ddddcf4a2e06f310510607735 /net/unix/af_unix.c
parentMerge branch 'timers-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/k... (diff)
downloadkernel-a2d477778e82a60a0b7114cefdb70aa43af28782.tar.gz
kernel-a2d477778e82a60a0b7114cefdb70aa43af28782.zip
sched: fix stale value in average load per task
Impact: fix load balancer load average calculation accuracy cpu_avg_load_per_task() returns a stale value when nr_running is 0. It returns an older stale (caculated when nr_running was non zero) value. This patch returns and sets rq->avg_load_per_task to zero when nr_running is 0. Compile and boot tested on a x86_64 box. Signed-off-by: Balbir Singh <[email protected]> Acked-by: Peter Zijlstra <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions