diff options
author | Andreas Kling <kling@serenityos.org> | 2021-07-27 14:30:26 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-07-27 14:32:30 +0200 |
commit | 1e43292c3bee9fe9160cece8260f5c46daa54cd6 (patch) | |
tree | 04e9e0a3ebd82a90c6ba3ea7ca138cd571898f73 /Kernel/Forward.h | |
parent | 559ab00249a2956433adddf2e15a26d6d3c0a4c7 (diff) | |
download | serenity-1e43292c3bee9fe9160cece8260f5c46daa54cd6.zip |
Kernel: Introduce ProcessorSpecific<T> for per-CPU data structures
To add a new per-CPU data structure, add an ID for it to the
ProcessorSpecificDataID enum.
Then call ProcessorSpecific<T>::initialize() when you are ready to
construct the per-CPU data structure on the current CPU. It can then
be accessed via ProcessorSpecific<T>::get().
This patch replaces the existing hard-coded mechanisms for Scheduler
and MemoryManager per-CPU data structure.
Diffstat (limited to 'Kernel/Forward.h')
-rw-r--r-- | Kernel/Forward.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Forward.h b/Kernel/Forward.h index a7600a18b6..494dda897d 100644 --- a/Kernel/Forward.h +++ b/Kernel/Forward.h @@ -55,7 +55,7 @@ class RangeAllocator; class RecursiveSpinLock; class Region; class Scheduler; -class SchedulerPerProcessorData; +class SchedulerData; class SharedInodeVMObject; class Socket; class Space; |