forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
kernel/arch/arm/mm/cache-l2x0-pmu.c
....@@ -1,20 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * L220/L310 cache controller support
34 *
45 * Copyright (C) 2016 ARM Limited
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2 as
8
- * published by the Free Software Foundation.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
14
- *
15
- * You should have received a copy of the GNU General Public License
16
- * along with this program; if not, write to the Free Software
17
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
186 */
197 #include <linux/errno.h>
208 #include <linux/hrtimer.h>
....@@ -314,14 +302,6 @@
314302 event->attach_state & PERF_ATTACH_TASK)
315303 return -EINVAL;
316304
317
- if (event->attr.exclude_user ||
318
- event->attr.exclude_kernel ||
319
- event->attr.exclude_hv ||
320
- event->attr.exclude_idle ||
321
- event->attr.exclude_host ||
322
- event->attr.exclude_guest)
323
- return -EINVAL;
324
-
325305 if (event->cpu < 0)
326306 return -EINVAL;
327307
....@@ -544,6 +524,7 @@
544524 .del = l2x0_pmu_event_del,
545525 .event_init = l2x0_pmu_event_init,
546526 .attr_groups = l2x0_pmu_attr_groups,
527
+ .capabilities = PERF_PMU_CAP_NO_EXCLUDE,
547528 };
548529
549530 l2x0_pmu_reset();