cpumask: use cpu_online in kernel/perf_event.c
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 17 Dec 2009 17:43:08 +0000 (11:43 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 17 Dec 2009 01:13:11 +0000 (11:43 +1030)
commitf6325e30ebd6fc870315b017a5d4a6ab15bf790b
treefd5961e95c8aeef5b4f4517c81bedbf4a774cece
parentbea4c899f2b5fad80099aea979780ef19f9b1987
cpumask: use cpu_online in kernel/perf_event.c

Also, we want to check against nr_cpu_ids, not num_possible_cpus().
The latter works, but the correct bounds check is < nr_cpu_ids.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
To: Thomas Gleixner <tglx@linutronix.de>
kernel/perf_event.c