Browse Source

Remove duplicate defines.

tags/v0.3.25^2
Chip-Kerchner 2 years ago
parent
commit
e5dc376912
1 changed files with 7 additions and 14 deletions
  1. +7
    -14
      driver/others/dynamic_power.c

+ 7
- 14
driver/others/dynamic_power.c View File

@@ -43,6 +43,13 @@ static int __builtin_cpu_supports(char* arg)
}
#endif

#define CPU_UNKNOWN 0
#define CPU_POWER6 6
#define CPU_POWER7 7
#define CPU_POWER8 8
#define CPU_POWER9 9
#define CPU_POWER10 10

#if defined(C_PGI) || defined(__clang__)
/*
* NV HPC compilers do not yet implement __builtin_cpu_is().
@@ -61,13 +68,6 @@ static int __builtin_cpu_supports(char* arg)
* NOTE NV HPC SDK compilers only support POWER8 and POWER9 at this time
*/

#define CPU_UNKNOWN 0
#define CPU_POWER5 5
#define CPU_POWER6 6
#define CPU_POWER8 8
#define CPU_POWER9 9
#define CPU_POWER10 10

static struct {
uint32_t pvr_mask;
uint32_t pvr_value;
@@ -191,13 +191,6 @@ static int __builtin_cpu_is(const char *cpu) {
#ifdef _AIX
#include <sys/systemcfg.h>

#define CPU_UNKNOWN 0
#define CPU_POWER6 6
#define CPU_POWER7 7
#define CPU_POWER8 8
#define CPU_POWER9 9
#define CPU_POWER10 10

static int cpuid(void)
{
int arch = _system_configuration.implementation;


Loading…
Cancel
Save