diff options
author | Christoph Lameter <cl@linux-foundation.org> | 2009-10-03 19:48:22 +0900 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2009-10-03 19:48:22 +0900 |
commit | 4ea7334b6de818b0123fa4be32af4cb8ac65174c (patch) | |
tree | bd9d2671945cdda7629b315d9ecb19b86781e839 /include/net/neighbour.h | |
parent | fce22848a1e9887d92c2a975494b69149808750e (diff) | |
download | kernel_samsung_aries-4ea7334b6de818b0123fa4be32af4cb8ac65174c.zip kernel_samsung_aries-4ea7334b6de818b0123fa4be32af4cb8ac65174c.tar.gz kernel_samsung_aries-4ea7334b6de818b0123fa4be32af4cb8ac65174c.tar.bz2 |
this_cpu: Use this_cpu ops for network statistics
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: David Miller <davem@davemloft.net>
Signed-off-by: Christoph Lameter <cl@linux-foundation.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/net/neighbour.h')
-rw-r--r-- | include/net/neighbour.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/include/net/neighbour.h b/include/net/neighbour.h index 3817fda..f28403f 100644 --- a/include/net/neighbour.h +++ b/include/net/neighbour.h @@ -90,12 +90,7 @@ struct neigh_statistics unsigned long unres_discards; /* number of unresolved drops */ }; -#define NEIGH_CACHE_STAT_INC(tbl, field) \ - do { \ - preempt_disable(); \ - (per_cpu_ptr((tbl)->stats, smp_processor_id())->field)++; \ - preempt_enable(); \ - } while (0) +#define NEIGH_CACHE_STAT_INC(tbl, field) this_cpu_inc((tbl)->stats->field) struct neighbour { |