hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/tools/testing/selftests/powerpc/dscr/dscr_inherit_test.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * POWER Data Stream Control Register (DSCR) fork test
34 *
....@@ -13,10 +14,6 @@
1314 *
1415 * Copyright 2012, Anton Blanchard, IBM Corporation.
1516 * Copyright 2015, Anshuman Khandual, IBM Corporation.
16
- *
17
- * This program is free software; you can redistribute it and/or modify it
18
- * under the terms of the GNU General Public License version 2 as published
19
- * by the Free Software Foundation.
2017 */
2118 #include "dscr.h"
2219
....@@ -25,6 +22,8 @@
2522 unsigned long i, dscr = 0;
2623 pid_t pid;
2724
25
+ SKIP_IF(!have_hwcap2(PPC_FEATURE2_DSCR));
26
+
2827 srand(getpid());
2928 set_dscr(dscr);
3029