|
@@ -67,6 +67,12 @@
|
|
|
#ifndef SET_ENDIAN
|
|
|
# define SET_ENDIAN(a,b) (-EINVAL)
|
|
|
#endif
|
|
|
+#ifndef GET_TSC_CTL
|
|
|
+# define GET_TSC_CTL(a) (-EINVAL)
|
|
|
+#endif
|
|
|
+#ifndef SET_TSC_CTL
|
|
|
+# define SET_TSC_CTL(a) (-EINVAL)
|
|
|
+#endif
|
|
|
|
|
|
/*
|
|
|
* this is where the system-wide overflow UID and GID are defined, for
|
|
@@ -1737,7 +1743,12 @@ asmlinkage long sys_prctl(int option, unsigned long arg2, unsigned long arg3,
|
|
|
#else
|
|
|
return -EINVAL;
|
|
|
#endif
|
|
|
-
|
|
|
+ case PR_GET_TSC:
|
|
|
+ error = GET_TSC_CTL(arg2);
|
|
|
+ break;
|
|
|
+ case PR_SET_TSC:
|
|
|
+ error = SET_TSC_CTL(arg2);
|
|
|
+ break;
|
|
|
default:
|
|
|
error = -EINVAL;
|
|
|
break;
|