From f52e468cd6c996952c11aa198ce3ace43c7f5d2b Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Sun, 24 Jul 2022 23:01:59 +0100 Subject: [PATCH] Kernel: Fix L1/L2/L3 cache conditionals in ProcFSCPUInformation --- Kernel/GlobalProcessExposed.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Kernel/GlobalProcessExposed.cpp b/Kernel/GlobalProcessExposed.cpp index 2e12e2c880..adb00f3e87 100644 --- a/Kernel/GlobalProcessExposed.cpp +++ b/Kernel/GlobalProcessExposed.cpp @@ -647,11 +647,11 @@ private: if (info.l1_data_cache().has_value()) TRY(add_cache_info("l1_data"sv, *info.l1_data_cache())); - if (info.l1_data_cache().has_value()) + if (info.l1_instruction_cache().has_value()) TRY(add_cache_info("l1_instruction"sv, *info.l1_instruction_cache())); - if (info.l1_data_cache().has_value()) + if (info.l2_cache().has_value()) TRY(add_cache_info("l2"sv, *info.l2_cache())); - if (info.l1_data_cache().has_value()) + if (info.l3_cache().has_value()) TRY(add_cache_info("l3"sv, *info.l3_cache())); TRY(caches.finish());