android_kernel_xiaomi_sm7250/include
Eric Dumazet 90ddc4f047 [NET]: move struct proto_ops to const
I noticed that some of 'struct proto_ops' used in the kernel may share
a cache line used by locks or other heavily modified data. (default
linker alignement is 32 bytes, and L1_CACHE_LINE is 64 or 128 at
least)

This patch makes sure a 'struct proto_ops' can be declared as const,
so that all cpus can share all parts of it without false sharing.

This is not mandatory : a driver can still use a read/write structure
if it needs to (and eventually a __read_mostly)

I made a global stubstitute to change all existing occurences to make
them const.

This should reduce the possibility of false sharing on SMP, and
speedup some socket system calls.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2006-01-03 13:11:15 -08:00
..
acpi [ACPI] increase owner_id limit to 64 from 32 2005-12-21 04:52:16 -05:00
asm-alpha [FLS64]: generic version 2006-01-03 13:11:06 -08:00
asm-arm [FLS64]: generic version 2006-01-03 13:11:06 -08:00
asm-arm26 [FLS64]: generic version 2006-01-03 13:11:06 -08:00
asm-cris [FLS64]: generic version 2006-01-03 13:11:06 -08:00
asm-frv [FLS64]: generic version 2006-01-03 13:11:06 -08:00
asm-generic [FLS64]: generic version 2006-01-03 13:11:06 -08:00
asm-h8300 [FLS64]: generic version 2006-01-03 13:11:06 -08:00
asm-i386 [FLS64]: generic version 2006-01-03 13:11:06 -08:00
asm-ia64 [FLS64]: generic version 2006-01-03 13:11:06 -08:00
asm-m32r [FLS64]: generic version 2006-01-03 13:11:06 -08:00
asm-m68k [FLS64]: generic version 2006-01-03 13:11:06 -08:00
asm-m68knommu [FLS64]: generic version 2006-01-03 13:11:06 -08:00
asm-mips [FLS64]: generic version 2006-01-03 13:11:06 -08:00
asm-parisc [FLS64]: generic version 2006-01-03 13:11:06 -08:00
asm-powerpc [FLS64]: generic version 2006-01-03 13:11:06 -08:00
asm-ppc [PATCH] ppc: ppc4xx_dma DMA_MODE_{READ,WRITE} fix 2005-12-16 14:43:05 -08:00
asm-s390 [FLS64]: generic version 2006-01-03 13:11:06 -08:00
asm-sh [FLS64]: generic version 2006-01-03 13:11:06 -08:00
asm-sh64 [FLS64]: generic version 2006-01-03 13:11:06 -08:00
asm-sparc [FLS64]: generic version 2006-01-03 13:11:06 -08:00
asm-sparc64 [FLS64]: generic version 2006-01-03 13:11:06 -08:00
asm-um [PATCH] uml: eliminate anonymous union and clean up symlink lossage 2005-11-22 09:13:41 -08:00
asm-v850 [FLS64]: generic version 2006-01-03 13:11:06 -08:00
asm-x86_64 [FLS64]: x86_64 version 2006-01-03 13:11:07 -08:00
asm-xtensa [FLS64]: generic version 2006-01-03 13:11:06 -08:00
keys
linux [NET]: move struct proto_ops to const 2006-01-03 13:11:15 -08:00
math-emu
media [PATCH] V4L/DVB: (3086c) Whitespaces cleanups part 4 2005-12-12 08:57:44 -08:00
mtd
net [NET]: move struct proto_ops to const 2006-01-03 13:11:15 -08:00
pcmcia
rdma [IB] uverbs: have kernel return QP capabilities 2005-11-10 10:22:50 -08:00
rxrpc
scsi [SCSI] fix for fc transport recursion problem. 2005-12-15 19:22:14 -08:00
sound
video