summaryrefslogtreecommitdiff
path: root/Kernel/VM/VMObject.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-08-07 16:34:00 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-08-07 16:34:00 +0200
commitcb2d572a14d24b4d61b4a55ae31f606858b59162 (patch)
tree1a30dafda3d4c61842cd0c8fbe7aef064641fbfc /Kernel/VM/VMObject.cpp
parent3364da388f17fe1da1f9d3c0518e3917359159ae (diff)
downloadserenity-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.cpp4
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()