android_kernel_motorola_sm6225/arch/mips/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 Support the MIPS32 / MIPS64 DSP ASE. 2005-10-29 19:31:17 +01:00
binfmt_elfn32.c Signed-off-by: Ralf Baechle <ralf@linux-mips.org> 2005-10-29 19:30:19 +01:00
binfmt_elfo32.c Signed-off-by: Ralf Baechle <ralf@linux-mips.org> 2005-10-29 19:30:19 +01:00
branch.c Support the MIPS32 / MIPS64 DSP ASE. 2005-10-29 19:31:17 +01:00
cpu-bugs64.c [PATCH] mips: nuke trailing whitespace 2005-09-05 00:06:07 -07:00
cpu-probe.c Add support for SB1A CPU. 2005-10-29 19:32:46 +01:00
dma-no-isa.c Dummy ISA DMA functions for systems that don't have ISA but share 2005-10-29 19:30:17 +01:00
entry.S Fix excessive signal latencies. 2005-10-29 19:32:23 +01:00
gdb-low.S Get 64-bit right in the kgdb stub. 2005-10-29 19:32:43 +01:00
gdb-stub.c Define and initialize kdb_lock using DEFINE_SPINLOCK. 2005-10-29 19:32:35 +01:00
genex.S Virtual SMP support for the 34K. 2005-10-29 19:32:10 +01:00
head.S Support for MIPSsim, the cycle accurate MIPS simulator. 2005-10-29 19:32:30 +01:00
i8259.c Date: Fri Jan 14 03:03:23 2005 +0000 2005-10-29 19:32:39 +01:00
init_task.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ioctl32.c [PATCH] remove ioctl32_handler_t 2005-11-09 07:56:00 -08:00
irix5sys.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
irixelf.c [PATCH] Don't uselessly export task_struct to userspace in core dumps 2005-10-30 17:37:18 -08:00
irixinv.c Sparseify MIPS. 2005-10-29 19:30:50 +01:00
irixioctl.c Reformatting, remove debugging code. 2005-10-29 19:30:57 +01:00
irixsig.c IRIX: Use schedule_timeout_interruptible. 2005-11-07 18:05:39 +00:00
irq-msc01.c More AP / SP bits for the 34K, the Malta bits and things. Still wants 2005-10-29 19:31:53 +01:00
irq-mv6434x.c Convert struct hw_interrupt_type initializations to ISO C99 named 2005-10-29 19:30:46 +01:00
irq-rm7000.c Convert struct hw_interrupt_type initializations to ISO C99 named 2005-10-29 19:30:46 +01:00
irq-rm9000.c Convert struct hw_interrupt_type initializations to ISO C99 named 2005-10-29 19:30:46 +01:00
irq.c [PATCH] mips: nuke trailing whitespace 2005-09-05 00:06:07 -07:00
irq_cpu.c MT bulletproofing. 2005-10-29 19:32:09 +01:00
linux32.c NPTL, round one. 2005-10-29 19:31:06 +01:00
Makefile Fixup a few lose ends in explicit support for MIPS R1/R2. 2005-10-29 19:32:37 +01:00
mips_ksyms.c [PATCH] mips: clean up 32/64-bit configuration 2005-09-05 00:06:06 -07:00
module.c Improved modules loader, more robust and works on 64bit kernels. 2005-10-29 19:30:39 +01:00
proc.c Add support for SB1A CPU. 2005-10-29 19:32:46 +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
ptrace32.c Protect manipulation of c0_status against preemption and multithreading. 2005-10-29 19:32:36 +01:00
r4k_fpu.S Support the MIPS32 / MIPS64 DSP ASE. 2005-10-29 19:31:17 +01:00
r4k_switch.S Fixup a few lose ends in explicit support for MIPS R1/R2. 2005-10-29 19:32:37 +01:00
r2300_fpu.S kbuild: mips use generic asm-offsets.h support 2005-09-09 22:32:31 +02:00
r2300_switch.S kbuild: mips use generic asm-offsets.h support 2005-09-09 22:32:31 +02:00
r6000_fpu.S kbuild: mips use generic asm-offsets.h support 2005-09-09 22:32:31 +02:00
reset.c [PATCH] Don't export machine_restart, machine_halt, or machine_power_off. 2005-07-26 14:35:42 -07:00
rtlx.c Turn rtlx upside down. 2005-11-07 18:05:33 +00:00
scall32-o32.S Sys_lookup_dcookie arguments occupy 4 argument slots. 2005-10-29 19:32:43 +01:00
scall64-64.S Add inotify syscalls for MIPS. 2005-10-29 19:31:47 +01:00
scall64-n32.S Revise MIPS 64-bit ptrace interface 2005-10-29 19:32:29 +01:00
scall64-o32.S Add inotify syscalls for MIPS. 2005-10-29 19:31:47 +01:00
semaphore.c Always use ".set mips3" rather than select between "mips2" or "mips3" 2005-10-29 19:31:31 +01:00
setup.c Mark a few variables __read_mostly. 2005-10-29 19:31:46 +01:00
signal-common.h Redo RM9000 workaround which along with other DSP ASE changes was 2005-10-29 19:31:23 +01:00
signal.c Fix return type of setup_frame variants 2005-11-07 18:05:39 +00:00
signal32.c Fix return type of setup_frame variants 2005-11-07 18:05:39 +00:00
signal_n32.c Setup_frame is now returning a success value. 2005-10-29 19:31:41 +01:00
smp.c [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
smp_mt.c Virtual SMP support for the 34K. 2005-10-29 19:32:10 +01:00
syscall.c NPTL, round one. 2005-10-29 19:31:06 +01:00
sysirix.c Sparseify MIPS. 2005-10-29 19:30:50 +01:00
time.c [PATCH] jiffies_64 cleanup 2005-10-30 17:37:25 -08:00
traps.c FPU emulator garbage collection. 2005-10-29 19:32:43 +01:00
unaligned.c Sparseify MIPS. 2005-10-29 19:30:50 +01:00
vmlinux.lds.S Get rid of the the remains of 2.4-style ramdisk support. 2005-10-29 19:30:57 +01:00
vpe.c VPE loader janitoring 2005-11-07 18:05:36 +00:00