x86: Use this_cpu_inc_return for nmi counter
authorTejun Heo <tj@kernel.org>
Sat, 18 Dec 2010 15:30:48 +0000 (16:30 +0100)
committerTejun Heo <tj@kernel.org>
Thu, 30 Dec 2010 11:22:17 +0000 (12:22 +0100)
commitc1955b5f3a95717ce1f5235f6e9968da068e3183
treee6ff2d3c733612fe96bc4c7314901bc3bb3650f9
parent7b543a5334ff4ea2e3ad3b777fc23cdb8072a988
x86: Use this_cpu_inc_return for nmi counter

this_cpu_inc_return() saves us a memory access there.

Reviewed-by: Pekka Enberg <penberg@kernel.org>
Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
arch/x86/kernel/apic/nmi.c