diff options
author | James Bottomley <James.Bottomley@SteelEye.com> | 2007-10-29 21:18:11 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2007-10-29 21:18:11 +0100 |
commit | 7bae49d498de87f0da0c20c67adaa278eac84566 (patch) | |
tree | 29af1dd7d73da9c06e6295debf0bf963085a1589 /lib/prio_tree.c | |
parent | 73a2bcb0edb9ffb0b007b3546b430e2c6e415eee (diff) | |
download | linux-7bae49d498de87f0da0c20c67adaa278eac84566.tar.gz linux-7bae49d498de87f0da0c20c67adaa278eac84566.tar.bz2 linux-7bae49d498de87f0da0c20c67adaa278eac84566.zip |
sched: fix incorrect assumption that cpu 0 exists
This patch:
commit 9b5b77512dce239fa168183fa71896712232e95a
Author: Srivatsa Vaddagiri <vatsa@linux.vnet.ibm.com>
Date: Mon Oct 15 17:00:09 2007 +0200
sched: clean up code under CONFIG_FAIR_GROUP_SCHED
Introduced an assumption of the existence of CPU0 via this line
cfs_rq = tg->cfs_rq[0];
If you have no CPU0, that will be NULL. The fix seems to be just to
take whatever cfs_rq queue comes out of the for_each_possible_cpu()
loop, since they're all equally good for the destruction operation.
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'lib/prio_tree.c')
0 files changed, 0 insertions, 0 deletions