mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-12 02:59:45 +00:00
Kernel: Consolidate features into CPUFeature enum
This allows us to consolidate printing out all the CPU features into one log statement. Also expose them in /proc/cpuinfo
This commit is contained in:
parent
e373e5f007
commit
9b4e6f6a23
Notes:
sideshowbarker
2024-07-19 05:12:39 +09:00
Author: https://github.com/tomuta
Commit: 9b4e6f6a23
Pull-request: https://github.com/SerenityOS/serenity/pull/2683
Reviewed-by: https://github.com/awesomekling ✅
9 changed files with 197 additions and 145 deletions
|
@ -37,6 +37,7 @@ class ProcessorInfo
|
|||
Processor& m_processor;
|
||||
String m_cpuid;
|
||||
String m_brandstr;
|
||||
String m_features;
|
||||
u32 m_display_model;
|
||||
u32 m_display_family;
|
||||
u32 m_stepping;
|
||||
|
@ -47,6 +48,7 @@ public:
|
|||
|
||||
const String& cpuid() const { return m_cpuid; }
|
||||
const String& brandstr() const { return m_brandstr; }
|
||||
const String& features() const { return m_features; }
|
||||
u32 display_model() const { return m_display_model; }
|
||||
u32 display_family() const { return m_display_family; }
|
||||
u32 stepping() const { return m_stepping; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue