[RFC PATCH v2 08/11] x86/resctrl: Use cpu_feature_enabled() for RDT allocation
From: Tony Luck
Date: Tue Nov 03 2026 - 16:30:23 EST
The RDT allocation probe uses boot_cpu_has() to test X86_FEATURE_RDT_A.
Use cpu_feature_enabled() for this feature check.
Signed-off-by: Tony Luck <tony.luck@xxxxxxxxx>
---
arch/x86/kernel/cpu/resctrl/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kernel/cpu/resctrl/core.c b/arch/x86/kernel/cpu/resctrl/core.c
index cd3bcd71f475..197d50b795bc 100644
--- a/arch/x86/kernel/cpu/resctrl/core.c
+++ b/arch/x86/kernel/cpu/resctrl/core.c
@@ -1063,7 +1063,7 @@ static __init bool get_rdt_alloc_resources(void)
if (rdt_alloc_capable)
return true;
- if (!boot_cpu_has(X86_FEATURE_RDT_A))
+ if (!cpu_feature_enabled(X86_FEATURE_RDT_A))
return false;
if (rdt_cpu_has(X86_FEATURE_CAT_L3)) {
--
2.56.0