Skip to content

Commit

Permalink
added sapphire rapids (not tested yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
rschoene committed Oct 24, 2023
1 parent 5adae46 commit 00ed0e2
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions src/architecture/architecture.c
Original file line number Diff line number Diff line change
Expand Up @@ -246,16 +246,6 @@ x86_energy_mechanisms_t* x86_energy_get_avail_mechanism(void)
supported[X86_ENERGY_COUNTER_DRAM] = true;
is_intel = true;
break;
/* Alderlake */
case 0x97:
case 0x9a:
case 0xbf:
supported[X86_ENERGY_COUNTER_PCKG] = true;
supported[X86_ENERGY_COUNTER_CORES] = true;
supported[X86_ENERGY_COUNTER_GPU] = true;
is_intel = true;
break;
/* none of the above */
case 0x8e:
supported[X86_ENERGY_COUNTER_PCKG] = true;
supported[X86_ENERGY_COUNTER_CORES] = true;
Expand All @@ -264,6 +254,10 @@ x86_energy_mechanisms_t* x86_energy_get_avail_mechanism(void)
supported[X86_ENERGY_COUNTER_PLATFORM] = true;
is_intel = true;
break;
case 0x8f:
supported[X86_ENERGY_COUNTER_PCKG] = true;
supported[X86_ENERGY_COUNTER_DRAM] = true;
/* none of the above */
default:
X86_ENERGY_SET_ERROR("Not a recognized Intel processor (family 0x%x, model 0x%x)", cpu_family, cpu_model);
break;
Expand Down

0 comments on commit 00ed0e2

Please sign in to comment.