Commit MetaInfo

Revision5df4933774aa2a2f312acba0c90348b3390265bb (tree)
Zeit2019-01-13 23:01:13
AutorYoshinori Sato <ysato@user...>
CommiterYoshinori Sato

Log Message

fix arch_cpu_idle

Ändern Zusammenfassung

Diff

--- a/arch/rx/kernel/process.c
+++ b/arch/rx/kernel/process.c
@@ -28,21 +28,10 @@
2828 void (*pm_power_off)(void) = NULL;
2929 EXPORT_SYMBOL(pm_power_off);
3030
31-/*
32- * The idle thread. There's no useful work to be
33- * done, so just try to conserve power and have a
34- * low exit latency (ie sit in a loop waiting for
35- * somebody to say that they'd like to reschedule)
36- */
37-void cpu_idle(void)
31+void arch_cpu_idle(void)
3832 {
39- while (1) {
40- while (!need_resched())
41- __asm__ volatile("wait");
42- preempt_enable_no_resched();
43- schedule();
44- preempt_disable();
45- }
33+ local_irq_enable();
34+ __asm__ volatile("wait");
4635 }
4736
4837 void __noreturn machine_restart(char * __unused)
--- a/kernel/sched/Makefile
+++ b/kernel/sched/Makefile
@@ -29,3 +29,4 @@ obj-$(CONFIG_CPU_FREQ) += cpufreq.o
2929 obj-$(CONFIG_CPU_FREQ_GOV_SCHEDUTIL) += cpufreq_schedutil.o
3030 obj-$(CONFIG_MEMBARRIER) += membarrier.o
3131 obj-$(CONFIG_CPU_ISOLATION) += isolation.o
32+CFLAGS_REMOVE_core.o = -g
Show on old repository browser