mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:18:12 +00:00
Kernel: Replace final loop in PhysicalRegion::return_page() with math
Since it's possible to determine where the small zones will start to occur for each PhysicalRegion, we can use arithmetic so that the call time for both large and small zones is identical.
This commit is contained in:
parent
edb810f854
commit
e3e40cca65
2 changed files with 19 additions and 24 deletions
|
@ -46,6 +46,9 @@ private:
|
|||
|
||||
NonnullOwnPtrVector<PhysicalZone> m_zones;
|
||||
|
||||
size_t m_large_zones;
|
||||
size_t m_small_zones;
|
||||
|
||||
PhysicalZone::List m_usable_zones;
|
||||
PhysicalZone::List m_full_zones;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue