perf_counter: x86: Allow unpriviliged use of NMIs
authorPeter Zijlstra <a.p.zijlstra@chello.nl>
Wed, 13 May 2009 08:02:57 +0000 (10:02 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 15 May 2009 07:46:57 +0000 (09:46 +0200)
commita026dfecc035f213c1cfa0bf6407ce3155f6a9df
treef65ed18c367f5856b0d643e46377de8463971d77
parentf5a5a2f6e69e88647ae12da39f0ff3a510bcf0a6
perf_counter: x86: Allow unpriviliged use of NMIs

Apply sysctl_perf_counter_priv to NMIs. Also, fail the counter
creation instead of silently down-grading to regular interrupts.

[ Impact: allow wider perf-counter usage ]

Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
LKML-Reference: <new-submission>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/perf_counter.c