From 18b64e02e8d87acf19b85bf59e929dfc5da4f8ff Mon Sep 17 00:00:00 2001 From: Yiyang Wu Date: Wed, 11 Dec 2024 11:37:54 +0800 Subject: [PATCH] fix(lab4): fix wrong instructions Signed-off-by: Yiyang Wu --- Lab4/kernel/irq/timer.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Lab4/kernel/irq/timer.c b/Lab4/kernel/irq/timer.c index 5f4f3577..83a8ec27 100644 --- a/Lab4/kernel/irq/timer.c +++ b/Lab4/kernel/irq/timer.c @@ -131,8 +131,7 @@ void handle_timer_irq(void) plat_handle_timer_irq(tick_delta); /* LAB 4 TODO BEGIN (exercise 6) */ /* Decrease the budget of current thread by 1 if current thread is not NULL */ - - /* Then call sched to trigger scheduling */ + /* We will call the sched_periodic in the caller handle_irq so no need to call sched() now. */ /* LAB 4 TODO END (exercise 6) */ }