x86, mce: use atomic_inc_return() instead of add by 1
authorBorislav Petkov <borislav.petkov@amd.com>
Sun, 21 Jun 2009 06:28:22 +0000 (23:28 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Sun, 21 Jun 2009 06:28:22 +0000 (23:28 -0700)
commita95436e44a76a32dcbe7c8df59701ddde53017c1
treecf6b8f52a66cd151b2c4bbb759f4958f6481f471
parente487683990972bf9aa4e688434c46ead76748bca
x86, mce: use atomic_inc_return() instead of add by 1

Use atomic_inc_return() instead of atomic_add_return() by 1.

Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Cc: Andi Kleen <ak@linux.intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/cpu/mcheck/mce.c