diff options
| author | Ingo Molnar <mingo@elte.hu> | 2009-06-11 17:31:52 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2009-06-11 17:31:52 -0400 |
| commit | 0d5959723e1db3fd7323c198a50c16cecf96c7a9 (patch) | |
| tree | 802b623fff261ebcbbddadf84af5524398364a18 /kernel/sys.c | |
| parent | 62fdac5913f71f8f200bd2c9bd59a02e9a1498e9 (diff) | |
| parent | 512626a04e72aca60effe111fa0333ed0b195d21 (diff) | |
Merge branch 'linus' into x86/mce3
Conflicts:
arch/x86/kernel/cpu/mcheck/mce_64.c
arch/x86/kernel/irq.c
Merge reason: Resolve the conflicts above.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sys.c')
| -rw-r--r-- | kernel/sys.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index e7998cf31498..438d99a38c87 100644 --- a/kernel/sys.c +++ b/kernel/sys.c | |||
| @@ -14,6 +14,7 @@ | |||
| 14 | #include <linux/prctl.h> | 14 | #include <linux/prctl.h> |
| 15 | #include <linux/highuid.h> | 15 | #include <linux/highuid.h> |
| 16 | #include <linux/fs.h> | 16 | #include <linux/fs.h> |
| 17 | #include <linux/perf_counter.h> | ||
| 17 | #include <linux/resource.h> | 18 | #include <linux/resource.h> |
| 18 | #include <linux/kernel.h> | 19 | #include <linux/kernel.h> |
| 19 | #include <linux/kexec.h> | 20 | #include <linux/kexec.h> |
| @@ -1793,6 +1794,12 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3, | |||
| 1793 | case PR_SET_TSC: | 1794 | case PR_SET_TSC: |
| 1794 | error = SET_TSC_CTL(arg2); | 1795 | error = SET_TSC_CTL(arg2); |
| 1795 | break; | 1796 | break; |
| 1797 | case PR_TASK_PERF_COUNTERS_DISABLE: | ||
| 1798 | error = perf_counter_task_disable(); | ||
| 1799 | break; | ||
| 1800 | case PR_TASK_PERF_COUNTERS_ENABLE: | ||
| 1801 | error = perf_counter_task_enable(); | ||
| 1802 | break; | ||
| 1796 | case PR_GET_TIMERSLACK: | 1803 | case PR_GET_TIMERSLACK: |
| 1797 | error = current->timer_slack_ns; | 1804 | error = current->timer_slack_ns; |
| 1798 | break; | 1805 | break; |
