mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:08:10 +00:00
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.
This commit is contained in:
parent
3364da388f
commit
cb2d572a14
3 changed files with 1 additions and 8 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue