Remove the time handler to flush TLBs

This commit is contained in:
Ruihan Li 2025-03-22 23:53:42 +08:00 committed by Junyang Zhang
parent c85986caed
commit ea724f4529
3 changed files with 0 additions and 14 deletions

View File

@ -136,8 +136,6 @@ fn ap_early_entry(local_apic_id: u32) -> ! {
crate::arch::irq::enable_local();
crate::mm::tlb::register_timer_callbacks_this_cpu();
// SAFETY: this function is only called once on this AP.
unsafe {
crate::mm::kspace::activate_kernel_page_table();

View File

@ -106,7 +106,6 @@ unsafe fn init() {
boot::init_after_heap();
mm::dma::init();
mm::tlb::register_timer_callbacks_this_cpu();
unsafe { arch::late_init_on_bsp() };

View File

@ -205,17 +205,6 @@ impl TlbFlushOp {
}
}
/// Registers the timer callbacks for the TLB flush operations.
///
/// We check if there's pending TLB flush requests on each CPU in the timer
/// callback. This is to ensure that the TLB flush requests are processed
/// ultimately in case the IPIs are not received.
///
/// This function should be done once for each CPU during the initialization.
pub(crate) fn register_timer_callbacks_this_cpu() {
crate::timer::register_callback(do_remote_flush);
}
// The queues of pending requests on each CPU.
//
// Lock ordering: lock FLUSH_OPS before PAGE_KEEPER.