aboutsummaryrefslogtreecommitdiff
path: root/arch
AgeCommit message (Collapse)AuthorFilesLines
2006-10-09[PATCH] more ia64 irq handlersAl Viro2-4/+4
Cast to (void *) in request_irq() argument is stupid and only hides problems... Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-09[PATCH] fallout from alpha pt_regs patchesAl Viro2-2/+2
missed irq handler in sys_titan and forgotten prototype update. Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-09[PATCH] sparc64 irq pt_regs falloutAl Viro2-5/+9
Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-09IRQ: Use the new typedef for interrupt handler function pointersDavid Howells39-61/+61
Use the new typedef for interrupt handler function pointers rather than actually spelling out the full thing each time. This was scripted with the following small shell script: #!/bin/sh egrep -nHrl -e 'irqreturn_t[ ]*[(][*]' $* | while read i do echo $i perl -pi -e 's/irqreturn_t\s*[(]\s*[*]\s*([_a-zA-Z0-9]*)\s*[)]\s*[(]\s*int\s*,\s*void\s*[*]\s*[)]/irq_handler_t \1/g' $i || exit $? done Signed-Off-By: David Howells <[email protected]>
2006-10-08[PATCH] m68k/kernel/dma.c assumes !MMU_SUN3Al Viro1-1/+2
Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-08[PATCH] arm: it's OK to pass pointer to volatile as iounmap() argument...Al Viro1-3/+3
Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-08Merge branch 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linusLinus Torvalds36-49/+1449
* 'upstream' of git://ftp.linux-mips.org/pub/scm/upstream-linus: [MIPS] Cleanup unnecessary <asm/ptrace.h> inclusions. [MIPS] DEC: pt_regs fixes for buserror handlers [MIPS] Fix return type of gt64120_irq. [MIPS] Ocelot C: Build fix - ll_mv64340_irq takes no more regs argument. [MIPS] Jazz defconfig file. [MIPS] Jazz: build fix - include <linux/screen_info.h> [MIPS] Jazz: Remove warning. After 7 years probably somebody test this ;) [MIPS] Jazz: Fix I/O port resources. [MIPS] DEC: pt_regs fixes for dec_intr_halt. handle_sysrq lost its pt_regs * argument Manual conflict resolved in arch/um/drivers/mconsole_kern.c
2006-10-08[PATCH] uml pt_regs fixesAl Viro10-25/+24
Real fix for UML pt_regs stuff. Note set_irq_regs() logics in there... Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-09[MIPS] Cleanup unnecessary <asm/ptrace.h> inclusions.Ralf Baechle29-33/+6
Signed-off-by: Ralf Baechle <[email protected]>
2006-10-09[MIPS] DEC: pt_regs fixes for buserror handlersRalf Baechle3-5/+10
Signed-off-by: Ralf Baechle <[email protected]>
2006-10-09[MIPS] Fix return type of gt64120_irq.Ralf Baechle1-1/+3
Signed-off-by: Ralf Baechle <[email protected]>
2006-10-09[MIPS] Ocelot C: Build fix - ll_mv64340_irq takes no more regs argument.Ralf Baechle1-1/+1
Signed-off-by: Ralf Baechle <[email protected]>
2006-10-09[MIPS] Jazz defconfig file.Ralf Baechle1-0/+1404
Signed-off-by: Ralf Baechle <[email protected]>
2006-10-09[MIPS] Jazz: build fix - include <linux/screen_info.h>Ralf Baechle1-0/+1
Signed-off-by: Ralf Baechle <[email protected]>
2006-10-09[MIPS] Jazz: Remove warning. After 7 years probably somebody test this ;)Ralf Baechle1-2/+0
Signed-off-by: Ralf Baechle <[email protected]>
2006-10-09[MIPS] Jazz: Fix I/O port resources.Ralf Baechle1-4/+21
struct resource members were shuffeled a while ago. Signed-off-by: Ralf Baechle <[email protected]>
2006-10-09[MIPS] DEC: pt_regs fixes for dec_intr_halt.Ralf Baechle2-2/+2
Signed-off-by: Ralf Baechle <[email protected]>
2006-10-09handle_sysrq lost its pt_regs * argumentRalf Baechle2-2/+2
Signed-off-by: Ralf Baechle <[email protected]>
2006-10-08Revert "[POWERPC] Don't get PCI IRQ from OF for devices with no IRQ"Linus Torvalds1-11/+6
This reverts commit 41550c5128150175197257b6ceab2cd50dea7b51. Quoth Ben Herrenschmidt: "Please revert this one for now. It seems to break G5s :( Looks like PCI cells inside Apple IO ASICs don't have a PCI_INTERRUPT_LINE set. I need to figure out a better fix." Signed-off-by: Linus Torvalds <[email protected]>
2006-10-08[PATCH] missed ia64 pt_regs fixesAl Viro3-12/+9
Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-08[PATCH] alpha pt_regs cleanups: collapse set_irq_regs() in titan_dispatch_irqs()Al Viro3-7/+4
titan_dispatch_irqs() always gets get_irq_regs() as argument; kill the argument and collapse set_irq_regs() in body. Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-08[PATCH] alpha pt_regs cleanups: machine_check()Al Viro19-69/+60
do set_irq_regs() in caller, kill pt_regs argument. Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-08[PATCH] alpha pt_regs cleanups: handle_irq()Al Viro22-41/+40
isa_no_iack_sc_device_interrupt() always gets get_irq_regs() as argument; kill that argument. All but two callers of handle_irq() pass get_irq_regs() as argument; convert the remaining two, kill set_irq_regs() inside handle_irq(). Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-08[PATCH] alpha pt_regs cleanups: device_interruptAl Viro21-76/+82
callers of ->device_interrupt() do set_irq_regs() now; pt_regs argument removed, remaining uses of regs in instances of ->device_interrupt() are switched to get_irq_regs() and will be gone in the next patch. Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-08[PATCH] m68k pt_regs fixes, part 2Al Viro1-1/+1
Fallout from previous patch: - actually add include/asm-m68k/irq_regs.h - missed the prototype of sun3_sched_init() NB: git diff without argumentgs sucks when you've added some files... Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-08[PATCH] sparc32 rwlock fixAl Viro2-1/+23
read_trylock() is broken on sparc32 (doesn't build and didn't work right, actually). Proposed fix: - make "writer holds lock" distinguishable from "reader tries to grab lock" - have __raw_read_trylock() try to acquire the mutex (in LSB of lock), terminating spin if we see that there's writer holding it. Then do the rest as we do in read_lock(). Thanks to Ingo for discussion... Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-08[PATCH] sparc64 pt_regs fixesAl Viro8-17/+24
Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-08[PATCH] sparc32 pt_regs fixesAl Viro9-22/+43
Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-08Merge branch 'irq-fixes' of git://git.parisc-linux.org/git/linux-2.6Linus Torvalds5-129/+177
* 'irq-fixes' of git://git.parisc-linux.org/git/linux-2.6: [PARISC] More pt_regs removal [PARISC] pdc_init no longer exists [PARISC] Make firmware calls irqsafe-ish... [PA-RISC] Fix boot breakage [PARISC] Use set_irq_regs
2006-10-08[PATCH] x86_64 irq: Allocate a vector across all cpus for genapic_flat.Eric W. Biederman3-48/+115
The problem we can't take advantage of lowest priority delivery mode if the vectors are allocated for only one cpu at a time. Nor can we work around hardware that assumes lowest priority delivery mode is always used with several cpus. So this patch introduces the concept of a vector_allocation_domain. A set of cpus that will receive an irq on the same vector. Currently the code for implementing this is placed in the genapic structure so we can vary this depending on how we are using the io_apics. This allows us to restore the previous behaviour of genapic_flat without removing the benefits of having separate vector allocation for large machines. This should also fix the problem report where a hyperthreaded cpu was receving the irq on the wrong hyperthread when in logical delivery mode because the previous behaviour is restored. This patch properly records our allocation of the first 16 irqs to the first 16 available vectors on all cpus. This should be fine but it may run into problems with multiple interrupts at the same interrupt level. Except for some badly maintained comments in the code and the behaviour of the interrupt allocator I have no real understanding of that problem. Signed-off-by: Eric W. Biederman <[email protected]> Acked-by: Muli Ben-Yehuda <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-08[PATCH] i386/x86_64: Remove global IO_APIC_VECTOREric W. Biederman2-10/+10
Which vector an irq is assigned to now varies dynamically and is not needed outside of io_apic.c. So remove the possibility of accessing the information outside of io_apic.c and remove the silly macro that makes looking for users of irq_vector difficult. The fact this compiles ensures there aren't any more pieces of the old CONFIG_PCI_MSI weirdness that I failed to remove. Signed-off-by: Eric W. Biederman <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-08[PATCH] i386/x86_64: FIX pci_enable_irq to set dev->irq to the irq numberEric W. Biederman1-4/+0
In commit ace80ab796ae30d2c9ee8a84ab6f608a61f8b87b I removed the weird logic that used the vector number as the irq number when MSI was defined. However pci_enable_irq was using a different test in the io_apic_assign_irqs path and I missed it :( This patch removes the wrong code so no one hits this problem. This code is only active when a specific set of boot command line parameters is specified which likely explains why no one has notices this earlier. Signed-off-by: Eric W. Biederman <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-08[MIPS] Complete fixes after removal of pt_regs argument to int handlers.Ralf Baechle71-610/+529
Signed-off-by: Ralf Baechle <[email protected]>
2006-10-08[MIPS] Show actual CPU information in /proc/cpuinfoKarl-Johan Karlsson1-5/+5
Currently, /proc/cpuinfo contains several copies of the information for whatever processor we happen to be scheduled on. This patch makes it contain the proper information for each CPU, which is particularly useful on mixed R12k/R10k IP27 machines. Signed-off-by: Karl-Johan Karlsson <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2006-10-08[MIPS] Cobalt: Time runs too quicklyScott Ashcroft1-2/+2
A kernel built with HZ==250 runs about 4 four times too quickly on a Cobalt RaQ2. Signed-off-by: Scott Ashcroft <[email protected]> Signed-off-by: Ralf Baechle <[email protected]>
2006-10-08[MIPS] Update Malta config.Ralf Baechle2-33/+85
Signed-off-by: Ralf Baechle <[email protected]>
2006-10-07Merge branch 'merge' of ↵Linus Torvalds46-134/+433
git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc * 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/paulus/powerpc: [POWERPC] PReP fixup after irq changes [POWERPC] SPU fixup after irq changes [POWERPC] Fix up after irq changes [POWERPC] Fix iseries/smp.c for irq breakage [POWERPC] Fix viocons for irq breakage [POWERPC] Update iseries_defconfig [POWERPC] Fix fsl_soc build breaks [POWERPC] Minor fix for bootargs property [POWERPC] Update MTFSF_L() comment [POWERPC] Update pSeries defconfig for SATA [POWERPC] Don't get PCI IRQ from OF for devices with no IRQ [POWERPC] Fix zImage decompress location [POWERPC] linux,tce-size property is 32 bits [POWERPC] Add DTS for MPC8349E-mITX board [POWERPC] Fix harmless typo [PPC] Fix some irq breakage with ARCH=ppc
2006-10-07[PATCH] m32r pt_regs fixesAl Viro3-11/+17
... and now with irq_regs.h not forgotten... Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-07[PATCH] minimal alpha pt_regs fixesAl Viro4-6/+13
Signed-off-by: Al Viro <[email protected]> Acked-by: Jeff Garzik <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-07[PATCH] m68k pt_regs fixesAl Viro30-138/+148
m68k_handle_int() split in two functions: __m68k_handle_int() takes pt_regs * and does set_irq_regs(); m68k_handle_int() doesn't get pt_regs *. Places where we used to call m68k_handle_int() recursively with the same pt_regs have simply lost the second argument, the rest is switched to __m68k_handle_int(). The rest of patch is just dropping pt_regs * where needed. Signed-off-by: Al Viro <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
2006-10-07[POWERPC] PReP fixup after irq changesOlaf Hering1-7/+7
Compile fixes for PReP in ARCH=ppc. Signed-off-by: Olaf Hering <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
2006-10-07[POWERPC] SPU fixup after irq changesOlaf Hering1-3/+3
Remove struct pt_regs * from remaining spu irq functions. Signed-off-by: Olaf Hering <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
2006-10-07[POWERPC] Fix up after irq changesOlaf Hering32-81/+73
Remove struct pt_regs * from all handlers. Also remove the regs argument from get_irq() functions. Compile tested with arch/powerpc/config/* and arch/ppc/configs/prep_defconfig Signed-off-by: Olaf Hering <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
2006-10-07[PARISC] More pt_regs removalMatthew Wilcox2-27/+12
Remove pt_regs from ipi_interrupt and timer_interrupt. Inline smp_do_timer() into its only caller, and unify the SMP and non-SMP paths. Fixes a profiling bug. Signed-off-by: Matthew Wilcox <[email protected]>
2006-10-07[PARISC] Make firmware calls irqsafe-ish...Kyle McMartin2-99/+159
There's no reason why we shouldn't be using _irqsave instead of _irq for any of these calls. fwiw, this fixes the "start_kernel(): bug: interrupts were enabled early" message displayed on bootup recently. Signed-off-by: Kyle McMartin <[email protected]> Signed-off-by: Matthew Wilcox <[email protected]>
2006-10-07[PA-RISC] Fix boot breakageMatthew Wilcox1-3/+3
Conditionals were the wrong way around. Turns out I was booting the wrong kernel when testing the original fix. Signed-off-by: Matthew Wilcox <[email protected]>
2006-10-07[PARISC] Use set_irq_regsMatthew Wilcox1-0/+3
Actually set the irq_regs pointer. Signed-off-by: Matthew Wilcox <[email protected]>
2006-10-06Merge branch 'irq-fixes' of git://git.parisc-linux.org/git/linux-2.6Linus Torvalds2-4/+4
* 'irq-fixes' of git://git.parisc-linux.org/git/linux-2.6: Build fixes for struct pt_regs removal
2006-10-06Build fixes for struct pt_regs removalMatthew Wilcox2-4/+4
Signed-off-by: Matthew Wilcox <[email protected]>
2006-10-07[POWERPC] Fix iseries/smp.c for irq breakageStephen Rothwell3-7/+12
Signed-off-by: Stephen Rothwell <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>