From: Peter Zijlstra Date: Fri, 18 Sep 2009 18:14:01 +0000 (+0200) Subject: sched_clock: Make it NMI safe X-Git-Tag: v2.6.32-rc1~628^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=def0a9b2573e00ab0b486cb5382625203ab4c4a6;p=pandora-kernel.git sched_clock: Make it NMI safe Arjan complained about the suckyness of TSC on modern machines, and asked if we could do something about that for PERF_SAMPLE_TIME. Make cpu_clock() NMI safe by removing the spinlock and using cmpxchg. This also makes it smaller and more robust. Affects architectures that use HAVE_UNSTABLE_SCHED_CLOCK, i.e. IA64 and x86. Signed-off-by: Peter Zijlstra LKML-Reference: Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed