mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
Kernel: Add hypervisor_vendor_id entry to /proc/cpuinfo
This commit is contained in:
parent
0f27432ec6
commit
33004f9b9d
Notes:
sideshowbarker
2024-07-17 22:09:47 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/33004f9b9d Pull-request: https://github.com/SerenityOS/serenity/pull/13482 Reviewed-by: https://github.com/bgianfo ✅
1 changed files with 2 additions and 0 deletions
|
@ -584,6 +584,8 @@ private:
|
|||
TRY(obj.add("processor", proc.id()));
|
||||
TRY(obj.add("vendor_id", info.vendor_id_string()));
|
||||
TRY(obj.add("family", info.display_family()));
|
||||
if (!info.hypervisor_vendor_id_string().is_null())
|
||||
TRY(obj.add("hypervisor_vendor_id", info.hypervisor_vendor_id_string()));
|
||||
|
||||
auto features_array = TRY(obj.add_array("features"));
|
||||
auto keep_empty = false;
|
||||
|
|
Loading…
Reference in a new issue