kgdb: use atomic_inc and atomic_dec instead of atomic_set
authorJason Wessel <jason.wessel@windriver.com>
Fri, 2 Apr 2010 19:58:18 +0000 (14:58 -0500)
committerJason Wessel <jason.wessel@windriver.com>
Fri, 2 Apr 2010 19:58:18 +0000 (14:58 -0500)
commitae6bf53e0255c8ab04b6fe31806e318432570e3c
treed4726e48bfe5e0dd6ce4061551af3d0518efbe83
parent62fae312197a8fbcd3727261d59f5a6bd0dbf158
kgdb: use atomic_inc and atomic_dec instead of atomic_set

Memory barriers should be used for the kgdb cpu synchronization.  The
atomic_set() does not imply a memory barrier.

Reported-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
kernel/kgdb.c