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
devices.c
dtlb_backend.S
dtlb_base.S
dtlb_prot.S
ebus.c
entry.S
etrap.S
head.S
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
isa.c
itlb_base.S
kprobes.c [PATCH] Kprobes: preempt_disable/enable() simplification 2005-11-07 07:53:46 -08:00
ktlb.S
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
process.c [PATCH] sched: disable preempt in idle tasks 2005-11-09 07:56:33 -08:00
ptrace.c
rtrap.S
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
starfire.c
sunos_ioctl32.c [SPARC]: Kill remaining kbio.h references. 2005-11-07 14:12:21 -08:00
sys32.S
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
traps.c
ttable.S
una_asm.S
unaligned.c
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
winfixup.S