android_kernel_xiaomi_sm8350/arch/frv/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
..
asm-offsets.c kbuild: frv,m32r,sparc64 introduce fake asm-offsets.h file 2005-09-09 22:47:53 +02:00
break.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cmode.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
debug-stub.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dma.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
entry-table.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
entry.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
frv_ksyms.c [PATCH] frv: Remove export of strtok() 2005-09-05 00:06:01 -07:00
gdb-io.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gdb-io.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gdb-stub.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
head-mmu-fr451.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
head-uc-fr401.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
head-uc-fr451.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
head-uc-fr555.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
head.inc Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
head.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
init_task.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
irq-mb93091.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
irq-mb93093.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
irq-mb93493.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
irq-routing.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
irq.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
kernel_thread.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
local.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pm-mb93093.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pm.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
process.c [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
ptrace.c [PATCH] consolidate sys_ptrace() 2005-11-07 07:53:42 -08:00
semaphore.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
setup.c [PATCH] Serial: remove unnecessary register_serial/unregister_serial 2005-06-25 16:24:25 -07:00
signal.c [PATCH] convert signal handling of NODEFER to act like other Unix boxes. 2005-08-29 10:03:11 -07:00
sleep.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
switch_to.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sys_frv.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sysctl.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
time.c [PATCH] jiffies_64 cleanup 2005-10-30 17:37:25 -08:00
traps.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
uaccess.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
vmlinux.lds.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00