hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/tools/testing/selftests/powerpc/dscr/dscr_default_test.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * POWER Data Stream Control Register (DSCR) default test
34 *
....@@ -7,10 +8,6 @@
78 *
89 * Copyright 2012, Anton Blanchard, IBM Corporation.
910 * Copyright 2015, Anshuman Khandual, IBM Corporation.
10
- *
11
- * This program is free software; you can redistribute it and/or modify it
12
- * under the terms of the GNU General Public License version 2 as published
13
- * by the Free Software Foundation.
1411 */
1512 #include "dscr.h"
1613
....@@ -66,6 +63,8 @@
6663 unsigned long i, *status[THREADS];
6764 unsigned long orig_dscr_default;
6865
66
+ SKIP_IF(!have_hwcap2(PPC_FEATURE2_DSCR));
67
+
6968 orig_dscr_default = get_default_dscr();
7069
7170 /* Initial DSCR default */