.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright 2017 NXP |
---|
3 | 4 | * Copyright 2011,2016 Freescale Semiconductor, Inc. |
---|
4 | 5 | * Copyright 2011 Linaro Ltd. |
---|
5 | | - * |
---|
6 | | - * The code contained herein is licensed under the GNU General Public |
---|
7 | | - * License. You may obtain a copy of the GNU General Public License |
---|
8 | | - * Version 2 or later at the following locations: |
---|
9 | | - * |
---|
10 | | - * http://www.opensource.org/licenses/gpl-license.html |
---|
11 | | - * http://www.gnu.org/copyleft/gpl.html |
---|
12 | 6 | */ |
---|
13 | 7 | |
---|
14 | 8 | #include <linux/clk.h> |
---|
.. | .. |
---|
295 | 289 | return -EOPNOTSUPP; |
---|
296 | 290 | } |
---|
297 | 291 | |
---|
298 | | - if (event->attr.exclude_user || |
---|
299 | | - event->attr.exclude_kernel || |
---|
300 | | - event->attr.exclude_hv || |
---|
301 | | - event->attr.exclude_idle || |
---|
302 | | - event->attr.exclude_host || |
---|
303 | | - event->attr.exclude_guest || |
---|
304 | | - event->attr.sample_period) |
---|
| 292 | + if (event->attr.sample_period) |
---|
305 | 293 | return -EINVAL; |
---|
306 | 294 | |
---|
307 | 295 | if (cfg < 0 || cfg >= MMDC_NUM_COUNTERS) |
---|
.. | .. |
---|
457 | 445 | .start = mmdc_pmu_event_start, |
---|
458 | 446 | .stop = mmdc_pmu_event_stop, |
---|
459 | 447 | .read = mmdc_pmu_event_update, |
---|
| 448 | + .capabilities = PERF_PMU_CAP_NO_EXCLUDE, |
---|
460 | 449 | }, |
---|
461 | 450 | .mmdc_base = mmdc_base, |
---|
462 | 451 | .dev = dev, |
---|