.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright 2014, Michael Ellerman, IBM Corp. |
---|
3 | | - * Licensed under GPLv2. |
---|
4 | 4 | */ |
---|
5 | 5 | |
---|
6 | 6 | #define _GNU_SOURCE |
---|
.. | .. |
---|
23 | 23 | static int per_event_excludes(void) |
---|
24 | 24 | { |
---|
25 | 25 | struct event *e, events[4]; |
---|
26 | | - char *platform; |
---|
27 | 26 | int i; |
---|
28 | 27 | |
---|
29 | | - platform = (char *)get_auxv_entry(AT_BASE_PLATFORM); |
---|
30 | | - FAIL_IF(!platform); |
---|
31 | | - SKIP_IF(strcmp(platform, "power8") != 0); |
---|
| 28 | + SKIP_IF(!have_hwcap2(PPC_FEATURE2_ARCH_2_07)); |
---|
32 | 29 | |
---|
33 | 30 | /* |
---|
34 | 31 | * We need to create the events disabled, otherwise the running/enabled |
---|