From 0b660474c5cca0eb89c401613397bdc449f8ac7d Mon Sep 17 00:00:00 2001 From: The Tumultuous Unicorn Of Darkness Date: Thu, 1 May 2025 09:33:04 +0200 Subject: [PATCH] Rsmdr: update pattern for 'is_apu' Some APUs use the 'with Radeon', other APUs use 'with AMD Radeon'. --- libcpuid/rdmsr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcpuid/rdmsr.c b/libcpuid/rdmsr.c index e79fe77..5dbffb9 100644 --- a/libcpuid/rdmsr.c +++ b/libcpuid/rdmsr.c @@ -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 */