diff options
-rw-r--r-- | kernel/perf_counter.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/kernel/perf_counter.c b/kernel/perf_counter.c index ef5d8a5b2453..663bbe015057 100644 --- a/kernel/perf_counter.c +++ b/kernel/perf_counter.c | |||
@@ -3570,12 +3570,8 @@ perf_counter_alloc(struct perf_counter_attr *attr, | |||
3570 | if (attr->inherit && (attr->sample_type & PERF_SAMPLE_GROUP)) | 3570 | if (attr->inherit && (attr->sample_type & PERF_SAMPLE_GROUP)) |
3571 | goto done; | 3571 | goto done; |
3572 | 3572 | ||
3573 | if (attr->type == PERF_TYPE_RAW) { | ||
3574 | pmu = hw_perf_counter_init(counter); | ||
3575 | goto done; | ||
3576 | } | ||
3577 | |||
3578 | switch (attr->type) { | 3573 | switch (attr->type) { |
3574 | case PERF_TYPE_RAW: | ||
3579 | case PERF_TYPE_HARDWARE: | 3575 | case PERF_TYPE_HARDWARE: |
3580 | case PERF_TYPE_HW_CACHE: | 3576 | case PERF_TYPE_HW_CACHE: |
3581 | pmu = hw_perf_counter_init(counter); | 3577 | pmu = hw_perf_counter_init(counter); |