perf_event: Cleanup for cpu_clock_perf_event_update()
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Wed, 9 Dec 2009 03:30:36 +0000 (11:30 +0800)
committerIngo Molnar <mingo@elte.hu>
Wed, 9 Dec 2009 08:56:27 +0000 (09:56 +0100)
commitec89a06fd4e12301f11ab039ee07d2353a18addc
tree507d33bda6504dd8422b9952156d338b0200fb2b
parentb93f7978ad6b46133e9453b90ccc057dc2429e75
perf_event: Cleanup for cpu_clock_perf_event_update()

Using atomic64_xchg() instead of atomic64_read() and
atomic64_set().

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Reviewed-by: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Paul Mackerras <paulus@samba.org>
LKML-Reference: <4B1F19DC.90204@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/perf_event.c