kernel-ark/arch/sparc64/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
auxio.c
binfmt_aout32.c [PATCH] mm: mm_init set_mm_counters 2005-10-29 21:40:38 -07:00
binfmt_elf32.c
central.c
chmc.c
cpu.c [SPARC64]: Add missing IDs for newer cpus. 2005-09-27 22:50:06 -07:00
devices.c [SPARC64]: Probe D/I/E-cache config and use. 2005-09-26 00:32:17 -07:00
dtlb_backend.S [SPARC64]: Kill SZ_BITS define from dtlb_backend.S 2005-09-21 19:23:48 -07:00
dtlb_base.S [SPARC64]: Fix boot failures on SunBlade-150 2005-10-12 12:22:46 -07:00
dtlb_prot.S [SPARC64]: Fix boot failures on SunBlade-150 2005-10-12 12:22:46 -07:00
ebus.c
entry.S [SPARC64]: Fix userland FPU state corruption. 2005-10-07 13:30:49 -07:00
etrap.S [SPARC64]: Replace cheetah+ code patching with variables. 2005-10-04 15:23:20 -07:00
head.S [SPARC64]: Fix boot failures on SunBlade-150 2005-10-12 12:22:46 -07:00
idprom.c
init_task.c
ioctl32.c [PATCH] remove ioctl32_handler_t 2005-11-09 07:56:00 -08:00
iommu_common.c
iommu_common.h
irq.c [SPARC64]: Fix compile error in irq.c 2005-10-08 21:12:04 -07:00
isa.c
itlb_base.S [SPARC64]: Fix boot failures on SunBlade-150 2005-10-12 12:22:46 -07:00
kprobes.c [PATCH] Kprobes: preempt_disable/enable() simplification 2005-11-07 07:53:46 -08:00
ktlb.S [SPARC64]: Fix boot failures on SunBlade-150 2005-10-12 12:22:46 -07:00
Makefile
module.c
pci_common.c
pci_impl.h
pci_iommu.c [SPARC64]: Eliminate PCI IOMMU dma mapping size limit. 2005-10-13 22:15:24 -07:00
pci_psycho.c [SPARC64]: Consolidate common PCI IOMMU init code. 2005-10-13 21:10:08 -07:00
pci_sabre.c [SPARC64]: Consolidate common PCI IOMMU init code. 2005-10-13 21:10:08 -07:00
pci_schizo.c [SPARC64]: Consolidate common PCI IOMMU init code. 2005-10-13 21:10:08 -07:00
pci.c
power.c [SPARC64]: Probe for power device on ISA bus too. 2005-10-06 20:43:54 -07:00
process.c [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
ptrace.c [SPARC64]: Fix several bugs in flush_ptrace_access(). 2005-09-29 18:50:34 -07:00
rtrap.S [SPARC64]: Fix userland FPU state corruption. 2005-10-07 13:30:49 -07:00
sbus.c
semaphore.c
setup.c [SPARC64] mm: don't re-evaluate *ptep 2005-11-07 14:08:46 -08:00
signal32.c [SPARC64] mm: don't re-evaluate *ptep 2005-11-07 14:08:46 -08:00
signal.c
smp.c [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
sparc64_ksyms.c [LIB]: Consolidate _atomic_dec_and_lock() 2005-09-14 21:47:01 -07:00
starfire.c
sunos_ioctl32.c [SPARC]: Kill remaining kbio.h references. 2005-11-07 14:12:21 -08:00
sys32.S [SPARC64]: Fix fault handling in unaligned trap handler. 2005-09-28 20:41:45 -07:00
sys_sparc32.c
sys_sparc.c
sys_sunos32.c
systbls.S
time.c [SPARC64]: Kill off dummy_tick_ops. 2005-11-07 14:10:10 -08:00
trampoline.S [SPARC64]: Replace cheetah+ code patching with variables. 2005-10-04 15:23:20 -07:00
traps.c [SPARC64]: Rewrite convoluted physical memory probing. 2005-09-29 17:58:26 -07:00
ttable.S
una_asm.S [SPARC64]: Fix fault handling in unaligned trap handler. 2005-09-28 20:41:45 -07:00
unaligned.c [SPARC64]: Fix fault handling in unaligned trap handler. 2005-09-28 20:41:45 -07:00
us2e_cpufreq.c [PATCH] kfree cleanup: arch 2005-11-07 07:54:06 -08:00
us3_cpufreq.c [PATCH] kfree cleanup: arch 2005-11-07 07:54:06 -08:00
vmlinux.lds.S [SPARC64]: Add CONFIG_DEBUG_PAGEALLOC support. 2005-09-25 16:46:57 -07:00
winfixup.S [SPARC64]: Replace cheetah+ code patching with variables. 2005-10-04 15:23:20 -07:00