]> git.baikalelectronics.ru Git - kernel.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)
commit2e178db5fe3a1562146c48ca7ce01b722cf475f4
treea50cc684f5bc39599cd16b6300b221f12cbc5ee4
parentdaca7b62dc52e93831950654bc1b4529057a6216
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