]> git.baikalelectronics.ru Git - kernel.git/commit
[LIB]: Introduce struct pcounter
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 21 Nov 2007 14:02:58 +0000 (22:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 22:54:39 +0000 (14:54 -0800)
commit9cc87a1366f6b8cf726cbb2f62cc19ef648abf8e
tree78979fc131145d4b2df3cd4721a811784126f05c
parent930b785fbdb1342b9fa05a79e6e857e77af7a3f6
[LIB]: Introduce struct pcounter

This just generalises what was introduced by Eric Dumazet for the struct proto
inuse field in d2fba6d612b118b8d1094451efa664a5986089ec:

    [NET]: Define infrastructure to keep 'inuse' changes in an efficent SMP/NUMA way.

Please look at the comment in there to see the rationale.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/pcounter.h [new file with mode: 0644]
lib/Makefile
lib/pcounter.c [new file with mode: 0644]