schedule(): only load page table during context switch if it's different

This commit is contained in:
e29001
2016-12-02 11:19:23 +09:00
committed by Balazs Gerofi
parent 8129dec2f7
commit 4ab37dd34a

View File

@@ -2724,7 +2724,9 @@ redo:
restore_fp_regs(next);
}
ihk_mc_load_page_table(next->vm->address_space->page_table);
if (prev && prev->vm->address_space->page_table !=
next->vm->address_space->page_table)
ihk_mc_load_page_table(next->vm->address_space->page_table);
dkprintf("[%d] schedule: tlsblock_base: 0x%lX\n",
ihk_mc_get_processor_id(), next->tlsblock_base);