summaryrefslogtreecommitdiffstats
path: root/kernel/sysctl.c
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2009-06-11 11:25:05 +0200
committerIngo Molnar <mingo@elte.hu>2009-06-11 16:48:38 +0200
commitdf58ab24bf26b166874bfb18b3b5a2e0a8e63179 (patch)
tree388b2fb9d94864c9bd6d6ab9329c31760b7366ae /kernel/sysctl.c
parent0764771dab80d7b84b9a271bee7f1b21a04a3f0c (diff)
downloadblackbird-op-linux-df58ab24bf26b166874bfb18b3b5a2e0a8e63179.tar.gz
blackbird-op-linux-df58ab24bf26b166874bfb18b3b5a2e0a8e63179.zip
perf_counter: Rename perf_counter_limit sysctl
Rename perf_counter_limit to perf_counter_max_sample_rate and prohibit creation of counters with a known higher sample frequency. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Mike Galbraith <efault@gmx.de> Cc: Paul Mackerras <paulus@samba.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sysctl.c')
-rw-r--r--kernel/sysctl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c
index 344a65981dee..9fd4e436b696 100644
--- a/kernel/sysctl.c
+++ b/kernel/sysctl.c
@@ -932,9 +932,9 @@ static struct ctl_table kern_table[] = {
},
{
.ctl_name = CTL_UNNUMBERED,
- .procname = "perf_counter_int_limit",
- .data = &sysctl_perf_counter_limit,
- .maxlen = sizeof(sysctl_perf_counter_limit),
+ .procname = "perf_counter_max_sample_rate",
+ .data = &sysctl_perf_counter_sample_rate,
+ .maxlen = sizeof(sysctl_perf_counter_sample_rate),
.mode = 0644,
.proc_handler = &proc_dointvec,
},
OpenPOWER on IntegriCloud