aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2009-08-27 13:08:56 +0200
committerIngo Molnar <[email protected]>2009-08-28 08:26:49 +0200
commit34d76c41554a05425613d16efebb3069c4c545f0 (patch)
treea2c6551f169b1a7e27191098fa8e6acf7f2a76cd /net/lapb/lapb_subr.c
parenta8af7246c114bfd939e539f9566b872c06f6225c (diff)
sched: Fix division by zero - really
When re-computing the shares for each task group's cpu representation we need the ratio of weight on each cpu vs the total weight of the sched domain. Since load-balancing is loosely (read not) synchronized, the weight of individual cpus can change between doing the sum and calculating the ratio. The previous patch dealt with only one of the race scenarios, this patch side steps them all by saving a snapshot of all the individual cpu weights, thereby always working on a consistent set. Signed-off-by: Peter Zijlstra <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: Balbir Singh <[email protected]> Cc: Arjan van de Ven <[email protected]> Cc: Yinghai Lu <[email protected]> LKML-Reference: <1251371336.18584.77.camel@twins> Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions