android_kernel_xiaomi_sm8350/arch/ia64/kernel
Zwane Mwaikambo f370513640 [PATCH] i386 CPU hotplug
(The i386 CPU hotplug patch provides infrastructure for some work which Pavel
is doing as well as for ACPI S3 (suspend-to-RAM) work which Li Shaohua
<shaohua.li@intel.com> is doing)

The following provides i386 architecture support for safely unregistering and
registering processors during runtime, updated for the current -mm tree.  In
order to avoid dumping cpu hotplug code into kernel/irq/* i dropped the
cpu_online check in do_IRQ() by modifying fixup_irqs().  The difference being
that on cpu offline, fixup_irqs() is called before we clear the cpu from
cpu_online_map and a long delay in order to ensure that we never have any
queued external interrupts on the APICs.  There are additional changes to s390
and ppc64 to account for this change.

1) Add CONFIG_HOTPLUG_CPU
2) disable local APIC timer on dead cpus.
3) Disable preempt around irq balancing to prevent CPUs going down.
4) Print irq stats for all possible cpus.
5) Debugging check for interrupts on offline cpus.
6) Hacky fixup_irqs() to redirect irqs when cpus go off/online.
7) play_dead() for offline cpus to spin inside.
8) Handle offline cpus set in flush_tlb_others().
9) Grab lock earlier in smp_call_function() to prevent CPUs going down.
10) Implement __cpu_disable() and __cpu_die().
11) Enable local interrupts in cpu_enable() after fixup_irqs()
12) Don't fiddle with NMI on dead cpu, but leave intact on other cpus.
13) Program IRQ affinity whilst cpu is still in cpu_online_map on offline.

Signed-off-by: Zwane Mwaikambo <zwane@linuxpower.ca>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-06-25 16:24:29 -07:00
..
acpi-ext.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
acpi.c [IA64] use common pxm function 2005-05-03 13:33:18 -07:00
asm-offsets.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
brl_emu.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cyclone.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
domain.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
efi_stub.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
efi.c [PATCH] ia64 uncached alloc 2005-06-21 18:46:18 -07:00
entry.h [IA64] Drop spurious paren in entry.h 2005-06-20 09:34:02 -07:00
entry.S [PATCH] VM: early zone reclaim 2005-06-21 18:46:14 -07:00
fsys.S [IA64] Fix race condition in the rt_sigprocmask fastcall 2005-06-09 13:04:30 -07:00
gate-data.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gate.lds.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
gate.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
head.S [IA64] Fix build errors for !HOTPLUG case. 2005-04-22 14:46:24 -07:00
ia64_ksyms.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
init_task.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
iosapic.c [IA64] iosapic.c: typo ... s/spin_unlock_irq/spin_unlock/ 2005-04-25 13:27:48 -07:00
irq_ia64.c [IA64] vector sharing (Large I/O system support) 2005-04-25 13:26:23 -07:00
irq_lsapic.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
irq.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
ivt.S [IA64] fix nested_dtlb_miss handler for hugetlb address 2005-06-21 14:40:31 -07:00
jprobes.S [PATCH] Kprobes/IA64: architecture specific JProbes support 2005-06-23 09:45:22 -07:00
kprobes.c [PATCH] Kprobes/ia64: temporary disarming of reentrant probe 2005-06-23 09:45:25 -07:00
machvec.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile [PATCH] Kprobes/IA64: architecture specific JProbes support 2005-06-23 09:45:22 -07:00
mca_asm.S [IA64] cpu hotplug: return offlined cpus to SAL 2005-04-22 14:44:40 -07:00
mca_drv_asm.S [IA64] MCA recovery improvements 2005-05-03 13:47:42 -07:00
mca_drv.c [IA64] MCA recovery improvements 2005-05-03 13:47:42 -07:00
mca_drv.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mca.c [IA64] Cleanup compile warnings for ski config 2005-06-01 15:20:17 -07:00
minstate.h [IA64] Fix stack placement when INIT hits in kernel mode. 2005-05-06 10:16:07 -07:00
module.c [IA64] Module gp must point to valid memory 2005-06-08 11:41:31 -07:00
pal.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
palinfo.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
patch.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
perfmon_default_smpl.c [IA64] perfmon: make pfm_sysctl a global, and other cleanup 2005-04-25 13:08:30 -07:00
perfmon_generic.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
perfmon_itanium.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
perfmon_mckinley.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
perfmon.c [IA64] Use "PER_CPU" form of EXPORT macro 2005-05-31 10:38:32 -07:00
process.c [IA64] Fix two warnings introduced by perfmon patches. 2005-05-03 16:21:45 -07:00
ptrace.c [IA64] ptrace and restore_sigcontext() allow ar.rsc.pl==0 2005-06-21 16:19:20 -07:00
sal.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
salinfo.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
semaphore.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
setup.c [IA64] Update comment to describe modes set in default control register. 2005-06-08 12:12:48 -07:00
sigframe.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
signal.c [IA64] ptrace and restore_sigcontext() allow ar.rsc.pl==0 2005-06-21 16:19:20 -07:00
smp.c [IA64] printk needs KERN_INFO arch/ia64/kernel/smp.c 2005-06-21 14:21:17 -07:00
smpboot.c [PATCH] i386 CPU hotplug 2005-06-25 16:24:29 -07:00
sys_ia64.c [IA64] sys_mmap doesn't follow posix.1 when parameter len=0 2005-05-26 10:19:07 -07:00
time.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
topology.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
traps.c [PATCH] Kprobes/IA64: kdebug die notification mechanism 2005-06-23 09:45:22 -07:00
unaligned.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
uncached.c [PATCH] ia64 uncached alloc 2005-06-21 18:46:18 -07:00
unwind_decoder.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
unwind_i.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
unwind.c [IA64] Tighten up unw_unwind_to_user check 2005-04-25 11:45:26 -07:00
vmlinux.lds.S Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00