summaryrefslogtreecommitdiff
path: root/Kernel/GlobalProcessExposed.cpp
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2022-04-03 16:38:45 +0100
committerAndreas Kling <kling@serenityos.org>2022-04-03 23:20:33 +0200
commit53a95a53470867ee35911cfdd8e94b508459e5fa (patch)
tree7c5918ff0f380db67d59d5ab2f4b07e06c7b5508 /Kernel/GlobalProcessExposed.cpp
parentebe2cf899546951848ced199601548978396d0ed (diff)
downloadserenity-53a95a53470867ee35911cfdd8e94b508459e5fa.zip
Kernel: Rename some ProcessorInfo members to match Intel manual
Let's use terminology from the the Intel manual to avoid confusion. Also add `_string` suffixes to better distinguish the numeric values from the string values.
Diffstat (limited to 'Kernel/GlobalProcessExposed.cpp')
-rw-r--r--Kernel/GlobalProcessExposed.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/Kernel/GlobalProcessExposed.cpp b/Kernel/GlobalProcessExposed.cpp
index ea0c333178..d1f312a164 100644
--- a/Kernel/GlobalProcessExposed.cpp
+++ b/Kernel/GlobalProcessExposed.cpp
@@ -582,14 +582,15 @@ private:
auto& info = proc.info();
auto obj = TRY(array.add_object());
TRY(obj.add("processor", proc.id()));
- TRY(obj.add("cpuid", info.cpuid()));
+ // FIXME: Rename this to use the same name everywhere.
+ TRY(obj.add("cpuid", info.vendor_id_string()));
TRY(obj.add("family", info.display_family()));
auto features_array = TRY(obj.add_array("features"));
auto keep_empty = false;
ErrorOr<void> result; // FIXME: Make this nicer
- info.features().for_each_split_view(' ', keep_empty, [&](StringView feature) {
+ info.features_string().for_each_split_view(' ', keep_empty, [&](StringView feature) {
if (result.is_error())
return;
result = features_array.add(feature);
@@ -601,7 +602,7 @@ private:
TRY(obj.add("model", info.display_model()));
TRY(obj.add("stepping", info.stepping()));
TRY(obj.add("type", info.type()));
- TRY(obj.add("brand", info.brand()));
+ TRY(obj.add("brand", info.brand_string()));
TRY(obj.finish());
return {};