linux/arch
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
..
alpha [PATCH] fixing includes in alpha_ksyms.c 2006-10-12 12:25:27 -07:00
arm [PATCH] remove bogus arch-specific syscall exports 2006-10-11 11:17:07 -07:00
arm26 [PATCH] remove bogus arch-specific syscall exports 2006-10-11 11:17:07 -07:00
avr32 [PATCH] IRQ: Fix AVR32 breakage 2006-10-11 11:14:14 -07:00
cris more misc typo fixes 2006-10-03 22:34:14 +02:00
frv IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
h8300 Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
i386 Pull sci into test branch 2006-10-14 02:27:52 -04:00
ia64 [PATCH] mm: use symbolic names instead of indices for zone initialisation 2006-10-11 11:14:14 -07:00
m32r [PATCH] m32r: more __user annotations 2006-10-11 11:17:06 -07:00
m68k [PATCH] clean m68k ksyms 2006-10-11 11:17:06 -07:00
m68knommu [PATCH] m68knommu: sync syscalls with m68k 2006-10-13 08:35:39 -07:00
mips [MIPS] Pass NULL not 0 for pointer value. 2006-10-11 19:31:00 +01:00
parisc [PATCH] remove bogus arch-specific syscall exports 2006-10-11 11:17:07 -07:00
powerpc [POWERPC] Lazy interrupt disabling for 64-bit machines 2006-10-16 16:31:36 +10:00
ppc [POWERPC] ppc: Add missing calls to set_irq_regs 2006-10-16 15:52:14 +10:00
s390 Merge branch 'for-linus' of git://git390.osdl.marist.edu/pub/scm/linux-2.6 2006-10-11 11:20:11 -07:00
sh sh: SH-4A UBC support 2006-10-12 12:16:13 +09:00
sh64 fix file specification in comments 2006-10-03 23:01:26 +02:00
sparc [SPARC32]: Fix sparc32 modpost warnings. 2006-10-11 23:56:54 -07:00
sparc64 [SPARC32]: Fix sparc32 modpost warnings with sunzilog 2006-10-11 23:56:53 -07:00
um [PATCH] make UML compile (FC6/x86-64) 2006-10-15 14:18:39 -07:00
v850 Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
x86_64 ACPI: Processor native C-states using MWAIT 2006-10-14 00:35:39 -04:00
xtensa fix file specification in comments 2006-10-03 23:01:26 +02:00