1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 16:07:47 +00:00

Kernel: Move feature string building to ProcessorInfo

Other than a dmesgln(), ProcessorInfo is the only user of this function
and is already responsible for building other CPUID-related strings.
This commit is contained in:
Linus Groh 2022-04-03 16:47:38 +01:00 committed by Andreas Kling
parent 53a95a5347
commit afce63fffc
4 changed files with 21 additions and 22 deletions

View file

@ -22,6 +22,7 @@ public:
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(); }