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:
parent
790c067401
commit
0b660474c5
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue