diff options
| -rw-r--r-- | arch/score/kernel/process.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/score/kernel/process.c b/arch/score/kernel/process.c index 2707023c7563..637970cfd3f4 100644 --- a/arch/score/kernel/process.c +++ b/arch/score/kernel/process.c | |||
| @@ -27,6 +27,7 @@ | |||
| 27 | #include <linux/reboot.h> | 27 | #include <linux/reboot.h> |
| 28 | #include <linux/elfcore.h> | 28 | #include <linux/elfcore.h> |
| 29 | #include <linux/pm.h> | 29 | #include <linux/pm.h> |
| 30 | #include <linux/rcupdate.h> | ||
| 30 | 31 | ||
| 31 | void (*pm_power_off)(void); | 32 | void (*pm_power_off)(void); |
| 32 | EXPORT_SYMBOL(pm_power_off); | 33 | EXPORT_SYMBOL(pm_power_off); |
| @@ -50,9 +51,10 @@ void __noreturn cpu_idle(void) | |||
| 50 | { | 51 | { |
| 51 | /* endless idle loop with no priority at all */ | 52 | /* endless idle loop with no priority at all */ |
| 52 | while (1) { | 53 | while (1) { |
| 54 | rcu_idle_enter(); | ||
| 53 | while (!need_resched()) | 55 | while (!need_resched()) |
| 54 | barrier(); | 56 | barrier(); |
| 55 | 57 | rcu_idle_exit(); | |
| 56 | schedule_preempt_disabled(); | 58 | schedule_preempt_disabled(); |
| 57 | } | 59 | } |
| 58 | } | 60 | } |
