mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-09 05:16:47 +00:00
Remove the time handler to flush TLBs
This commit is contained in:
parent
c85986caed
commit
ea724f4529
@ -136,8 +136,6 @@ fn ap_early_entry(local_apic_id: u32) -> ! {
|
|||||||
|
|
||||||
crate::arch::irq::enable_local();
|
crate::arch::irq::enable_local();
|
||||||
|
|
||||||
crate::mm::tlb::register_timer_callbacks_this_cpu();
|
|
||||||
|
|
||||||
// SAFETY: this function is only called once on this AP.
|
// SAFETY: this function is only called once on this AP.
|
||||||
unsafe {
|
unsafe {
|
||||||
crate::mm::kspace::activate_kernel_page_table();
|
crate::mm::kspace::activate_kernel_page_table();
|
||||||
|
@ -106,7 +106,6 @@ unsafe fn init() {
|
|||||||
boot::init_after_heap();
|
boot::init_after_heap();
|
||||||
|
|
||||||
mm::dma::init();
|
mm::dma::init();
|
||||||
mm::tlb::register_timer_callbacks_this_cpu();
|
|
||||||
|
|
||||||
unsafe { arch::late_init_on_bsp() };
|
unsafe { arch::late_init_on_bsp() };
|
||||||
|
|
||||||
|
@ -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.
|
// The queues of pending requests on each CPU.
|
||||||
//
|
//
|
||||||
// Lock ordering: lock FLUSH_OPS before PAGE_KEEPER.
|
// Lock ordering: lock FLUSH_OPS before PAGE_KEEPER.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user