android_kernel_xiaomi_sm8350/arch/powerpc/kernel
Paul Mackerras d04c56f73c [POWERPC] Lazy interrupt disabling for 64-bit machines
This implements a lazy strategy for disabling interrupts.  This means
that local_irq_disable() et al. just clear the 'interrupts are
enabled' flag in the paca.  If an interrupt comes along, the interrupt
entry code notices that interrupts are supposed to be disabled, and
clears the EE bit in SRR1, clears the 'interrupts are hard-enabled'
flag in the paca, and returns.  This means that interrupts only
actually get disabled in the processor when an interrupt comes along.

When interrupts are enabled by local_irq_enable() et al., the code
sets the interrupts-enabled flag in the paca, and then checks whether
interrupts got hard-disabled.  If so, it also sets the EE bit in the
MSR to hard-enable the interrupts.

This has the potential to improve performance, and also makes it
easier to make a kernel that can boot on iSeries and on other 64-bit
machines, since this lazy-disable strategy is very similar to the
soft-disable strategy that iSeries already uses.

This version renames paca->proc_enabled to paca->soft_enabled, and
changes a couple of soft-disables in the kexec code to hard-disables,
which should fix the crash that Michael Ellerman saw.  This doesn't
yet use a reserved CR field for the soft_enabled and hard_enabled
flags.  This applies on top of Stephen Rothwell's patches to make it
possible to build a combined iSeries/other kernel.

Signed-off-by: Paul Mackerras <paulus@samba.org>
2006-10-16 16:31:36 +10:00
..
vdso32
vdso64
align.c
asm-offsets.c [POWERPC] Lazy interrupt disabling for 64-bit machines 2006-10-16 16:31:36 +10:00
audit.c [PATCH] audit: AUDIT_PERM support 2006-09-11 13:32:30 -04:00
binfmt_elf32.c
btext.c
compat_audit.c [PATCH] audit: AUDIT_PERM support 2006-09-11 13:32:30 -04:00
cpu_setup_6xx.S
cpu_setup_ppc970.S Merge branch 'merge' 2006-08-25 14:56:07 +10:00
cputable.c [POWERPC] POWER6 has 6 PMCs 2006-10-16 15:53:30 +10:00
crash_dump.c
crash.c [POWERPC] Lazy interrupt disabling for 64-bit machines 2006-10-16 16:31:36 +10:00
dma_64.c
entry_32.S
entry_64.S [POWERPC] Lazy interrupt disabling for 64-bit machines 2006-10-16 16:31:36 +10:00
firmware.c
fpu.S [POWERPC] Restore copyright notice in arch/powerpc/kernel/fpu.S 2006-08-30 14:45:35 +10:00
head_4xx.S
head_8xx.S
head_32.S
head_44x.S
head_64.S [POWERPC] Lazy interrupt disabling for 64-bit machines 2006-10-16 16:31:36 +10:00
head_booke.h
head_fsl_booke.S
ibmebus.c IRQ: Use the new typedef for interrupt handler function pointers 2006-10-09 12:19:47 +01:00
idle_6xx.S
idle_power4.S [POWERPC] Lazy interrupt disabling for 64-bit machines 2006-10-16 16:31:36 +10:00
idle.c
init_task.c [PATCH] nsproxy: move init_nsproxy into kernel/nsproxy.c 2006-10-02 07:57:20 -07:00
io.c [POWERPC] Merge iSeries i/o operations with the rest 2006-09-22 15:19:58 +10:00
iomap.c
iommu.c [POWERPC] Fix harmless typo 2006-10-06 21:10:40 +10:00
irq.c [POWERPC] Lazy interrupt disabling for 64-bit machines 2006-10-16 16:31:36 +10:00
kprobes.c [PATCH] kretprobe spinlock deadlock patch 2006-10-02 07:57:16 -07:00
l2cr_6xx.S
legacy_serial.c Merge branch 'merge' 2006-08-25 14:56:07 +10:00
lparcfg.c
lparmap.c
machine_kexec_32.c
machine_kexec_64.c Merge branch 'merge' 2006-08-25 14:56:07 +10:00
machine_kexec.c
Makefile [POWERPC] convert string i/o operations to C 2006-09-20 14:06:18 +10:00
misc_32.S [PATCH] rename the provided execve functions to kernel_execve 2006-10-02 07:57:23 -07:00
misc_64.S IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
misc.S [POWERPC] convert string i/o operations to C 2006-09-20 14:06:18 +10:00
module_32.c
module_64.c
nvram_64.c
of_device.c
paca.c
pci_32.c [POWERPC] Fix IO Window Updates on P2P bridges. 2006-10-16 15:53:30 +10:00
pci_64.c [POWERPC] Check for offline nodes in pci NUMA code 2006-10-16 15:53:30 +10:00
pci_direct_iommu.c
pci_dn.c
pci_iommu.c
perfmon_fsl_booke.c fix file specification in comments 2006-10-03 23:01:26 +02:00
pmc.c
ppc32.h
ppc_ksyms.c [POWERPC] Lazy interrupt disabling for 64-bit machines 2006-10-16 16:31:36 +10:00
proc_ppc64.c
process.c [POWERPC] Better check in show_instructions 2006-10-16 15:53:30 +10:00
prom_init.c Merge branch 'merge' 2006-08-31 15:45:48 +10:00
prom_parse.c Revert "[POWERPC] Don't get PCI IRQ from OF for devices with no IRQ" 2006-10-08 15:38:22 -07:00
prom.c [POWERPC] Minor fix for bootargs property 2006-10-06 21:10:41 +10:00
ptrace32.c
ptrace-common.h
ptrace.c [POWERPC] Fix PPC32 SECCOMP, unexport do_syscall_trace_{enter,leave} 2006-09-26 15:24:34 +10:00
rtas_flash.c
rtas_pci.c [POWERPC] Add a helper for calculating RTAS "config_addr" parameters 2006-08-25 13:27:35 +10:00
rtas-proc.c
rtas-rtc.c
rtas.c [POWERPC] reboot when panic_timout is set 2006-08-25 13:30:26 +10:00
semaphore.c
setup_32.c [POWERPC] Fix xmon=off and cleanup xmon initialisation 2006-10-04 14:52:22 +10:00
setup_64.c [POWERPC] Lazy interrupt disabling for 64-bit machines 2006-10-16 16:31:36 +10:00
setup-common.c [POWERPC] Fix xmon=off and cleanup xmon initialisation 2006-10-04 14:52:22 +10:00
setup.h
signal_32.c
signal_64.c
smp-tbsync.c [POWERPC] Fix irq enable/disable in smp_generic_take_timebase 2006-08-30 16:10:47 +10:00
smp.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
swsusp_32.S [PATCH] Change the name of pagedir_nosave 2006-09-26 08:49:01 -07:00
sys_ppc32.c [PATCH] VFS: Make filldir_t and struct kstat deal in 64-bit inode numbers 2006-10-03 08:03:40 -07:00
syscalls.c [PATCH] namespaces: utsname: switch to using uts namespaces 2006-10-02 07:57:21 -07:00
sysfs.c [POWERPC] Always call cede in pseries dedicated idle loop 2006-09-26 15:24:34 +10:00
systbl.S
tau_6xx.c
time.c [POWERPC] Fix up after irq changes 2006-10-07 22:08:26 +10:00
traps.c [POWERPC] Never panic when taking altivec exceptions from userspace 2006-10-16 15:53:30 +10:00
udbg_16550.c
udbg.c
vdso.c
vecemu.c
vector.S
vio.c
vmlinux.lds.S [POWERPC] implement BEGIN/END_FW_FTR_SECTION 2006-10-03 16:50:21 +10:00