.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * POWER Data Stream Control Register (DSCR) sysfs thread test |
---|
3 | 4 | * |
---|
.. | .. |
---|
7 | 8 | * executing on individual CPUs on the system. |
---|
8 | 9 | * |
---|
9 | 10 | * 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. |
---|
14 | 11 | */ |
---|
15 | 12 | #define _GNU_SOURCE |
---|
16 | 13 | #include "dscr.h" |
---|
.. | .. |
---|
59 | 56 | unsigned long orig_dscr_default; |
---|
60 | 57 | int i, j; |
---|
61 | 58 | |
---|
| 59 | + SKIP_IF(!have_hwcap2(PPC_FEATURE2_DSCR)); |
---|
| 60 | + |
---|
62 | 61 | orig_dscr_default = get_default_dscr(); |
---|
63 | 62 | for (i = 0; i < COUNT; i++) { |
---|
64 | 63 | for (j = 0; j < DSCR_MAX; j++) { |
---|