summaryrefslogtreecommitdiff
path: root/Kernel/Arch
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2022-01-11 13:49:09 +0200
committerIdan Horowitz <idan.horowitz@gmail.com>2022-01-12 16:09:09 +0200
commitf9528f18825c5a02623b44e1571e65d88cb9d735 (patch)
treedae392342366ad8d97f1143fc539d61e6e93e9d4 /Kernel/Arch
parentbe81278634e3e3bd85a5411cdec4c64cd678d646 (diff)
downloadserenity-f9528f18825c5a02623b44e1571e65d88cb9d735.zip
Kernel: Rename ProcessorInfo::{m_brandstr => m_brand}
There's no need to specify the type of the member in it's name, especially not in shorthand format.
Diffstat (limited to 'Kernel/Arch')
-rw-r--r--Kernel/Arch/x86/ProcessorInfo.h4
-rw-r--r--Kernel/Arch/x86/common/ProcessorInfo.cpp2
2 files changed, 3 insertions, 3 deletions
diff --git a/Kernel/Arch/x86/ProcessorInfo.h b/Kernel/Arch/x86/ProcessorInfo.h
index 1a3a5ddb7e..c7c15e4a82 100644
--- a/Kernel/Arch/x86/ProcessorInfo.h
+++ b/Kernel/Arch/x86/ProcessorInfo.h
@@ -20,7 +20,7 @@ class Processor;
class ProcessorInfo {
Processor& m_processor;
String m_cpuid;
- String m_brandstr;
+ String m_brand;
NonnullOwnPtr<KString> m_features;
u32 m_display_model;
u32 m_display_family;
@@ -32,7 +32,7 @@ public:
ProcessorInfo(Processor& processor);
const String& cpuid() const { return m_cpuid; }
- const String& brandstr() const { return m_brandstr; }
+ const String& brand() const { return m_brand; }
StringView features() const { return m_features->view(); }
u32 display_model() const { return m_display_model; }
u32 display_family() const { return m_display_family; }
diff --git a/Kernel/Arch/x86/common/ProcessorInfo.cpp b/Kernel/Arch/x86/common/ProcessorInfo.cpp
index b0ca338da4..e843068ec6 100644
--- a/Kernel/Arch/x86/common/ProcessorInfo.cpp
+++ b/Kernel/Arch/x86/common/ProcessorInfo.cpp
@@ -69,7 +69,7 @@ ProcessorInfo::ProcessorInfo(Processor& processor)
copy_brand_string_part_to_buffer(0);
copy_brand_string_part_to_buffer(1);
copy_brand_string_part_to_buffer(2);
- m_brandstr = buffer;
+ m_brand = buffer;
}
}