1
Fork 0
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:
Clay Freeman 2021-12-12 15:00:29 -06:00 committed by Andreas Kling
parent edb810f854
commit e3e40cca65
2 changed files with 19 additions and 24 deletions

View file

@ -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;