| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * POWER Data Stream Control Register (DSCR) default test |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 7 | 8 | * |
|---|
| 8 | 9 | * Copyright 2012, Anton Blanchard, IBM Corporation. |
|---|
| 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 | #include "dscr.h" |
|---|
| 16 | 13 | |
|---|
| .. | .. |
|---|
| 66 | 63 | unsigned long i, *status[THREADS]; |
|---|
| 67 | 64 | unsigned long orig_dscr_default; |
|---|
| 68 | 65 | |
|---|
| 66 | + SKIP_IF(!have_hwcap2(PPC_FEATURE2_DSCR)); |
|---|
| 67 | + |
|---|
| 69 | 68 | orig_dscr_default = get_default_dscr(); |
|---|
| 70 | 69 | |
|---|
| 71 | 70 | /* Initial DSCR default */ |
|---|