aboutsummaryrefslogtreecommitdiffstats
path: root/arch/alpha
diff options
context:
space:
mode:
authorPeter Zijlstra <a.p.zijlstra@chello.nl>2010-09-06 09:51:45 -0400
committerIngo Molnar <mingo@elte.hu>2010-09-09 14:46:31 -0400
commit15ac9a395a753cb28c674e7ea80386ffdff21785 (patch)
tree63879e3031a6ed8e372ffd254ef97ff703a4d478 /arch/alpha
parenta4eaf7f14675cb512d69f0c928055e73d0c6d252 (diff)
perf: Remove the sysfs bits
Neither the overcommit nor the reservation sysfs parameter were actually working, remove them as they'll only get in the way. Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: paulus <paulus@samba.org> LKML-Reference: <new-submission> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/alpha')
-rw-r--r--arch/alpha/kernel/perf_event.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/alpha/kernel/perf_event.c b/arch/alpha/kernel/perf_event.c
index 380ef02d557a..9bb8c024080c 100644
--- a/arch/alpha/kernel/perf_event.c
+++ b/arch/alpha/kernel/perf_event.c
@@ -808,7 +808,7 @@ static void alpha_perf_event_irq_handler(unsigned long la_ptr,
808 wrperfmon(PERFMON_CMD_DISABLE, cpuc->idx_mask); 808 wrperfmon(PERFMON_CMD_DISABLE, cpuc->idx_mask);
809 809
810 /* la_ptr is the counter that overflowed. */ 810 /* la_ptr is the counter that overflowed. */
811 if (unlikely(la_ptr >= perf_max_events)) { 811 if (unlikely(la_ptr >= alpha_pmu->num_pmcs)) {
812 /* This should never occur! */ 812 /* This should never occur! */
813 irq_err_count++; 813 irq_err_count++;
814 pr_warning("PMI: silly index %ld\n", la_ptr); 814 pr_warning("PMI: silly index %ld\n", la_ptr);
@@ -879,7 +879,6 @@ void __init init_hw_perf_events(void)
879 879
880 /* And set up PMU specification */ 880 /* And set up PMU specification */
881 alpha_pmu = &ev67_pmu; 881 alpha_pmu = &ev67_pmu;
882 perf_max_events = alpha_pmu->num_pmcs;
883 882
884 perf_pmu_register(&pmu); 883 perf_pmu_register(&pmu);
885} 884}