Kernel: Make ProcessorInfo::build_foo_string() private

This commit is contained in:
Linus Groh 2022-04-03 16:49:31 +01:00 committed by Andreas Kling
parent afce63fffc
commit f6181cd47e
Notes: sideshowbarker 2024-07-17 14:30:43 +09:00

View File

@ -20,10 +20,6 @@ class ProcessorInfo {
public:
ProcessorInfo(Processor const& processor);
static NonnullOwnPtr<KString> build_vendor_id_string();
static NonnullOwnPtr<KString> build_brand_string();
static NonnullOwnPtr<KString> build_features_string(Processor const&);
StringView vendor_id_string() const { return m_vendor_id_string->view(); }
StringView brand_string() const { return m_brand_string->view(); }
StringView features_string() const { return m_features_string->view(); }
@ -36,6 +32,10 @@ public:
void set_apic_id(u32 apic_id) { m_apic_id = apic_id; }
private:
static NonnullOwnPtr<KString> build_vendor_id_string();
static NonnullOwnPtr<KString> build_brand_string();
static NonnullOwnPtr<KString> build_features_string(Processor const&);
NonnullOwnPtr<KString> m_vendor_id_string;
NonnullOwnPtr<KString> m_brand_string;
NonnullOwnPtr<KString> m_features_string;