]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit34b2ad5dc39e56dca7007cc5552f36210aadc6e7
treeb97c1c7c1af464c495ab4b625aa04787246e37aa
parenta652d8a40e0e301e945261d11b0f055be6f95ffe
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