Skip to content
Commit c8ed0010 authored by Rusty Russell's avatar Rusty Russell
Browse files

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: default avatarRusty Russell <rusty@rustcorp.com.au>
Reported-by: default avatarOleg Drokin <green@linuxhacker.ru>
parent 2f0f267e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment