.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * POWER Data Stream Control Register (DSCR) sysfs interface test |
---|
3 | 4 | * |
---|
.. | .. |
---|
6 | 7 | * well verified from their sysfs interfaces. |
---|
7 | 8 | * |
---|
8 | 9 | * Copyright 2015, Anshuman Khandual, IBM Corporation. |
---|
9 | | - * |
---|
10 | | - * This program is free software; you can redistribute it and/or modify it |
---|
11 | | - * under the terms of the GNU General Public License version 2 as published |
---|
12 | | - * by the Free Software Foundation. |
---|
13 | 10 | */ |
---|
14 | 11 | #include "dscr.h" |
---|
15 | 12 | |
---|
.. | .. |
---|
80 | 77 | unsigned long orig_dscr_default; |
---|
81 | 78 | int i, j; |
---|
82 | 79 | |
---|
| 80 | + SKIP_IF(!have_hwcap2(PPC_FEATURE2_DSCR)); |
---|
| 81 | + |
---|
83 | 82 | orig_dscr_default = get_default_dscr(); |
---|
84 | 83 | for (i = 0; i < COUNT; i++) { |
---|
85 | 84 | for (j = 0; j < DSCR_MAX; j++) { |
---|