Fix weird uses of num_online_cpus().
Rusty Russell authored

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: default avatarRusty Russell <rusty@rustcorp.com.au>
Reported-by: default avatarOleg Drokin <green@linuxhacker.ru>
c8ed0010
Name Last commit Last update
..
alpha Merge tag 'asm-generic-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic
arc ARC: Fix thread_saved_pc()
arm Merge git://git.kernel.org/pub/scm/virt/kvm/kvm
arm64 arm64: fix up obsolete cpu function usage.
avr32 Merge tag 'asm-generic-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic
blackfin blackfin: fix up obsolete cpu function usage.
c6x all arches, signal: move restart_block to struct task_struct
cris Merge tag 'cris-for-3.20' of git://git.kernel.org/pub/scm/linux/kernel/git/jesper/cris
frv mm: add missing __PAGETABLE_{PUD,PMD}_FOLDED defines
hexagon all arches, signal: move restart_block to struct task_struct
ia64 ia64: remove deprecated cpus_ usage.
m32r Fix weird uses of num_online_cpus().
m68k mm: add missing __PAGETABLE_{PUD,PMD}_FOLDED defines
metag metag: Fix KSTK_EIP() and KSTK_ESP() macros
microblaze all arches, signal: move restart_block to struct task_struct
mips mips: fix obsolete cpumask_of_cpu usage.
mn10300 mm: add missing __PAGETABLE_{PUD,PMD}_FOLDED defines
nios2 Merge tag 'nios2-v3.20-rc1' of git://git.rocketboards.org/linux-socfpga-next
openrisc Merge tag 'asm-generic-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic
parisc parisc: fix up obsolete cpu function usage.
powerpc powerpc: fix deprecated CPU_MASK_CPU0 usage.
s390 mm: add missing __PAGETABLE_{PUD,PMD}_FOLDED defines
score all arches, signal: move restart_block to struct task_struct
sh Fix weird uses of num_online_cpus().
sparc Merge tag 'asm-generic-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd/asm-generic
tile
um
unicore32
x86
xtensa
.gitignore
Kconfig