android_kernel_xiaomi_sm8350/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
binfmt_elfn32.c
binfmt_elfo32.c
branch.c
cpu-bugs64.c
cpu-probe.c Add support for SB1A CPU. 2005-10-29 19:32:46 +01:00
dma-no-isa.c
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
ioctl32.c [PATCH] remove ioctl32_handler_t 2005-11-09 07:56:00 -08:00
irix5sys.S
irixelf.c [PATCH] Don't uselessly export task_struct to userspace in core dumps 2005-10-30 17:37:18 -08:00
irixinv.c
irixioctl.c
irixsig.c IRIX: Use schedule_timeout_interruptible. 2005-11-07 18:05:39 +00:00
irq_cpu.c MT bulletproofing. 2005-10-29 19:32:09 +01: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
irq-rm7000.c
irq-rm9000.c
irq.c
linux32.c
Makefile Fixup a few lose ends in explicit support for MIPS R1/R2. 2005-10-29 19:32:37 +01:00
mips_ksyms.c
module.c
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
ptrace32.c Protect manipulation of c0_status against preemption and multithreading. 2005-10-29 19:32:36 +01:00
ptrace.c [PATCH] consolidate sys_ptrace() 2005-11-07 07:53:42 -08:00
r4k_fpu.S
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
r2300_switch.S
r6000_fpu.S
reset.c
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
setup.c Mark a few variables __read_mostly. 2005-10-29 19:31:46 +01: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
signal-common.h
signal.c Fix return type of setup_frame variants 2005-11-07 18:05:39 +00:00
smp_mt.c Virtual SMP support for the 34K. 2005-10-29 19:32:10 +01:00
smp.c [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
syscall.c
sysirix.c
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
vmlinux.lds.S
vpe.c VPE loader janitoring 2005-11-07 18:05:36 +00:00