kernel/tools/testing/selftests/powerpc/pmu/l3_bank_test.c
.. .. @@ -1,6 +1,6 @@ 1 +// SPDX-License-Identifier: GPL-2.0-only1 2 /* 2 3 * Copyright 2014, Michael Ellerman, IBM Corp. 3 - * Licensed under GPLv2.4 4 */ 5 5 6 6 #include <stdio.h> .. .. @@ -20,6 +20,9 @@ 20 20 char *p; 21 21 int i; 22 22 23 + // The L3 bank logic is only used on Power8 or later24 + SKIP_IF(!have_hwcap2(PPC_FEATURE2_ARCH_2_07));25 +23 26 p = malloc(MALLOC_SIZE); 24 27 FAIL_IF(!p); 25 28