]> git.karo-electronics.de Git - karo-tx-linux.git/commit
perf/x86: Clean up cap_user_time* setting
authorPeter Zijlstra <peterz@infradead.org>
Thu, 3 Oct 2013 14:00:14 +0000 (16:00 +0200)
committerIngo Molnar <mingo@kernel.org>
Fri, 4 Oct 2013 07:58:55 +0000 (09:58 +0200)
commitd8b11a0cbd1c66ce283eb9dabe0498dfa6483f32
treea50cc684f5bc39599cd16b6300b221f12cbc5ee4
parent9886167d20c0720dcfb01e62cdff4d906b226f43
perf/x86: Clean up cap_user_time* setting

Currently the cap_user_time_zero capability has different tests than
cap_user_time; even though they expose the exact same data.

Switch from CONSTANT && NONSTOP to sched_clock_stable to also deal
with multi cabinet machines and drop the tsc_disabled() check.. non of
this will work sanely without tsc anyway.

Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/n/tip-nmgn0j0muo1r4c94vlfh23xy@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/kernel/cpu/perf_event.c