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:
Tom 2020-07-03 10:23:09 -06:00 committed by Andreas Kling
commit 9b4e6f6a23
Notes: sideshowbarker 2024-07-19 05:12:39 +09:00
9 changed files with 197 additions and 145 deletions

View file

@ -88,6 +88,9 @@ ProcessorInfo::ProcessorInfo(Processor& processor):
copy_brand_string_part_to_buffer(2);
m_brandstr = buffer;
}
// Cache the CPU feature string
m_features = m_processor.features_string();
}
}