]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit551700d3e11724b7b69172b3f236fe9c58e6f451
treed4726e48bfe5e0dd6ce4061551af3d0518efbe83
parent4205a40d5955ebc3619237293e4e77f9b9f3ea98
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