Skip to content

Commit 328dab9

Browse files
committed
优化 IRQ 启用逻辑,移除不必要的参数传递
1 parent 0227bda commit 328dab9

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

platforms/axplat-aarch64-dyn/src/irq.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ struct IrqIfImpl;
2424
impl IrqIf for IrqIfImpl {
2525
/// Enables or disables the given IRQ.
2626
fn set_enable(irq_raw: usize, enabled: bool) {
27-
set_enable(irq_raw, is_irq_private(irq_raw), None, enabled);
27+
set_enable(irq_raw, None, enabled);
2828
}
2929

3030
/// Registers an IRQ handler for the given IRQ.
@@ -99,7 +99,6 @@ fn current_cpu() -> usize {
9999

100100
pub(crate) fn set_enable(
101101
irq_raw: usize,
102-
is_private: bool,
103102
trigger: Option<Trigger>,
104103
enabled: bool,
105104
) {

platforms/axplat-aarch64-dyn/src/time.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ pub fn enable_irqs() {
6969
CNTP_TVAL_EL0.set(0);
7070
crate::irq::set_enable(
7171
TIMER_IRQ_CONFIG.irq.into(),
72-
true,
7372
Some(TIMER_IRQ_CONFIG.trigger),
7473
false,
7574
);

0 commit comments

Comments
 (0)