diff options
Diffstat (limited to 'kernel/sysctl.c')
| -rw-r--r-- | kernel/sysctl.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 8bfa7d117c54..c57c4532e296 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
| @@ -52,6 +52,10 @@ | |||
| 52 | extern int proc_nr_files(ctl_table *table, int write, struct file *filp, | 52 | extern int proc_nr_files(ctl_table *table, int write, struct file *filp, |
| 53 | void __user *buffer, size_t *lenp, loff_t *ppos); | 53 | void __user *buffer, size_t *lenp, loff_t *ppos); |
| 54 | 54 | ||
| 55 | #ifdef CONFIG_X86 | ||
| 56 | #include <asm/nmi.h> | ||
| 57 | #endif | ||
| 58 | |||
| 55 | #if defined(CONFIG_SYSCTL) | 59 | #if defined(CONFIG_SYSCTL) |
| 56 | 60 | ||
| 57 | /* External variables not in a header file. */ | 61 | /* External variables not in a header file. */ |
| @@ -74,13 +78,6 @@ extern int sysctl_drop_caches; | |||
| 74 | extern int percpu_pagelist_fraction; | 78 | extern int percpu_pagelist_fraction; |
| 75 | extern int compat_log; | 79 | extern int compat_log; |
| 76 | 80 | ||
| 77 | #if defined(CONFIG_X86_LOCAL_APIC) && defined(CONFIG_X86) | ||
| 78 | int unknown_nmi_panic; | ||
| 79 | int nmi_watchdog_enabled; | ||
| 80 | extern int proc_nmi_enabled(struct ctl_table *, int , struct file *, | ||
| 81 | void __user *, size_t *, loff_t *); | ||
| 82 | #endif | ||
| 83 | |||
| 84 | /* this is needed for the proc_dointvec_minmax for [fs_]overflow UID and GID */ | 81 | /* this is needed for the proc_dointvec_minmax for [fs_]overflow UID and GID */ |
| 85 | static int maxolduid = 65535; | 82 | static int maxolduid = 65535; |
| 86 | static int minolduid; | 83 | static int minolduid; |
| @@ -1915,7 +1912,7 @@ int proc_dointvec_bset(ctl_table *table, int write, struct file *filp, | |||
| 1915 | return -EPERM; | 1912 | return -EPERM; |
| 1916 | } | 1913 | } |
| 1917 | 1914 | ||
| 1918 | op = (current->pid == 1) ? OP_SET : OP_AND; | 1915 | op = is_init(current) ? OP_SET : OP_AND; |
| 1919 | return do_proc_dointvec(table,write,filp,buffer,lenp,ppos, | 1916 | return do_proc_dointvec(table,write,filp,buffer,lenp,ppos, |
| 1920 | do_proc_dointvec_bset_conv,&op); | 1917 | do_proc_dointvec_bset_conv,&op); |
| 1921 | } | 1918 | } |
