aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/perf_event.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/kernel/perf_event.c')
-rw-r--r--arch/arm/kernel/perf_event.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kernel/perf_event.c b/arch/arm/kernel/perf_event.c
index a6bc431cde70..4238bcba9d60 100644
--- a/arch/arm/kernel/perf_event.c
+++ b/arch/arm/kernel/perf_event.c
@@ -410,7 +410,7 @@ __hw_perf_event_init(struct perf_event *event)
410 */ 410 */
411 hwc->config_base |= (unsigned long)mapping; 411 hwc->config_base |= (unsigned long)mapping;
412 412
413 if (!hwc->sample_period) { 413 if (!is_sampling_event(event)) {
414 /* 414 /*
415 * For non-sampling runs, limit the sample_period to half 415 * For non-sampling runs, limit the sample_period to half
416 * of the counter width. That way, the new counter value 416 * of the counter width. That way, the new counter value