]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
sched: domain sysctl fixes: use for_each_online_cpu()
authorMilton Miller <miltonm@bga.com>
Mon, 15 Oct 2007 15:00:19 +0000 (17:00 +0200)
committerIngo Molnar <mingo@elte.hu>
Mon, 15 Oct 2007 15:00:19 +0000 (17:00 +0200)
commit97b6ea7b6369d51a451a7d5747a7939a593fdd9c
tree7cc4b183909a1bdcbae6274862552938c180f740
parent5cf9f062c8e33d5a09eaa447550330162b2a96ed
sched: domain sysctl fixes: use for_each_online_cpu()

init_sched_domain_sysctl was walking cpus 0-n and referencing per_cpu
variables.  If the cpus_possible mask is not contigious this will result
in a crash referencing unallocated data.  If the online mask is not
contigious then we would show offline cpus and miss online ones.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched.c