android_kernel_xiaomi_sm7250/arch/arm/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
..
apm.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
armksyms.c [ARM] 3134/1: add missing EXPORT_SYMBOL for the ARM version of sha_transform 2005-11-08 22:43:05 +00:00
arthur.c [PATCH] fix missing includes 2005-10-30 17:37:32 -08:00
asm-offsets.c [ARM] 3060/1: allow constants found in asm/memory.h to be used in asm code 2005-10-29 21:44:55 +01:00
bios32.c [PATCH] pci and yenta: pcibios_bus_to_resource 2005-08-04 21:32:46 -07:00
calls.S [ARM] 2896/1: Add sys_ipc_wrapper to pass 'fifth' argument on stack 2005-09-13 22:55:00 +01:00
compat.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
debug.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
dma-isa.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
ecard.c [ARM] Fix second missing declaration of cache_is_vivt() 2005-11-06 19:47:04 +00:00
entry-armv.S [ARM SMP] Add core ARM support for local timers 2005-11-08 19:08:05 +00:00
entry-common.S [ARM] 2974/1: fix ARM710 swi bug workaround 2005-10-12 19:51:24 +01:00
entry-header.S kbuild: arm - use generic asm-offsets.h support 2005-09-09 21:08:59 +02:00
fiq.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
head.S [ARM] 3061/1: cleanup the XIP link address mess 2005-10-29 21:44:56 +01:00
init_task.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
io.c [ARM] Fix compiler warnings for memcpy_toio/memcpy_fromio/memset_io 2005-09-24 10:42:06 +01:00
irq.c [ARM SMP] Add core ARM support for local timers 2005-11-08 19:08:05 +00:00
isa.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
iwmmxt.S kbuild: arm - use generic asm-offsets.h support 2005-09-09 21:08:59 +02:00
Makefile [ARM] 3061/1: cleanup the XIP link address mess 2005-10-29 21:44:56 +01:00
module.c [ARM] Fix sparse warnings 2005-10-28 14:29:43 +01: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
ptrace.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
semaphore.c [ARM] Fix warning in arch/arm/kernel/semaphore.c 2005-09-18 21:49:29 +01:00
setup.c [ARM] Fix /proc/cpuinfo format for ARM SMP 2005-11-06 21:41:08 +00:00
signal.c [PATCH] mm: arm ready for split ptlock 2005-10-29 21:40:42 -07:00
signal.h [PATCH] ARM: Move signal return code into vector page 2005-06-22 20:26:05 +01:00
smp.c [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
sys_arm.c [ARM] 2952/1: fix a register clobber list 2005-10-04 23:17:53 +01:00
time.c [PATCH] jiffies_64 cleanup 2005-10-30 17:37:25 -08:00
traps.c [ARM] Re-organise die() 2005-10-30 19:01:43 +00:00
vmlinux.lds.S [ARM] 3061/1: cleanup the XIP link address mess 2005-10-29 21:44:56 +01:00