forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-08 01573e231f18eb2d99162747186f59511f56b64d
kernel/tools/testing/selftests/powerpc/pmu/l3_bank_test.c
....@@ -1,6 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright 2014, Michael Ellerman, IBM Corp.
3
- * Licensed under GPLv2.
44 */
55
66 #include <stdio.h>
....@@ -20,6 +20,9 @@
2020 char *p;
2121 int i;
2222
23
+ // The L3 bank logic is only used on Power8 or later
24
+ SKIP_IF(!have_hwcap2(PPC_FEATURE2_ARCH_2_07));
25
+
2326 p = malloc(MALLOC_SIZE);
2427 FAIL_IF(!p);
2528