mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-26 19:29:16 +00:00
Kernel: Make Processor::id a static function
This eliminates the window between calling Processor::current and the member function where a thread could be moved to another processor. This is generally not as big of a concern as with Processor::current_thread, but also slightly more light weight.
This commit is contained in:
@@ -677,7 +677,7 @@ static bool procfs$cpuinfo(InodeIdentifier, KBufferBuilder& builder)
|
||||
JsonArray features;
|
||||
for (auto& feature : info.features().split(' '))
|
||||
features.append(feature);
|
||||
obj.add("processor", proc.id());
|
||||
obj.add("processor", proc.get_id());
|
||||
obj.add("cpuid", info.cpuid());
|
||||
obj.add("family", info.display_family());
|
||||
obj.add("features", features);
|
||||
|
||||
Reference in New Issue
Block a user