]> bbs.cooldavid.org Git - net-next-2.6.git/commit
percpu_counter: Make __percpu_counter_add an inline function on UP
authorAnton Blanchard <anton@samba.org>
Tue, 2 Feb 2010 22:46:10 +0000 (14:46 -0800)
committerIngo Molnar <mingo@elte.hu>
Mon, 8 Feb 2010 07:57:36 +0000 (08:57 +0100)
commit0c9cf2efd74dbc90354e2ccc7dbd6bad68ec6c4d
tree49eec3ac499da4fd347cb7300fac6e1c596f2956
parent6d3e0907b8b239d16720d144e2675ecf10d3bc3b
percpu_counter: Make __percpu_counter_add an inline function on UP

Even though batch isn't used on UP, we may want to pass one in
to keep the SMP and UP code paths similar. Convert
__percpu_counter_add to an inline function so we wont get
variable unused warnings if we do.

Signed-off-by: Anton Blanchard <anton@samba.org>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: "Luck, Tony" <tony.luck@intel.com>
Cc: Balbir Singh <balbir@linux.vnet.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
include/linux/percpu_counter.h