| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * POWER Data Stream Control Register (DSCR) explicit 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 | |
|---|
| .. | .. |
|---|
| 24 | 21 | { |
|---|
| 25 | 22 | unsigned long i, dscr = 0; |
|---|
| 26 | 23 | |
|---|
| 24 | + SKIP_IF(!have_hwcap2(PPC_FEATURE2_DSCR)); |
|---|
| 25 | + |
|---|
| 27 | 26 | srand(getpid()); |
|---|
| 28 | 27 | set_dscr(dscr); |
|---|
| 29 | 28 | |
|---|