android_kernel_xiaomi_sm8350/arch/cris/arch-v32/kernel
Nick Piggin 5bfb5d690f [PATCH] sched: disable preempt in idle tasks
Run idle threads with preempt disabled.

Also corrected a bugs in arm26's cpu_idle (make it actually call schedule()).
How did it ever work before?

Might fix the CPU hotplugging hang which Nigel Cunningham noted.

We think the bug hits if the idle thread is preempted after checking
need_resched() and before going to sleep, then the CPU offlined.

After calling stop_machine_run, the CPU eventually returns from preemption and
into the idle thread and goes to sleep.  The CPU will continue executing
previous idle and have no chance to call play_dead.

By disabling preemption until we are ready to explicitly schedule, this bug is
fixed and the idle threads generally become more robust.

From: alexs <ashepard@u.washington.edu>

  PPC build fix

From: Yoichi Yuasa <yuasa@hh.iij4u.or.jp>

  MIPS build fix

Signed-off-by: Nick Piggin <npiggin@suse.de>
Signed-off-by: Yoichi Yuasa <yuasa@hh.iij4u.or.jp>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-11-09 07:56:33 -08:00
..
arbiter.c [PATCH] CRIS update: new subarchitecture v32 2005-07-27 16:26:01 -07:00
asm-offsets.c [PATCH] CRIS update: new subarchitecture v32 2005-07-27 16:26:01 -07:00
crisksyms.c [PATCH] CRIS update: new subarchitecture v32 2005-07-27 16:26:01 -07:00
debugport.c [PATCH] CRIS update: new subarchitecture v32 2005-07-27 16:26:01 -07:00
dma.c [PATCH] CRIS update: new subarchitecture v32 2005-07-27 16:26:01 -07:00
entry.S kbuild: cris use generic asm-offsets.h support 2005-09-09 22:44:31 +02:00
fasttimer.c [PATCH] CRIS update: new subarchitecture v32 2005-07-27 16:26:01 -07:00
head.S [PATCH] CRIS update: new subarchitecture v32 2005-07-27 16:26:01 -07:00
io.c [PATCH] CRIS update: new subarchitecture v32 2005-07-27 16:26:01 -07:00
irq.c [PATCH] CRIS update: new subarchitecture v32 2005-07-27 16:26:01 -07:00
kgdb_asm.S [PATCH] CRIS update: new subarchitecture v32 2005-07-27 16:26:01 -07:00
kgdb.c [PATCH] CRIS update: new subarchitecture v32 2005-07-27 16:26:01 -07:00
Makefile [PATCH] CRIS update: new subarchitecture v32 2005-07-27 16:26:01 -07:00
pinmux.c [PATCH] CRIS update: new subarchitecture v32 2005-07-27 16:26:01 -07:00
process.c [PATCH] CRIS update: new subarchitecture v32 2005-07-27 16:26:01 -07:00
ptrace.c [PATCH] consolidate sys_ptrace() 2005-11-07 07:53:42 -08:00
setup.c [PATCH] CRIS update: new subarchitecture v32 2005-07-27 16:26:01 -07:00
signal.c [PATCH] cris: "extern inline" -> "static inline" 2005-11-07 07:53:30 -08:00
smp.c [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
time.c [PATCH] CRIS update: new subarchitecture v32 2005-07-27 16:26:01 -07:00
traps.c [PATCH] CRIS update: new subarchitecture v32 2005-07-27 16:26:01 -07:00
vcs_hook.c [PATCH] CRIS update: new subarchitecture v32 2005-07-27 16:26:01 -07:00
vcs_hook.h [PATCH] CRIS update: new subarchitecture v32 2005-07-27 16:26:01 -07:00