hc
2024-05-14 bedbef8ad3e75a304af6361af235302bcc61d06b
kernel/tools/testing/selftests/powerpc/dscr/dscr_inherit_exec_test.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * POWER Data Stream Control Register (DSCR) fork exec test
34 *
....@@ -12,10 +13,6 @@
1213 *
1314 * Copyright 2012, Anton Blanchard, IBM Corporation.
1415 * Copyright 2015, Anshuman Khandual, IBM Corporation.
15
- *
16
- * This program is free software; you can redistribute it and/or modify it
17
- * under the terms of the GNU General Public License version 2 as published
18
- * by the Free Software Foundation.
1916 */
2017 #include "dscr.h"
2118
....@@ -47,6 +44,8 @@
4744 unsigned long i, dscr = 0;
4845 pid_t pid;
4946
47
+ SKIP_IF(!have_hwcap2(PPC_FEATURE2_DSCR));
48
+
5049 for (i = 0; i < COUNT; i++) {
5150 dscr++;
5251 if (dscr > DSCR_MAX)