alistair23-linux/include
Eric Dumazet 179f7ebff6 percpu_counter: FBC_BATCH should be a variable
For NR_CPUS >= 16 values, FBC_BATCH is 2*NR_CPUS

Considering more and more distros are using high NR_CPUS values, it makes
sense to use a more sensible value for FBC_BATCH, and get rid of NR_CPUS.

A sensible value is 2*num_online_cpus(), with a minimum value of 32 (This
minimum value helps branch prediction in __percpu_counter_add())

We already have a hotcpu notifier, so we can adjust FBC_BATCH dynamically.

We rename FBC_BATCH to percpu_counter_batch since its not a constant
anymore.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Acked-by: David S. Miller <davem@davemloft.net>
Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2009-01-06 15:59:13 -08:00
..
acpi cpumask: convert shared_cpu_map in acpi_processor* structs to cpumask_var_t 2009-01-03 19:15:40 +01:00
asm-arm
asm-frv atomic_t: unify all arch definitions 2009-01-06 15:59:10 -08:00
asm-generic documentation: when to BUG(), and when to not BUG() 2009-01-06 15:59:13 -08:00
asm-h8300
asm-m32r atomic_t: unify all arch definitions 2009-01-06 15:59:10 -08:00
asm-m68k atomic_t: unify all arch definitions 2009-01-06 15:59:10 -08:00
asm-mn10300 atomic_t: unify all arch definitions 2009-01-06 15:59:10 -08:00
asm-xtensa atomic_t: unify all arch definitions 2009-01-06 15:59:10 -08:00
crypto
drm
keys
linux percpu_counter: FBC_BATCH should be a variable 2009-01-06 15:59:13 -08:00
math-emu
media V4L/DVB (10141): v4l2: debugging API changed to match against driver name instead of ID. 2009-01-02 17:11:52 -02:00
mtd
net ipv6: Fix sporadic sendmsg -EINVAL when sending to multicast groups. 2009-01-04 16:04:39 -08:00
pcmcia
rdma
rxrpc
scsi
sound V4L/DVB (10135): v4l2: introduce v4l2_file_operations. 2009-01-02 17:11:12 -02:00
trace
video
xen
Kbuild