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> |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| align.c | ||
| asm-offsets.c | ||
| entry.S | ||
| head.S | ||
| irq.c | ||
| m32r_ksyms.c | ||
| Makefile | ||
| module.c | ||
| process.c | ||
| ptrace.c | ||
| setup.c | ||
| signal.c | ||
| smp.c | ||
| smpboot.c | ||
| sys_m32r.c | ||
| syscall_table.S | ||
| time.c | ||
| traps.c | ||
| vmlinux.lds.S | ||