File tree Expand file tree Collapse file tree 4 files changed +9
-8
lines changed
Expand file tree Collapse file tree 4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -404,12 +404,12 @@ pub mod modules {
404404 pub use axdriver;
405405 #[ cfg( feature = "fs" ) ]
406406 pub use axfs;
407+ #[ cfg( feature = "ipi" ) ]
408+ pub use axipi;
407409 #[ cfg( feature = "paging" ) ]
408410 pub use axmm;
409411 #[ cfg( feature = "net" ) ]
410412 pub use axnet;
411413 #[ cfg( feature = "multitask" ) ]
412414 pub use axtask;
413- #[ cfg( feature = "ipi" ) ]
414- pub use axipi;
415415}
Original file line number Diff line number Diff line change @@ -33,9 +33,7 @@ impl MulticastCallback {
3333
3434 /// Convert the [`MulticastCallback`] into a [`Callback`].
3535 pub fn into_unicast ( self ) -> Callback {
36- Callback ( Box :: new ( move || {
37- ( self . 0 ) ( )
38- } ) )
36+ Callback ( Box :: new ( move || ( self . 0 ) ( ) ) )
3937 }
4038}
4139
@@ -49,4 +47,4 @@ impl<T: Fn() + 'static> From<T> for MulticastCallback {
4947pub struct IPIEvent {
5048 pub src_cpu_id : usize ,
5149 pub callback : Callback ,
52- }
50+ }
Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ use axhal::irq::IPI_IRQ_NUM;
1616mod event;
1717mod queue;
1818
19- use queue:: IPIEventQueue ;
2019pub use event:: * ;
20+ use queue:: IPIEventQueue ;
2121
2222#[ percpu:: def_percpu]
2323static IPI_EVENT_QUEUE : LazyInit < SpinNoIrq < IPIEventQueue > > = LazyInit :: new ( ) ;
Original file line number Diff line number Diff line change @@ -27,7 +27,10 @@ impl IPIEventQueue {
2727
2828 /// Push a new event into the queue.
2929 pub fn push ( & mut self , src_cpu_id : usize , callback : Callback ) {
30- self . events . push_back ( IPIEvent { src_cpu_id, callback } ) ;
30+ self . events . push_back ( IPIEvent {
31+ src_cpu_id,
32+ callback,
33+ } ) ;
3134 }
3235
3336 /// Try to pop the latest event that exists in the queue.
You can’t perform that action at this time.
0 commit comments