aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
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/arm
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/arm')
-rw-r--r--arch/arm/kernel/perf_event.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/arch/arm/kernel/perf_event.c b/arch/arm/kernel/perf_event.c
index 448cfa6b3ef0..45d6a35217c1 100644
--- a/arch/arm/kernel/perf_event.c
+++ b/arch/arm/kernel/perf_event.c
@@ -534,7 +534,7 @@ static int armpmu_event_init(struct perf_event *event)
534 event->destroy = hw_perf_event_destroy; 534 event->destroy = hw_perf_event_destroy;
535 535
536 if (!atomic_inc_not_zero(&active_events)) { 536 if (!atomic_inc_not_zero(&active_events)) {
537 if (atomic_read(&active_events) > perf_max_events) { 537 if (atomic_read(&active_events) > armpmu.num_events) {
538 atomic_dec(&active_events); 538 atomic_dec(&active_events);
539 return -ENOSPC; 539 return -ENOSPC;
540 } 540 }
@@ -2974,14 +2974,12 @@ init_hw_perf_events(void)
2974 armpmu = &armv6pmu; 2974 armpmu = &armv6pmu;
2975 memcpy(armpmu_perf_cache_map, armv6_perf_cache_map, 2975 memcpy(armpmu_perf_cache_map, armv6_perf_cache_map,
2976 sizeof(armv6_perf_cache_map)); 2976 sizeof(armv6_perf_cache_map));
2977 perf_max_events = armv6pmu.num_events;
2978 break; 2977 break;
2979 case 0xB020: /* ARM11mpcore */ 2978 case 0xB020: /* ARM11mpcore */
2980 armpmu = &armv6mpcore_pmu; 2979 armpmu = &armv6mpcore_pmu;
2981 memcpy(armpmu_perf_cache_map, 2980 memcpy(armpmu_perf_cache_map,
2982 armv6mpcore_perf_cache_map, 2981 armv6mpcore_perf_cache_map,
2983 sizeof(armv6mpcore_perf_cache_map)); 2982 sizeof(armv6mpcore_perf_cache_map));
2984 perf_max_events = armv6mpcore_pmu.num_events;
2985 break; 2983 break;
2986 case 0xC080: /* Cortex-A8 */ 2984 case 0xC080: /* Cortex-A8 */
2987 armv7pmu.id = ARM_PERF_PMU_ID_CA8; 2985 armv7pmu.id = ARM_PERF_PMU_ID_CA8;
@@ -2993,7 +2991,6 @@ init_hw_perf_events(void)
2993 /* Reset PMNC and read the nb of CNTx counters 2991 /* Reset PMNC and read the nb of CNTx counters
2994 supported */ 2992 supported */
2995 armv7pmu.num_events = armv7_reset_read_pmnc(); 2993 armv7pmu.num_events = armv7_reset_read_pmnc();
2996 perf_max_events = armv7pmu.num_events;
2997 break; 2994 break;
2998 case 0xC090: /* Cortex-A9 */ 2995 case 0xC090: /* Cortex-A9 */
2999 armv7pmu.id = ARM_PERF_PMU_ID_CA9; 2996 armv7pmu.id = ARM_PERF_PMU_ID_CA9;
@@ -3005,7 +3002,6 @@ init_hw_perf_events(void)
3005 /* Reset PMNC and read the nb of CNTx counters 3002 /* Reset PMNC and read the nb of CNTx counters
3006 supported */ 3003 supported */
3007 armv7pmu.num_events = armv7_reset_read_pmnc(); 3004 armv7pmu.num_events = armv7_reset_read_pmnc();
3008 perf_max_events = armv7pmu.num_events;
3009 break; 3005 break;
3010 } 3006 }
3011 /* Intel CPUs [xscale]. */ 3007 /* Intel CPUs [xscale]. */
@@ -3016,13 +3012,11 @@ init_hw_perf_events(void)
3016 armpmu = &xscale1pmu; 3012 armpmu = &xscale1pmu;
3017 memcpy(armpmu_perf_cache_map, xscale_perf_cache_map, 3013 memcpy(armpmu_perf_cache_map, xscale_perf_cache_map,
3018 sizeof(xscale_perf_cache_map)); 3014 sizeof(xscale_perf_cache_map));
3019 perf_max_events = xscale1pmu.num_events;
3020 break; 3015 break;
3021 case 2: 3016 case 2:
3022 armpmu = &xscale2pmu; 3017 armpmu = &xscale2pmu;
3023 memcpy(armpmu_perf_cache_map, xscale_perf_cache_map, 3018 memcpy(armpmu_perf_cache_map, xscale_perf_cache_map,
3024 sizeof(xscale_perf_cache_map)); 3019 sizeof(xscale_perf_cache_map));
3025 perf_max_events = xscale2pmu.num_events;
3026 break; 3020 break;
3027 } 3021 }
3028 } 3022 }
@@ -3032,7 +3026,6 @@ init_hw_perf_events(void)
3032 arm_pmu_names[armpmu->id], armpmu->num_events); 3026 arm_pmu_names[armpmu->id], armpmu->num_events);
3033 } else { 3027 } else {
3034 pr_info("no hardware support available\n"); 3028 pr_info("no hardware support available\n");
3035 perf_max_events = -1;
3036 } 3029 }
3037 3030
3038 perf_pmu_register(&pmu); 3031 perf_pmu_register(&pmu);