diff options
author | Frederic Weisbecker <fweisbec@gmail.com> | 2010-05-12 17:19:01 -0400 |
---|---|---|
committer | Frederic Weisbecker <fweisbec@gmail.com> | 2010-05-12 17:20:33 -0400 |
commit | a9aa1d02de36b450990b0e25a88fc2ff1c3e6b94 (patch) | |
tree | 1f9d19f1642d263e65906a916a48be9339accc73 /kernel/sysctl.c | |
parent | 5671a10e2bc7f99d9157c6044faf8be2ef302361 (diff) | |
parent | b57f95a38233a2e73b679bea4a5453a1cc2a1cc9 (diff) |
Merge commit 'v2.6.34-rc7' into perf/nmi
Merge reason: catch up with latest softlockup detector changes.
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r-- | kernel/sysctl.c | 51 |
1 files changed, 26 insertions, 25 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index ac72c9e6bd9b..a38af430f0d8 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -23,6 +23,7 @@ | |||
23 | #include <linux/swap.h> | 23 | #include <linux/swap.h> |
24 | #include <linux/slab.h> | 24 | #include <linux/slab.h> |
25 | #include <linux/sysctl.h> | 25 | #include <linux/sysctl.h> |
26 | #include <linux/signal.h> | ||
26 | #include <linux/proc_fs.h> | 27 | #include <linux/proc_fs.h> |
27 | #include <linux/security.h> | 28 | #include <linux/security.h> |
28 | #include <linux/ctype.h> | 29 | #include <linux/ctype.h> |
@@ -50,6 +51,7 @@ | |||
50 | #include <linux/ftrace.h> | 51 | #include <linux/ftrace.h> |
51 | #include <linux/slow-work.h> | 52 | #include <linux/slow-work.h> |
52 | #include <linux/perf_event.h> | 53 | #include <linux/perf_event.h> |
54 | #include <linux/kprobes.h> | ||
53 | 55 | ||
54 | #include <asm/uaccess.h> | 56 | #include <asm/uaccess.h> |
55 | #include <asm/processor.h> | 57 | #include <asm/processor.h> |
@@ -59,6 +61,18 @@ | |||
59 | #include <asm/stacktrace.h> | 61 | #include <asm/stacktrace.h> |
60 | #include <asm/io.h> | 62 | #include <asm/io.h> |
61 | #endif | 63 | #endif |
64 | #ifdef CONFIG_BSD_PROCESS_ACCT | ||
65 | #include <linux/acct.h> | ||
66 | #endif | ||
67 | #ifdef CONFIG_RT_MUTEXES | ||
68 | #include <linux/rtmutex.h> | ||
69 | #endif | ||
70 | #if defined(CONFIG_PROVE_LOCKING) || defined(CONFIG_LOCK_STAT) | ||
71 | #include <linux/lockdep.h> | ||
72 | #endif | ||
73 | #ifdef CONFIG_CHR_DEV_SG | ||
74 | #include <scsi/sg.h> | ||
75 | #endif | ||
62 | 76 | ||
63 | #ifdef CONFIG_NMI_WATCHDOG | 77 | #ifdef CONFIG_NMI_WATCHDOG |
64 | #include <linux/nmi.h> | 78 | #include <linux/nmi.h> |
@@ -68,8 +82,6 @@ | |||
68 | #if defined(CONFIG_SYSCTL) | 82 | #if defined(CONFIG_SYSCTL) |
69 | 83 | ||
70 | /* External variables not in a header file. */ | 84 | /* External variables not in a header file. */ |
71 | extern int C_A_D; | ||
72 | extern int print_fatal_signals; | ||
73 | extern int sysctl_overcommit_memory; | 85 | extern int sysctl_overcommit_memory; |
74 | extern int sysctl_overcommit_ratio; | 86 | extern int sysctl_overcommit_ratio; |
75 | extern int sysctl_panic_on_oom; | 87 | extern int sysctl_panic_on_oom; |
@@ -91,9 +103,6 @@ extern int sysctl_nr_open_min, sysctl_nr_open_max; | |||
91 | #ifndef CONFIG_MMU | 103 | #ifndef CONFIG_MMU |
92 | extern int sysctl_nr_trim_pages; | 104 | extern int sysctl_nr_trim_pages; |
93 | #endif | 105 | #endif |
94 | #ifdef CONFIG_RCU_TORTURE_TEST | ||
95 | extern int rcutorture_runnable; | ||
96 | #endif /* #ifdef CONFIG_RCU_TORTURE_TEST */ | ||
97 | #ifdef CONFIG_BLOCK | 106 | #ifdef CONFIG_BLOCK |
98 | extern int blk_iopoll_enabled; | 107 | extern int blk_iopoll_enabled; |
99 | #endif | 108 | #endif |
@@ -123,14 +132,6 @@ static int min_percpu_pagelist_fract = 8; | |||
123 | 132 | ||
124 | static int ngroups_max = NGROUPS_MAX; | 133 | static int ngroups_max = NGROUPS_MAX; |
125 | 134 | ||
126 | #ifdef CONFIG_MODULES | ||
127 | extern char modprobe_path[]; | ||
128 | extern int modules_disabled; | ||
129 | #endif | ||
130 | #ifdef CONFIG_CHR_DEV_SG | ||
131 | extern int sg_big_buff; | ||
132 | #endif | ||
133 | |||
134 | #ifdef CONFIG_SPARC | 135 | #ifdef CONFIG_SPARC |
135 | #include <asm/system.h> | 136 | #include <asm/system.h> |
136 | #endif | 137 | #endif |
@@ -152,10 +153,6 @@ extern int sysctl_userprocess_debug; | |||
152 | extern int spin_retry; | 153 | extern int spin_retry; |
153 | #endif | 154 | #endif |
154 | 155 | ||
155 | #ifdef CONFIG_BSD_PROCESS_ACCT | ||
156 | extern int acct_parm[]; | ||
157 | #endif | ||
158 | |||
159 | #ifdef CONFIG_IA64 | 156 | #ifdef CONFIG_IA64 |
160 | extern int no_unaligned_warning; | 157 | extern int no_unaligned_warning; |
161 | extern int unaligned_dump_stack; | 158 | extern int unaligned_dump_stack; |
@@ -163,10 +160,6 @@ extern int unaligned_dump_stack; | |||
163 | 160 | ||
164 | extern struct ratelimit_state printk_ratelimit_state; | 161 | extern struct ratelimit_state printk_ratelimit_state; |
165 | 162 | ||
166 | #ifdef CONFIG_RT_MUTEXES | ||
167 | extern int max_lock_depth; | ||
168 | #endif | ||
169 | |||
170 | #ifdef CONFIG_PROC_SYSCTL | 163 | #ifdef CONFIG_PROC_SYSCTL |
171 | static int proc_do_cad_pid(struct ctl_table *table, int write, | 164 | static int proc_do_cad_pid(struct ctl_table *table, int write, |
172 | void __user *buffer, size_t *lenp, loff_t *ppos); | 165 | void __user *buffer, size_t *lenp, loff_t *ppos); |
@@ -205,9 +198,6 @@ extern struct ctl_table epoll_table[]; | |||
205 | int sysctl_legacy_va_layout; | 198 | int sysctl_legacy_va_layout; |
206 | #endif | 199 | #endif |
207 | 200 | ||
208 | extern int prove_locking; | ||
209 | extern int lock_stat; | ||
210 | |||
211 | /* The default sysctl tables: */ | 201 | /* The default sysctl tables: */ |
212 | 202 | ||
213 | static struct ctl_table root_table[] = { | 203 | static struct ctl_table root_table[] = { |
@@ -1454,7 +1444,7 @@ static struct ctl_table fs_table[] = { | |||
1454 | }; | 1444 | }; |
1455 | 1445 | ||
1456 | static struct ctl_table debug_table[] = { | 1446 | static struct ctl_table debug_table[] = { |
1457 | #if defined(CONFIG_X86) || defined(CONFIG_PPC) | 1447 | #if defined(CONFIG_X86) || defined(CONFIG_PPC) || defined(CONFIG_SPARC) |
1458 | { | 1448 | { |
1459 | .procname = "exception-trace", | 1449 | .procname = "exception-trace", |
1460 | .data = &show_unhandled_signals, | 1450 | .data = &show_unhandled_signals, |
@@ -1463,6 +1453,17 @@ static struct ctl_table debug_table[] = { | |||
1463 | .proc_handler = proc_dointvec | 1453 | .proc_handler = proc_dointvec |
1464 | }, | 1454 | }, |
1465 | #endif | 1455 | #endif |
1456 | #if defined(CONFIG_OPTPROBES) | ||
1457 | { | ||
1458 | .procname = "kprobes-optimization", | ||
1459 | .data = &sysctl_kprobes_optimization, | ||
1460 | .maxlen = sizeof(int), | ||
1461 | .mode = 0644, | ||
1462 | .proc_handler = proc_kprobes_optimization_handler, | ||
1463 | .extra1 = &zero, | ||
1464 | .extra2 = &one, | ||
1465 | }, | ||
1466 | #endif | ||
1466 | { } | 1467 | { } |
1467 | }; | 1468 | }; |
1468 | 1469 | ||