Skip to content

Commit e5dc376

Browse files
author
Chip-Kerchner
committed
Remove duplicate defines.
1 parent 1021074 commit e5dc376

1 file changed

Lines changed: 7 additions & 14 deletions

File tree

driver/others/dynamic_power.c

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ static int __builtin_cpu_supports(char* arg)
4343
}
4444
#endif
4545

46+
#define CPU_UNKNOWN 0
47+
#define CPU_POWER6 6
48+
#define CPU_POWER7 7
49+
#define CPU_POWER8 8
50+
#define CPU_POWER9 9
51+
#define CPU_POWER10 10
52+
4653
#if defined(C_PGI) || defined(__clang__)
4754
/*
4855
* NV HPC compilers do not yet implement __builtin_cpu_is().
@@ -61,13 +68,6 @@ static int __builtin_cpu_supports(char* arg)
6168
* NOTE NV HPC SDK compilers only support POWER8 and POWER9 at this time
6269
*/
6370

64-
#define CPU_UNKNOWN 0
65-
#define CPU_POWER5 5
66-
#define CPU_POWER6 6
67-
#define CPU_POWER8 8
68-
#define CPU_POWER9 9
69-
#define CPU_POWER10 10
70-
7171
static struct {
7272
uint32_t pvr_mask;
7373
uint32_t pvr_value;
@@ -191,13 +191,6 @@ static int __builtin_cpu_is(const char *cpu) {
191191
#ifdef _AIX
192192
#include <sys/systemcfg.h>
193193

194-
#define CPU_UNKNOWN 0
195-
#define CPU_POWER6 6
196-
#define CPU_POWER7 7
197-
#define CPU_POWER8 8
198-
#define CPU_POWER9 9
199-
#define CPU_POWER10 10
200-
201194
static int cpuid(void)
202195
{
203196
int arch = _system_configuration.implementation;

0 commit comments

Comments
 (0)