Message ID | tip-fbe752188d5589e7fcbb8e79824e560f77dccc92@git.kernel.org (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
diff --git a/arch/parisc/kernel/process.c b/arch/parisc/kernel/process.c index 2c05a92..8c6b6b6 100644 --- a/arch/parisc/kernel/process.c +++ b/arch/parisc/kernel/process.c @@ -48,6 +48,7 @@ #include <linux/unistd.h> #include <linux/kallsyms.h> #include <linux/uaccess.h> +#include <linux/rcupdate.h> #include <asm/io.h> #include <asm/asm-offsets.h> @@ -69,8 +70,10 @@ void cpu_idle(void) /* endless idle loop with no priority at all */ while (1) { + rcu_idle_enter(); while (!need_resched()) barrier(); + rcu_idle_exit(); schedule_preempt_disabled(); check_pgt_cache(); }