1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2025-06-07 00:51:40 +00:00

Rsmdr: update pattern for 'is_apu'

Some APUs use the 'with Radeon', other APUs use 'with AMD Radeon'.
This commit is contained in:
The Tumultuous Unicorn Of Darkness 2025-05-01 09:33:04 +02:00
parent 790c067401
commit 0b660474c5
No known key found for this signature in database
GPG key ID: 1E55EE2EFF18BC1A

View file

@ -876,7 +876,7 @@ static int get_amd_multipliers(struct msr_info_t *info, uint32_t pstate, double
/* Constant values for common families */
const int magic_constant = (info->id->x86.ext_family == 0x11) ? 0x8 : 0x10;
const int is_apu = (strstr(info->id->brand_str, "APU") != NULL) || (strstr(info->id->brand_str, "with AMD Radeon ") != NULL);
const int is_apu = (strstr(info->id->brand_str, "APU") != NULL) || (strstr(info->id->brand_str, "Radeon ") != NULL);
const double divisor = is_apu ? 1.0 : 2.0;
/* Check if P-state is valid */