generic, x86: add prctl commands PR_GET_TSC and PR_SET_TSC
authorErik Bosman <ebn310@few.vu.nl>
Fri, 11 Apr 2008 16:54:17 +0000 (18:54 +0200)
committerIngo Molnar <mingo@elte.hu>
Sat, 19 Apr 2008 17:19:55 +0000 (19:19 +0200)
commit8fb402bccf203ecca8f9e0202b8fd3c937dece6f
tree4f102f9cc81dedbf9271f728a4b1e6e731a6a174
parent5deb45e39b946901ae028ccd3a1d0b35fa387475
generic, x86: add prctl commands PR_GET_TSC and PR_SET_TSC

This patch adds prctl commands that make it possible
to deny the execution of timestamp counters in userspace.
If this is not implemented on a specific architecture,
prctl will return -EINVAL.

ned-off-by: Erik Bosman <ejbosman@cs.vu.nl>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/prctl.h
kernel/sys.c