.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * POWER Data Stream Control Register (DSCR) fork test |
---|
3 | 4 | * |
---|
.. | .. |
---|
13 | 14 | * |
---|
14 | 15 | * Copyright 2012, Anton Blanchard, IBM Corporation. |
---|
15 | 16 | * 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. |
---|
20 | 17 | */ |
---|
21 | 18 | #include "dscr.h" |
---|
22 | 19 | |
---|
.. | .. |
---|
25 | 22 | unsigned long i, dscr = 0; |
---|
26 | 23 | pid_t pid; |
---|
27 | 24 | |
---|
| 25 | + SKIP_IF(!have_hwcap2(PPC_FEATURE2_DSCR)); |
---|
| 26 | + |
---|
28 | 27 | srand(getpid()); |
---|
29 | 28 | set_dscr(dscr); |
---|
30 | 29 | |
---|