Eric Dumazet
571e768202
[LIB] pcounter : unline too big functions
...
Before pushing pcounter to Linus tree, I would like to make some adjustments.
Goal is to reduce kernel text size, by unlining too big functions.
When a pcounter is bound to a statically defined per_cpu variable,
we define two small helpers functions. (No more folding function
using the fat for_each_possible_cpu(cpu) ... )
static DEFINE_PER_CPU(int, NAME##_pcounter_values);
static void NAME##_pcounter_add(struct pcounter *self, int val)
{
__get_cpu_var(NAME##_pcounter_values) += val;
}
static int NAME##_pcounter_getval(const struct pcounter *self, int cpu)
{
return per_cpu(NAME##_pcounter_values, cpu);
}
Fast path is therefore unchanged, while folding/alloc/free is now unlined.
This saves 228 bytes on i386
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-01-28 15:00:35 -08:00
..
acpi
kobject: convert /sys/firmware/acpi/ to use kobject_create
2008-01-24 20:40:23 -08:00
asm-alpha
alpha: build fixes
2007-12-17 19:28:16 -08:00
asm-arm
Merge branch 'pxa-plat' into devel
2008-01-28 13:21:38 +00:00
asm-avr32
[ARM] 4764/1: [AT91] AT91CAP9 core support
2008-01-26 15:01:13 +00:00
asm-blackfin
[Blackfin] arch: Add the semtimedop syscall. Upstream uClibc doesn't compile without it.
2008-01-27 19:56:43 +08:00
asm-cris
ide: remove stale ide.h "configuration options"
2008-01-25 22:17:08 +01:00
asm-frv
ide: remove stale ide.h "configuration options"
2008-01-25 22:17:08 +01:00
asm-generic
sched: SCHED_FIFO/SCHED_RR watchdog timer
2008-01-25 21:08:27 +01:00
asm-h8300
asm-h8300: parentheses around definition CLOCK_TICK_RATE
2007-12-10 19:43:54 -08:00
asm-ia64
[IA64] Update Altix BTE error return status patch
2008-01-03 13:18:58 -08:00
asm-m32r
m32r: Update sys_rt_sigsuspend
2007-11-28 01:24:04 +09:00
asm-m68k
asm-m68knommu
m68knommu: fix pread/pwrite defines
2007-11-05 15:12:33 -08:00
asm-mips
[MIPS] SMTC: Fix build error.
2008-01-22 00:35:23 +00:00
asm-parisc
[PARISC] print more than one character at a time for pdc console
2007-12-06 09:32:15 -08:00
asm-powerpc
ide: remove stale ide.h "configuration options"
2008-01-25 22:17:08 +01:00
asm-ppc
asm-s390
[S390] do local_irq_restore while spinning in spin_lock_irqsave.
2008-01-26 14:11:31 +01:00
asm-sh
sh: add spi header and r2d platform data V3
2008-01-28 16:24:46 +09:00
asm-sparc
[SPARC32]: Silence sparc32 warnings on missing syscalls.
2007-12-14 10:59:50 -08:00
asm-sparc64
[SPARC64]: Implement pci_resource_to_user()
2007-12-26 19:33:46 -08:00
asm-um
uml: update address space affected by pud_clear
2007-11-14 18:45:37 -08:00
asm-v850
asm-x86
sched: high-res preemption tick
2008-01-25 21:08:29 +01:00
asm-xtensa
crypto
[CRYPTO] api: Include sched.h for cond_resched in scatterwalk.h
2008-01-11 08:16:59 +11:00
keys
linux
[LIB] pcounter : unline too big functions
2008-01-28 15:00:35 -08:00
math-emu
media
i2c: Constify client address data
2008-01-27 18:14:46 +01:00
mtd
net
[IPVS]: Remove declaration of unimplemented method and remove unused definition from include/net/ip_vs.h
2008-01-28 15:00:30 -08:00
pcmcia
[AVR32] pcmcia ioaddr_t should be 32 bits on AVR32
2007-11-15 13:47:19 +01:00
rdma
RDMA/cma: add support for rdma_migrate_id()
2008-01-25 14:15:32 -08:00
rxrpc
scsi
SG: Convert SCSI to use scatterlist helpers for sg chaining
2008-01-28 10:05:27 +01:00
sound
[ALSA] version 1.0.15
2007-11-20 20:16:43 +01:00
video
xen
Kbuild