commit | c8ed00107b60b4a890798677d75e5c2910f393bb | [log] [tgz] |
---|---|---|
author | Rusty Russell <rusty@rustcorp.com.au> | Thu Mar 05 10:49:19 2015 +1030 |
committer | Rusty Russell <rusty@rustcorp.com.au> | Tue Mar 10 13:54:42 2015 +1030 |
tree | 48a0440907bbef7d8d1d71d090881ba00192ee65 | |
parent | 2f0f267ea0720ec6adbe9cf7386450425fac8258 [diff] |
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>