fix multi core error of rk3568

This commit is contained in:
lr
2024-07-19 23:15:10 +08:00
parent a8aea9338f
commit ae7992d429
13 changed files with 54 additions and 119 deletions
+2 -4
View File
@@ -303,13 +303,11 @@ static void _scheduler(struct SchedulerRightGroup right_group)
/* if there's not a runnable task, wait for one */
if (next_task == NULL) {
xizi_leave_kernel();
// there is no task to run, into low power mode
cpu_into_low_power();
/* leave kernel for other cores, so they may create a runnable task */
xizi_enter_kernel();
// activate cpu
cpu_leave_low_power();
continue;
}