batman-adv: use per_cpu_add helper
authorShan Wei <davidshan@tencent.com>
Tue, 13 Nov 2012 01:53:26 +0000 (09:53 +0800)
committerAntonio Quartulli <ordex@autistici.org>
Sat, 12 Jan 2013 10:58:19 +0000 (20:58 +1000)
commit569174433d3bd96e206a4b5969a4498371c70d16
treeb97c1c7c1af464c495ab4b625aa04787246e37aa
parent00494be4546432a11d62ebfeca363256ff9822b5
batman-adv: use per_cpu_add helper

this_cpu_add is an atomic operation.
and be more faster than per_cpu_ptr operation.

Signed-off-by: Shan Wei <davidshan@tencent.com>
Reviewed-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
net/batman-adv/main.h