Fix unnecessary page table activation
This commit is contained in:
parent
8dce83605f
commit
b5f8e4e7bb
|
|
@ -128,12 +128,12 @@ where
|
|||
|
||||
let last_activated_paddr = current_page_table_paddr();
|
||||
|
||||
activate_page_table(self.raw, CachePolicy::Writeback);
|
||||
|
||||
if last_activated_paddr == self.raw {
|
||||
return;
|
||||
}
|
||||
|
||||
activate_page_table(self.raw, CachePolicy::Writeback);
|
||||
|
||||
// Increment the reference count of the current page table.
|
||||
self.inc_ref_count();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue