Rusty Russell c8ed00107b Fix weird uses of num_online_cpus().
This may be OK in archs with contiguous CPU numbers and without
hotplug CPUs, but it sets a terrible example.

And open-coding it like drivers/scsi/hpsa.c is just weird.

BTRFS has a weird comparison with num_online_cpus() too, but since
BTRFS just screwed up my test machines' root partition, I'm not
touching it :)

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Reported-by: Oleg Drokin <green@linuxhacker.ru>
2015-03-10 13:54:42 +10:30
..
2013-11-13 20:21:46 +01:00
2011-03-24 20:35:57 +01:00
2012-05-05 13:00:23 +02:00
2011-07-26 16:49:47 -07:00
2015-03-10 13:54:42 +10:30
2014-10-09 22:25:46 -04:00