diff --git a/arch/h8300/kernel/process.c b/arch/h8300/kernel/process.c index 0e9c315be1040cdc85284384596a5da02984b3eb..f153ed1a4c080bf73fb4be51389fec566910825d 100644 --- a/arch/h8300/kernel/process.c +++ b/arch/h8300/kernel/process.c @@ -36,6 +36,7 @@ #include #include #include +#include #include #include @@ -78,8 +79,10 @@ void (*idle)(void) = default_idle; void cpu_idle(void) { while (1) { + rcu_idle_enter(); while (!need_resched()) idle(); + rcu_idle_exit(); schedule_preempt_disabled(); } }