diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-08-07 16:34:00 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-08-07 16:34:00 +0200 |
commit | cb2d572a14d24b4d61b4a55ae31f606858b59162 (patch) | |
tree | 1a30dafda3d4c61842cd0c8fbe7aef064641fbfc /Kernel/VM/VMObject.cpp | |
parent | 3364da388f17fe1da1f9d3c0518e3917359159ae (diff) | |
download | serenity-cb2d572a14d24b4d61b4a55ae31f606858b59162.zip |
Kernel: Remove "allow CPU caching" flag on VMObject
This wasn't really thought-through, I was just trying anything to see
if it would make WindowServer faster. This doesn't seem to make much of
a difference either way, so let's just not do it for now.
It's easy to bring back if we think we need it in the future.
Diffstat (limited to 'Kernel/VM/VMObject.cpp')
-rw-r--r-- | Kernel/VM/VMObject.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Kernel/VM/VMObject.cpp b/Kernel/VM/VMObject.cpp index 45ef59b567..a695f18e6c 100644 --- a/Kernel/VM/VMObject.cpp +++ b/Kernel/VM/VMObject.cpp @@ -22,9 +22,7 @@ NonnullRefPtr<VMObject> VMObject::create_anonymous(size_t size) NonnullRefPtr<VMObject> VMObject::create_for_physical_range(PhysicalAddress paddr, size_t size) { size = ceil_div(size, PAGE_SIZE) * PAGE_SIZE; - auto vmo = adopt(*new VMObject(paddr, size)); - vmo->m_allow_cpu_caching = false; - return vmo; + return adopt(*new VMObject(paddr, size)); } NonnullRefPtr<VMObject> VMObject::clone() |