]> git.baikalelectronics.ru Git - kernel.git/commit
perf/x86: Fix cmpxchg() usage in amd_put_event_constraints()
authorRobert Richter <robert.richter@amd.com>
Thu, 5 Apr 2012 16:24:42 +0000 (18:24 +0200)
committerIngo Molnar <mingo@kernel.org>
Thu, 26 Apr 2012 11:52:51 +0000 (13:52 +0200)
commit58643450f737e1acac95b345e6116610f5a6dc0b
tree51897b3ca3df851937d4294d65b7c61faff8ec1b
parent517d68591a5326d023e94245bb5534d8564ba8e4
perf/x86: Fix cmpxchg() usage in amd_put_event_constraints()

Now the return value of cmpxchg() is used to match an event. The
change removes the duplicate event comparison and traverses the list
until an event was removed. This also fixes the following warning:

 arch/x86/kernel/cpu/perf_event_amd.c:170: warning: value computed is not used

Signed-off-by: Robert Richter <robert.richter@amd.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1333643084-26776-3-git-send-email-robert.richter@amd.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event_amd.c