sched: add timer tasks and schedule_timeout()

This commit is contained in:
2023-04-30 21:09:36 +01:00
parent 085c3d2a89
commit 8a0291c9b3
8 changed files with 132 additions and 18 deletions

View File

@@ -33,8 +33,6 @@ struct task *idle_task(void)
static void __idle_function(void)
{
while (1) {
clock_wait(HZ);
printk("idle");
ml_cpu_pause();
}
}