| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * POWER Data Stream Control Register (DSCR) fork exec test |
|---|
| 3 | 4 | * |
|---|
| .. | .. |
|---|
| 12 | 13 | * |
|---|
| 13 | 14 | * Copyright 2012, Anton Blanchard, IBM Corporation. |
|---|
| 14 | 15 | * Copyright 2015, Anshuman Khandual, IBM Corporation. |
|---|
| 15 | | - * |
|---|
| 16 | | - * This program is free software; you can redistribute it and/or modify it |
|---|
| 17 | | - * under the terms of the GNU General Public License version 2 as published |
|---|
| 18 | | - * by the Free Software Foundation. |
|---|
| 19 | 16 | */ |
|---|
| 20 | 17 | #include "dscr.h" |
|---|
| 21 | 18 | |
|---|
| .. | .. |
|---|
| 47 | 44 | unsigned long i, dscr = 0; |
|---|
| 48 | 45 | pid_t pid; |
|---|
| 49 | 46 | |
|---|
| 47 | + SKIP_IF(!have_hwcap2(PPC_FEATURE2_DSCR)); |
|---|
| 48 | + |
|---|
| 50 | 49 | for (i = 0; i < COUNT; i++) { |
|---|
| 51 | 50 | dscr++; |
|---|
| 52 | 51 | if (dscr > DSCR_MAX) |
|---|