forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/arch/arm/mach-imx/mmdc.c
....@@ -1,14 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright 2017 NXP
34 * Copyright 2011,2016 Freescale Semiconductor, Inc.
45 * 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
126 */
137
148 #include <linux/clk.h>
....@@ -295,13 +289,7 @@
295289 return -EOPNOTSUPP;
296290 }
297291
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)
305293 return -EINVAL;
306294
307295 if (cfg < 0 || cfg >= MMDC_NUM_COUNTERS)
....@@ -457,6 +445,7 @@
457445 .start = mmdc_pmu_event_start,
458446 .stop = mmdc_pmu_event_stop,
459447 .read = mmdc_pmu_event_update,
448
+ .capabilities = PERF_PMU_CAP_NO_EXCLUDE,
460449 },
461450 .mmdc_base = mmdc_base,
462451 .dev = dev,