Skip to contentSkip to conversation

tip related: radix tree for spareseirq and logical flat clean up

PATCH In review Yinghai Lu 6 participants 43 messages Feb 13, 2010 – Mar 3, 2010 2 messages not in the archive Page 1 of 2

Subsystems (51)
lore
Share & tools
lore
author
#5 lore raw

PATCH 5/8 x86: remove arch_probe_nr_irqs

In reply to Yinghai Lu

so keep nr_irqs == NR_IRQS

---
 arch/x86/kernel/apic/io_apic.c |   22 ----------------------
 1 files changed, 0 insertions(+), 22 deletions(-)
arch/x86/kernel/apic/io_apic.c +0 -22
index bd93444..1c68189 100644
@@ -3878,28 +3878,6 @@ void __init probe_nr_irqs_gsi(void)
 	printk(KERN_DEBUG "nr_irqs_gsi: %d\n", nr_irqs_gsi);
 }
 
-#ifdef CONFIG_SPARSE_IRQ
-int __init arch_probe_nr_irqs(void)
-{
-	int nr;
-
-	if (nr_irqs > (NR_VECTORS * nr_cpu_ids))
-		nr_irqs = NR_VECTORS * nr_cpu_ids;
-
-	nr = nr_irqs_gsi + 8 * nr_cpu_ids;
-#if defined(CONFIG_PCI_MSI) || defined(CONFIG_HT_IRQ)
-	/*
-	 * for MSI and HT dyn irq
-	 */
-	nr += nr_irqs_gsi * 64;
-#endif
-	if (nr < nr_irqs)
-		nr_irqs = nr;
-
-	return 0;
-}
-#endif
-
 static int __io_apic_set_pci_routing(struct device *dev, int irq,
 				struct io_apic_irq_attr *irq_attr)
 {
Signature · 1 line
1.6.4.2
author
#1 lore raw

PATCH 1/8 irq: remove not need bootmem code

In reply to Yinghai Lu

mem_init is moved early already.

---
 kernel/irq/handle.c |   14 +++-----------
 1 files changed, 3 insertions(+), 11 deletions(-)
kernel/irq/handle.c +3 -11
index 814940e..0e823c0 100644
@@ -19,7 +19,6 @@
 #include <linux/kernel_stat.h>
 #include <linux/rculist.h>
 #include <linux/hash.h>
-#include <linux/bootmem.h>
 #include <trace/events/irq.h>
 
 #include "internals.h"
@@ -87,12 +86,8 @@ void __ref init_kstat_irqs(struct irq_desc *desc, int node, int nr)
 {
 	void *ptr;
 
-	if (slab_is_available())
-		ptr = kzalloc_node(nr * sizeof(*desc->kstat_irqs),
-				   GFP_ATOMIC, node);
-	else
-		ptr = alloc_bootmem_node(NODE_DATA(node),
-				nr * sizeof(*desc->kstat_irqs));
+	ptr = kzalloc_node(nr * sizeof(*desc->kstat_irqs),
+			   GFP_ATOMIC, node);
 
 	/*
 	 * don't overwite if can not get new one
@@ -219,10 +214,7 @@ struct irq_desc * __ref irq_to_desc_alloc_node(unsigned int irq, int node)
 	if (desc)
 		goto out_unlock;
 
-	if (slab_is_available())
-		desc = kzalloc_node(sizeof(*desc), GFP_ATOMIC, node);
-	else
-		desc = alloc_bootmem_node(NODE_DATA(node), sizeof(*desc));
+	desc = kzalloc_node(sizeof(*desc), GFP_ATOMIC, node);
 
 	printk(KERN_DEBUG "  alloc irq_desc for %d on node %d\n", irq, node);
 	if (!desc) {
Signature · 1 line
1.6.4.2
author
#6 lore raw

PATCH 6/8 use nr_cpus= to set nr_cpu_ids early

In reply to Yinghai Lu

on x86, before prefill_possible_map(), nr_cpu_ids will be NR_CPUS aka CONFIG_NR_CPUS

add nr_cpus= to set nr_cpu_ids. so we can simulate cpus <=8 are installed on normal config.

-v2: accordging to Christoph, acpi_numa_init should use nr_cpu_ids in stead of
NR_CPUS.
-v3: add doc in kernel-parameters.txt according to Andrew.

---
 Documentation/kernel-parameters.txt |    6 ++++++
 arch/ia64/kernel/acpi.c             |    4 ++--
 arch/x86/kernel/smpboot.c           |    7 ++++---
 drivers/acpi/numa.c                 |    4 ++--
 init/main.c                         |   14 ++++++++++++++
 5 files changed, 28 insertions(+), 7 deletions(-)
Documentation/kernel-parameters.txt +6 -0
index 5bf45c0..e5c507a 100644
@@ -1775,6 +1775,12 @@ and is between 256 and 4096 characters. It is defined in the file
 			purges which is reported from either PAL_VM_SUMMARY or
 			SAL PALO.
 
+	nr_cpus=	[SMP] Maximum number of processors that	an SMP kernel
+			could support.  nr_cpus=n : n >= 1 limits the kernel to
+			supporting 'n' processors. Later in runtime you can not
+			use hotplug cpu feature to put more cpu back to online.
+			just like you compile the kernel NR_CPUS=n
+
 	nr_uarts=	[SERIAL] maximum number of UARTs to be registered.
 
 	numa_zonelist_order= [KNL, BOOT] Select zonelist order for NUMA.
arch/ia64/kernel/acpi.c +2 -2
index 40574ae..605a08b 100644
@@ -881,8 +881,8 @@ __init void prefill_possible_map(void)
 
 	possible = available_cpus + additional_cpus;
 
-	if (possible > NR_CPUS)
-		possible = NR_CPUS;
+	if (possible > nr_cpu_ids)
+		possible = nr_cpu_ids;
 
 	printk(KERN_INFO "SMP: Allowing %d CPUs, %d hotplug CPUs\n",
 		possible, max((possible - available_cpus), 0));
arch/x86/kernel/smpboot.c +4 -3
index c08829a..da99eef 100644
@@ -1215,11 +1215,12 @@ __init void prefill_possible_map(void)
 
 	total_cpus = max_t(int, possible, num_processors + disabled_cpus);
 
-	if (possible > CONFIG_NR_CPUS) {
+	/* nr_cpu_ids could be reduced via nr_cpus= */
+	if (possible > nr_cpu_ids) {
 		printk(KERN_WARNING
 			"%d Processors exceeds NR_CPUS limit of %d\n",
-			possible, CONFIG_NR_CPUS);
-		possible = CONFIG_NR_CPUS;
+			possible, nr_cpu_ids);
+		possible = nr_cpu_ids;
 	}
 
 	printk(KERN_INFO "SMP: Allowing %d CPUs, %d hotplug CPUs\n",
drivers/acpi/numa.c +2 -2
index 7ad48df..b872546 100644
@@ -279,9 +279,9 @@ int __init acpi_numa_init(void)
 	/* SRAT: Static Resource Affinity Table */
 	if (!acpi_table_parse(ACPI_SIG_SRAT, acpi_parse_srat)) {
 		acpi_table_parse_srat(ACPI_SRAT_TYPE_X2APIC_CPU_AFFINITY,
-				      acpi_parse_x2apic_affinity, NR_CPUS);
+				     acpi_parse_x2apic_affinity, nr_cpu_ids);
 		acpi_table_parse_srat(ACPI_SRAT_TYPE_CPU_AFFINITY,
-				      acpi_parse_processor_affinity, NR_CPUS);
+				     acpi_parse_processor_affinity, nr_cpu_ids);
 		ret = acpi_table_parse_srat(ACPI_SRAT_TYPE_MEMORY_AFFINITY,
 					    acpi_parse_memory_affinity,
 					    NR_NODE_MEMBLKS);
init/main.c +14 -0
index 8451878..05b5283 100644
@@ -149,6 +149,20 @@ static int __init nosmp(char *str)
 
 early_param("nosmp", nosmp);
 
+/* this is hard limit */
+static int __init nrcpus(char *str)
+{
+	int nr_cpus;
+
+	get_option(&str, &nr_cpus);
+	if (nr_cpus > 0 && nr_cpus < nr_cpu_ids)
+		nr_cpu_ids = nr_cpus;
+
+	return 0;
+}
+
+early_param("nr_cpus", nrcpus);
+
 static int __init maxcpus(char *str)
 {
 	get_option(&str, &setup_max_cpus);
Signature · 1 line
1.6.4.2
author
#2 lore raw

PATCH 2/8 radix: move radix init early

In reply to Yinghai Lu

prepare to use it in early_irq_init()

---
 init/main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
init/main.c +1 -1
index 4cb47a1..8451878 100644
@@ -584,6 +584,7 @@ asmlinkage void __init start_kernel(void)
 		local_irq_disable();
 	}
 	rcu_init();
+	radix_tree_init();
 	/* init some links before init_ISA_irqs() */
 	early_irq_init();
 	init_IRQ();
@@ -657,7 +658,6 @@ asmlinkage void __init start_kernel(void)
 	proc_caches_init();
 	buffer_init();
 	key_init();
-	radix_tree_init();
 	security_init();
 	vfs_caches_init(totalram_pages);
 	signals_init();
Signature · 1 line
1.6.4.2

Yinghai Lu

author
#0 lore raw

cover tip related: radix tree for spareseirq and logical flat clean up

---------spareirq radix tree related ---------------- 94007e8: irq: remove not need bootmem code 4b0d3fa: radix: move radix init early
56af1a9: sparseirq: change irq_desc_ptrs to static
b236235: sparseirq: use radix_tree instead of ptrs array 5918787: x86: remove arch_probe_nr_irqs

so could reduce nr_irqs limitation for bunch ixgbe...

---------------x86 logical flat related -----------
f5954c4: use nr_cpus= to set nr_cpu_ids early
7b8d6a9: x86: use num_processors for possible cpus
d79d1de: x86: make 32bit apic flat to physflat switch like 64bit

Thanks

Yinghai

author
#4 lore raw

PATCH 4/8 sparseirq: use radix_tree instead of ptrs array

use radix_tree irq_desc_tree instead of irq_desc_ptrs.

-v2: according to Eric and cyrill to use radix_tree_lookup_slot and radix_tree_replace_slot

---
 kernel/irq/handle.c |   49 +++++++++++++++++++++++++------------------------
 1 files changed, 25 insertions(+), 24 deletions(-)
kernel/irq/handle.c +25 -24
index 266f798..76d5a67 100644
@@ -19,6 +19,7 @@
 #include <linux/kernel_stat.h>
 #include <linux/rculist.h>
 #include <linux/hash.h>
+#include <linux/radix-tree.h>
 #include <trace/events/irq.h>
 
 #include "internals.h"
@@ -127,7 +128,26 @@ static void init_one_irq_desc(int irq, struct irq_desc *desc, int node)
  */
 DEFINE_RAW_SPINLOCK(sparse_irq_lock);
 
-static struct irq_desc **irq_desc_ptrs __read_mostly;
+static RADIX_TREE(irq_desc_tree, GFP_ATOMIC);
+
+static void set_irq_desc(unsigned int irq, struct irq_desc *desc)
+{
+	radix_tree_insert(&irq_desc_tree, irq, desc);
+}
+
+struct irq_desc *irq_to_desc(unsigned int irq)
+{
+	return radix_tree_lookup(&irq_desc_tree, irq);
+}
+
+void replace_irq_desc(unsigned int irq, struct irq_desc *desc)
+{
+	void **ptr;
+
+	ptr = radix_tree_lookup_slot(&irq_desc_tree, irq);
+	if (ptr)
+		radix_tree_replace_slot(ptr, desc);
+}
 
 static struct irq_desc irq_desc_legacy[NR_IRQS_LEGACY] __cacheline_aligned_in_smp = {
 	[0 ... NR_IRQS_LEGACY-1] = {
@@ -159,9 +179,6 @@ int __init early_irq_init(void)
 	legacy_count = ARRAY_SIZE(irq_desc_legacy);
 	node = first_online_node;
 
-	/* allocate irq_desc_ptrs array based on nr_irqs */
-	irq_desc_ptrs = kcalloc(nr_irqs, sizeof(void *), GFP_NOWAIT);
-
 	/* allocate based on nr_cpu_ids */
 	kstat_irqs_legacy = kzalloc_node(NR_IRQS_LEGACY * nr_cpu_ids *
 					  sizeof(int), GFP_NOWAIT, node);
@@ -175,28 +192,12 @@ int __init early_irq_init(void)
 		lockdep_set_class(&desc[i].lock, &irq_desc_lock_class);
 		alloc_desc_masks(&desc[i], node, true);
 		init_desc_masks(&desc[i]);
-		irq_desc_ptrs[i] = desc + i;
+		set_irq_desc(i, &desc[i]);
 	}
 
-	for (i = legacy_count; i < nr_irqs; i++)
-		irq_desc_ptrs[i] = NULL;
-
 	return arch_early_irq_init();
 }
 
-struct irq_desc *irq_to_desc(unsigned int irq)
-{
-	if (irq_desc_ptrs && irq < nr_irqs)
-		return irq_desc_ptrs[irq];
-
-	return NULL;
-}
-
-void replace_irq_desc(unsigned int irq, struct irq_desc *desc)
-{
-	irq_desc_ptrs[irq] = desc;
-}
-
 struct irq_desc * __ref irq_to_desc_alloc_node(unsigned int irq, int node)
 {
 	struct irq_desc *desc;
@@ -208,14 +209,14 @@ struct irq_desc * __ref irq_to_desc_alloc_node(unsigned int irq, int node)
 		return NULL;
 	}
 
-	desc = irq_desc_ptrs[irq];
+	desc = irq_to_desc(irq);
 	if (desc)
 		return desc;
 
 	raw_spin_lock_irqsave(&sparse_irq_lock, flags);
 
 	/* We have to check it to avoid races with another CPU */
-	desc = irq_desc_ptrs[irq];
+	desc = irq_to_desc(irq);
 	if (desc)
 		goto out_unlock;
 
@@ -228,7 +229,7 @@ struct irq_desc * __ref irq_to_desc_alloc_node(unsigned int irq, int node)
 	}
 	init_one_irq_desc(irq, desc, node);
 
-	irq_desc_ptrs[irq] = desc;
+	set_irq_desc(irq, desc);
 
 out_unlock:
 	raw_spin_unlock_irqrestore(&sparse_irq_lock, flags);
Signature · 1 line
1.6.4.2
author
#7 lore raw

PATCH 7/8 x86: use num_processors for possible cpus

In reply to Yinghai Lu

some systems that have disable cpus entries because same
BIOS will support 2 sockets and 4 sockets and more at same time, BIOS just leave some disable entries, but those system do not support cpu hotplug. we don't need treat disabled_cpus as hotplug cpus.
so we can make nr_cpu_ids smaller and save more space
(pcpu data allocations), and could make some systems run with logical flat instead of physical flat apic mode

-v2: change to black list instead
-v3: just remove that, and the one use possible_cpus= directly.

---
 arch/x86/kernel/smpboot.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
arch/x86/kernel/smpboot.c +1 -2
index da99eef..51ec4b6 100644
@@ -1194,7 +1194,6 @@ early_param("possible_cpus", _setup_possible_cpus);
  * - Ashok Raj
  *
  * Three ways to find out the number of additional hotplug CPUs:
- * - If the BIOS specified disabled CPUs in ACPI/mptables use that.
  * - The user can overwrite it with possible_cpus=NUM
  * - Otherwise don't reserve additional CPUs.
  * We do this because additional CPUs waste a lot of memory.
@@ -1209,7 +1208,7 @@ __init void prefill_possible_map(void)
 		num_processors = 1;
 
 	if (setup_possible_cpus == -1)
-		possible = num_processors + disabled_cpus;
+		possible = num_processors;
 	else
 		possible = setup_possible_cpus;
 
Signature · 1 line
1.6.4.2
author
#8 lore raw

PATCH 8/8 x86: make 32bit apic flat to physflat switch like 64bit

In reply to Yinghai Lu

kill def_to_bigsmp
and move switch from default to bigsmp at default_setup_apic_routing... so make default_setup_apic_routing more like 64 bit
also make the dmi relate code to be __init/__initdata

-v2: refresh it according to change in upstream

---
 arch/x86/include/asm/apic.h      |    3 -
 arch/x86/include/asm/mpspec.h    |    1 -
 arch/x86/kernel/apic/bigsmp_32.c |   48 +---------------
 arch/x86/kernel/apic/probe_32.c  |  115 ++++++++++++++++++++------------------
 arch/x86/kernel/apic/probe_64.c  |    2 +-
 arch/x86/kernel/setup.c          |    2 -
 arch/x86/kernel/smpboot.c        |    2 +-
 7 files changed, 65 insertions(+), 108 deletions(-)
arch/x86/include/asm/apic.h +0 -3
index b4ac2cd..d544523 100644
@@ -456,9 +456,6 @@ static inline void default_wait_for_init_deassert(atomic_t *deassert)
 	return;
 }
 
-extern void generic_bigsmp_probe(void);
-
-
 #ifdef CONFIG_X86_LOCAL_APIC
 
 #include <asm/smp.h>
arch/x86/include/asm/mpspec.h +0 -1
index d8bf23a..b4b295c 100644
@@ -23,7 +23,6 @@ extern int pic_mode;
 
 #define MAX_IRQ_SOURCES		256
 
-extern unsigned int def_to_bigsmp;
 extern u8 apicid_2_node[];
 
 #ifdef CONFIG_X86_NUMAQ
arch/x86/kernel/apic/bigsmp_32.c +2 -46

81 lines not on this page · raw message

arch/x86/kernel/apic/probe_32.c +61 -54

168 lines not on this page · raw message

arch/x86/kernel/apic/probe_64.c +1 -1
index 83e9be4..ea25de8 100644
@@ -67,7 +67,7 @@ void __init default_setup_apic_routing(void)
 	}
 #endif
 
-	if (apic == &apic_flat && num_possible_cpus() > 8)
+	if (apic == &apic_flat && nr_cpu_ids > 8)
 			apic = &apic_physflat;
 
 	printk(KERN_INFO "Setting APIC routing to %s\n", apic->name);
arch/x86/kernel/setup.c +0 -2
index 3499b4f..d7c8d05 100644
@@ -184,8 +184,6 @@ static void set_mca_bus(int x)
 #endif
 }
 
-unsigned int def_to_bigsmp;
-
 /* for MCA, but anyone else can use it if they want */
 unsigned int machine_id;
 unsigned int machine_submodel_id;
arch/x86/kernel/smpboot.c +1 -1
index 51ec4b6..2a25e74 100644
@@ -950,7 +950,7 @@ static int __init smp_sanity_check(unsigned max_cpus)
 	preempt_disable();
 
 #if !defined(CONFIG_X86_BIGSMP) && defined(CONFIG_X86_32)
-	if (def_to_bigsmp && nr_cpu_ids > 8) {
+	if (apic == &apic_default && nr_cpu_ids > 8) {
 		unsigned int cpu;
 		unsigned nr;
 
Signature · 1 line
1.6.4.2
author
#3 lore raw

PATCH 3/8 sparseirq: change irq_desc_ptrs to static

In reply to Yinghai Lu

add replace_irq_desc()

-v2: remove unneeded boundary check in replace_irq_desc

---
 kernel/irq/handle.c       |    7 ++++++-
 kernel/irq/internals.h    |    6 +-----
 kernel/irq/numa_migrate.c |    4 ++--
 3 files changed, 9 insertions(+), 8 deletions(-)
kernel/irq/handle.c +6 -1
index 0e823c0..266f798 100644
@@ -127,7 +127,7 @@ static void init_one_irq_desc(int irq, struct irq_desc *desc, int node)
  */
 DEFINE_RAW_SPINLOCK(sparse_irq_lock);
 
-struct irq_desc **irq_desc_ptrs __read_mostly;
+static struct irq_desc **irq_desc_ptrs __read_mostly;
 
 static struct irq_desc irq_desc_legacy[NR_IRQS_LEGACY] __cacheline_aligned_in_smp = {
 	[0 ... NR_IRQS_LEGACY-1] = {
@@ -192,6 +192,11 @@ struct irq_desc *irq_to_desc(unsigned int irq)
 	return NULL;
 }
 
+void replace_irq_desc(unsigned int irq, struct irq_desc *desc)
+{
+	irq_desc_ptrs[irq] = desc;
+}
+
 struct irq_desc * __ref irq_to_desc_alloc_node(unsigned int irq, int node)
 {
 	struct irq_desc *desc;
kernel/irq/internals.h +1 -5
index b2821f0..c63f3bc 100644
@@ -21,11 +21,7 @@ extern void clear_kstat_irqs(struct irq_desc *desc);
 extern raw_spinlock_t sparse_irq_lock;
 
 #ifdef CONFIG_SPARSE_IRQ
-/* irq_desc_ptrs allocated at boot time */
-extern struct irq_desc **irq_desc_ptrs;
-#else
-/* irq_desc_ptrs is a fixed size array */
-extern struct irq_desc *irq_desc_ptrs[NR_IRQS];
+void replace_irq_desc(unsigned int irq, struct irq_desc *desc);
 #endif
 
 #ifdef CONFIG_PROC_FS
kernel/irq/numa_migrate.c +2 -2
index 26bac9d..963559d 100644
@@ -70,7 +70,7 @@ static struct irq_desc *__real_move_irq_desc(struct irq_desc *old_desc,
 	raw_spin_lock_irqsave(&sparse_irq_lock, flags);
 
 	/* We have to check it to avoid races with another CPU */
-	desc = irq_desc_ptrs[irq];
+	desc = irq_to_desc(irq);
 
 	if (desc && old_desc != desc)
 		goto out_unlock;
@@ -90,7 +90,7 @@ static struct irq_desc *__real_move_irq_desc(struct irq_desc *old_desc,
 		goto out_unlock;
 	}
 
-	irq_desc_ptrs[irq] = desc;
+	replace_irq_desc(irq, desc);
 	raw_spin_unlock_irqrestore(&sparse_irq_lock, flags);
 
 	/* free the old one */
Signature · 1 line
1.6.4.2
#9 lore raw
In reply to Yinghai Lu
Quoted 7 lines · Yinghai Lu

---------spareirq radix tree related ---------------- 94007e8: irq: remove not need bootmem code 4b0d3fa: radix: move radix init early
56af1a9: sparseirq: change irq_desc_ptrs to static
b236235: sparseirq: use radix_tree instead of ptrs array 5918787: x86: remove arch_probe_nr_irqs

Quoted 6 lines

so could reduce nr_irqs limitation for bunch ixgbe...

---------------x86 logical flat related -----------
f5954c4: use nr_cpus= to set nr_cpu_ids early
7b8d6a9: x86: use num_processors for possible cpus
d79d1de: x86: make 32bit apic flat to physflat switch like 64bit

Thanks for keeping this work alive.

I just skimmed through do_IRQ and I happened to notice that we have an unnecessary inefficiency that using a radix tree for irq_to_desc will magnify.

handle_irq should take an struct irq_desc * instead of a unsigned int irq.

and the per cpu vector_irq array should become a per cpu vector_desc array.

As soon as irq_to_desc is more than &irq_desc[irq] this saves us work and cache line misses at the cost of a simple code cleanup.

Eric

#10 lore raw
Quoted 3 lines · Eric W. Biederman

Thanks for keeping this work alive.

Indeed. I am hoping to put this in tip tomorrow or so.

Quoted 10 lines

I just skimmed through do_IRQ and I happened to notice that we have an unnecessary inefficiency that using a radix tree for irq_to_desc will magnify.

handle_irq should take an struct irq_desc * instead of a unsigned int irq.

and the per cpu vector_irq array should become a per cpu vector_desc array.

As soon as irq_to_desc is more than &irq_desc[irq] this saves us work and cache line misses at the cost of a simple code cleanup.

Good catch. I haven't looked through the details yet, but I presume this can be done on top of this changeset?

-hpa

Signature · 2 lines
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel.  I don't speak on their behalf.
#11 lore raw
Quoted 13 lines · H. Peter Anvin
Quoted 3 lines · Eric W. Biederman

Thanks for keeping this work alive.

Indeed. I am hoping to put this in tip tomorrow or so.

Quoted 6 lines

I just skimmed through do_IRQ and I happened to notice that we have an unnecessary inefficiency that using a radix tree for irq_to_desc will magnify.

handle_irq should take an struct irq_desc * instead of a unsigned int irq.

Quoted 7 lines
Quoted 4 lines

and the per cpu vector_irq array should become a per cpu vector_desc array.

As soon as irq_to_desc is more than &irq_desc[irq] this saves us work and cache line misses at the cost of a simple code cleanup.

Good catch. I haven't looked through the details yet, but I presume this can be done on top of this changeset?

Codewise the changes should be completely independent.

Probably the trickiest bit is that drivers/xen/events.c calls handle_irq and makes handle_irq on ia64 a wrapper for __do_IRQ.

Jeremy is there any good reason why drivers/xen/events.c does not just do:

desc = irq_to_desc(irq);
if (desc)

	generic_handle_irq_desc(irq, desc);

And instead introduces a weird one-off xen specific multi-arch function?

Eric

author
#14 lore raw
In reply to Eric W. Biederman
Quoted 22 lines · Eric W. Biederman
Quoted 7 lines · Yinghai Lu

---------spareirq radix tree related ---------------- 94007e8: irq: remove not need bootmem code 4b0d3fa: radix: move radix init early
56af1a9: sparseirq: change irq_desc_ptrs to static
b236235: sparseirq: use radix_tree instead of ptrs array 5918787: x86: remove arch_probe_nr_irqs

Quoted 6 lines

so could reduce nr_irqs limitation for bunch ixgbe...

---------------x86 logical flat related -----------
f5954c4: use nr_cpus= to set nr_cpu_ids early
7b8d6a9: x86: use num_processors for possible cpus
d79d1de: x86: make 32bit apic flat to physflat switch like 64bit

Thanks for keeping this work alive.

I just skimmed through do_IRQ and I happened to notice that we have an unnecessary inefficiency that using a radix tree for irq_to_desc will magnify.

Quoted 7 lines

handle_irq should take an struct irq_desc * instead of a unsigned int irq.

and the per cpu vector_irq array should become a per cpu vector_desc array.

As soon as irq_to_desc is more than &irq_desc[irq] this saves us work and cache line misses at the cost of a simple code cleanup.

please check

Subject: [PATCH] x86: use vector_desc instead of vector_irq

Eric pointed out that radix tree version of irq_to_desc will magnify delay on the path of handle_irq.
use vector_desc to reduce the calling of irq_to_desc.

next step: need to change all ack, mask, umask, eoi for all irq_chip to take irq_desc

---
 arch/x86/include/asm/desc.h    |    2 -
 arch/x86/include/asm/hw_irq.h  |   10 ++---
 arch/x86/include/asm/irq.h     |    3 +
 arch/x86/kernel/apic/io_apic.c |   75 ++++++++++++++++++++---------------------
 arch/x86/kernel/irq.c          |   15 +++-----
 arch/x86/kernel/irq_32.c       |    6 +--
 arch/x86/kernel/irq_64.c       |    7 +--
 arch/x86/kernel/irqinit.c      |    8 +---
 arch/x86/kernel/smpboot.c      |    2 -
 arch/x86/kernel/vmiclock_32.c  |    2 -
 arch/x86/lguest/boot.c         |    2 -
 11 files changed, 63 insertions(+), 69 deletions(-)
arch/x86/include/asm/desc.h +1 -1
Index: linux-2.6/arch/x86/include/asm/desc.h
===================================================================
@@ -334,7 +334,7 @@ static inline void set_intr_gate(unsigne
 }
 
 extern int first_system_vector;
-/* used_vectors is BITMAP for irq is not managed by percpu vector_irq */
+/* used_vectors is BITMAP for irq is not managed by percpu vector_desc */
 extern unsigned long used_vectors[];
 
 static inline void alloc_system_vector(int vector)
arch/x86/include/asm/hw_irq.h +5 -5
Index: linux-2.6/arch/x86/include/asm/hw_irq.h
===================================================================
@@ -99,7 +99,7 @@ struct irq_cfg {
 };
 
 extern struct irq_cfg *irq_cfg(unsigned int);
-extern int assign_irq_vector(int, struct irq_cfg *, const struct cpumask *);
+extern int assign_irq_vector(struct irq_desc *, struct irq_cfg *, const struct cpumask *);
 extern void send_cleanup_vector(struct irq_cfg *);
 
 struct irq_desc;
@@ -138,17 +138,17 @@ extern asmlinkage void smp_invalidate_in
 
 extern void (*__initconst interrupt[NR_VECTORS-FIRST_EXTERNAL_VECTOR])(void);
 
-typedef int vector_irq_t[NR_VECTORS];
-DECLARE_PER_CPU(vector_irq_t, vector_irq);
+typedef struct irq_desc *vector_desc_t[NR_VECTORS];
+DECLARE_PER_CPU(vector_desc_t, vector_desc);
 
 #ifdef CONFIG_X86_IO_APIC
 extern void lock_vector_lock(void);
 extern void unlock_vector_lock(void);
-extern void __setup_vector_irq(int cpu);
+extern void __setup_vector_desc(int cpu);
 #else
 static inline void lock_vector_lock(void) {}
 static inline void unlock_vector_lock(void) {}
-static inline void __setup_vector_irq(int cpu) {}
+static inline void __setup_vector_desc(int cpu) {}
 #endif
 
 #endif /* !ASSEMBLY_ */
arch/x86/include/asm/irq.h +2 -1
Index: linux-2.6/arch/x86/include/asm/irq.h
===================================================================
@@ -39,7 +39,8 @@ extern void irq_force_complete_move(int)
 
 extern void (*x86_platform_ipi_callback)(void);
 extern void native_init_IRQ(void);
-extern bool handle_irq(unsigned irq, struct pt_regs *regs);
+struct irq_desc;
+extern bool handle_irq(struct irq_desc *desc, struct pt_regs *regs);
 
 extern unsigned int do_IRQ(struct pt_regs *regs);
 
arch/x86/kernel/apic/io_apic.c +37 -38

236 lines not on this page · raw message

arch/x86/kernel/irq.c +7 -8
Index: linux-2.6/arch/x86/kernel/irq.c
===================================================================
@@ -229,19 +229,19 @@ unsigned int __irq_entry do_IRQ(struct p
 
 	/* high bit used in ret_from_ code  */
 	unsigned vector = ~regs->orig_ax;
-	unsigned irq;
+	struct irq_desc *desc;
 
 	exit_idle();
 	irq_enter();
 
-	irq = __get_cpu_var(vector_irq)[vector];
+	desc = __get_cpu_var(vector_desc)[vector];
 
-	if (!handle_irq(irq, regs)) {
+	if (!handle_irq(desc, regs)) {
 		ack_APIC_irq();
 
 		if (printk_ratelimit())
-			pr_emerg("%s: %d.%d No irq handler for vector (irq %d)\n",
-				__func__, smp_processor_id(), vector, irq);
+			pr_emerg("%s: %d.%d No irq handler for vector\n",
+				__func__, smp_processor_id(), vector);
 	}
 
 	irq_exit();
@@ -348,14 +348,13 @@ void fixup_irqs(void)
 	for (vector = FIRST_EXTERNAL_VECTOR; vector < NR_VECTORS; vector++) {
 		unsigned int irr;
 
-		if (__get_cpu_var(vector_irq)[vector] < 0)
+		if (__get_cpu_var(vector_desc)[vector] == NULL)
 			continue;
 
 		irr = apic_read(APIC_IRR + (vector / 32 * 0x10));
 		if (irr  & (1 << (vector % 32))) {
-			irq = __get_cpu_var(vector_irq)[vector];
+			desc = __get_cpu_var(vector_desc)[vector];
 
-			desc = irq_to_desc(irq);
 			raw_spin_lock(&desc->lock);
 			if (desc->chip->retrigger)
 				desc->chip->retrigger(irq);
arch/x86/kernel/irq_32.c +3 -3
Index: linux-2.6/arch/x86/kernel/irq_32.c
===================================================================
@@ -192,17 +192,17 @@ static inline int
 execute_on_irq_stack(int overflow, struct irq_desc *desc, int irq) { return 0; }
 #endif
 
-bool handle_irq(unsigned irq, struct pt_regs *regs)
+bool handle_irq(struct irq_desc *desc, struct pt_regs *regs)
 {
-	struct irq_desc *desc;
 	int overflow;
+	int irq;
 
 	overflow = check_stack_overflow();
 
-	desc = irq_to_desc(irq);
 	if (unlikely(!desc))
 		return false;
 
+	irq = desc->irq;
 	if (!execute_on_irq_stack(overflow, desc, irq)) {
 		if (unlikely(overflow))
 			print_stack_overflow();
arch/x86/kernel/irq_64.c +2 -5
Index: linux-2.6/arch/x86/kernel/irq_64.c
===================================================================
@@ -48,17 +48,14 @@ static inline void stack_overflow_check(
 #endif
 }
 
-bool handle_irq(unsigned irq, struct pt_regs *regs)
+bool handle_irq(struct irq_desc *desc, struct pt_regs *regs)
 {
-	struct irq_desc *desc;
-
 	stack_overflow_check(regs);
 
-	desc = irq_to_desc(irq);
 	if (unlikely(!desc))
 		return false;
 
-	generic_handle_irq_desc(irq, desc);
+	generic_handle_irq_desc(desc->irq, desc);
 	return true;
 }
 
arch/x86/kernel/irqinit.c +3 -5
Index: linux-2.6/arch/x86/kernel/irqinit.c
===================================================================
@@ -83,16 +83,14 @@ static struct irqaction irq2 = {
 	.name = "cascade",
 };
 
-DEFINE_PER_CPU(vector_irq_t, vector_irq) = {
-	[0 ... NR_VECTORS - 1] = -1,
-};
+DEFINE_PER_CPU(vector_desc_t, vector_desc);
 
 int vector_used_by_percpu_irq(unsigned int vector)
 {
 	int cpu;
 
 	for_each_online_cpu(cpu) {
-		if (per_cpu(vector_irq, cpu)[vector] != -1)
+		if (per_cpu(vector_desc, cpu)[vector] != NULL)
 			return 1;
 	}
 
@@ -139,7 +137,7 @@ void __init init_IRQ(void)
 	 * irq's migrate etc.
 	 */
 	for (i = 0; i < nr_legacy_irqs; i++)
-		per_cpu(vector_irq, 0)[IRQ0_VECTOR + i] = i;
+		per_cpu(vector_desc, 0)[IRQ0_VECTOR + i] = irq_to_desc(i);
 
 	x86_init.irqs.intr_init();
 }
arch/x86/kernel/smpboot.c +1 -1
Index: linux-2.6/arch/x86/kernel/smpboot.c
===================================================================
@@ -245,7 +245,7 @@ static void __cpuinit smp_callin(void)
 	/*
 	 * Need to setup vector mappings before we enable interrupts.
 	 */
-	__setup_vector_irq(smp_processor_id());
+	__setup_vector_desc(smp_processor_id());
 	/*
 	 * Get our bogomips.
 	 *
arch/x86/kernel/vmiclock_32.c +1 -1
Index: linux-2.6/arch/x86/kernel/vmiclock_32.c
===================================================================
@@ -236,7 +236,7 @@ void __init vmi_time_init(void)
 	vmi_time_init_clockevent();
 	setup_irq(0, &vmi_clock_action);
 	for_each_possible_cpu(cpu)
-		per_cpu(vector_irq, cpu)[vmi_get_timer_vector()] = 0;
+		per_cpu(vector_desc, cpu)[vmi_get_timer_vector()] = irq_to_desc(0);
 }
 
 #ifdef CONFIG_X86_LOCAL_APIC
arch/x86/lguest/boot.c +1 -1
Index: linux-2.6/arch/x86/lguest/boot.c
===================================================================
@@ -819,7 +819,7 @@ static void __init lguest_init_IRQ(void)
 
 	for (i = FIRST_EXTERNAL_VECTOR; i < NR_VECTORS; i++) {
 		/* Some systems map "vectors" to interrupts weirdly.  Not us! */
-		__get_cpu_var(vector_irq)[i] = i - FIRST_EXTERNAL_VECTOR;
+		__get_cpu_var(vector_desc)[i] = irq_to_desc(i - FIRST_EXTERNAL_VECTOR);
 		if (i != SYSCALL_VECTOR)
 			set_intr_gate(i, interrupt[i - FIRST_EXTERNAL_VECTOR]);
 	}
#15 lore raw
Quoted 7 lines · Yinghai Lu

please check

Subject: [PATCH] x86: use vector_desc instead of vector_irq

Eric pointed out that radix tree version of irq_to_desc will magnify delay on the path of handle_irq.
use vector_desc to reduce the calling of irq_to_desc.

You have missed Xen's handling of handle_irq. Let's just kill it like:

Quoted 1 line

From 0fd5a07f0d346aee37524108d74be7d70c0ab753 Mon Sep 17 00:00:00 2001

From: Eric W. Biederman <[email protected]>
Date: Sat, 13 Feb 2010 03:22:59 -0800
Subject: [PATCH] xen: Remove unnecessary arch specific xen irq functions.

Right now xen's use of the x86 and ia64 handle_irq is just bizarre and very fragile as it is very non-obvious the function exists and is is used by code out in drivers/.... Luckily using handle_irq is completly unnecessary, and we can just use the generic irq apis instead.

This still leaves drivers/xen/events.c as a problematic user of the generic irq apis it has "static struct irq_info irq_info[NR_IRQS]" but that can be fixed some other time.

---
 arch/ia64/include/asm/xen/events.h |    4 ----
 drivers/xen/events.c               |    8 ++++++--
 2 files changed, 6 insertions(+), 6 deletions(-)
arch/ia64/include/asm/xen/events.h +0 -4
index b8370c8..baa74c8 100644
@@ -36,10 +36,6 @@ static inline int xen_irqs_disabled(struct pt_regs *regs)
 	return !(ia64_psr(regs)->i);
 }
 
-static inline void handle_irq(int irq, struct pt_regs *regs)
-{
-	__do_IRQ(irq);
-}
 #define irq_ctx_init(cpu)	do { } while (0)
 
 #endif /* _ASM_IA64_XEN_EVENTS_H */
drivers/xen/events.c +6 -2
index ce602dd..2f84137 100644
@@ -649,9 +649,13 @@ void xen_evtchn_do_upcall(struct pt_regs *regs)
 				int bit_idx = __ffs(pending_bits);
 				int port = (word_idx * BITS_PER_LONG) + bit_idx;
 				int irq = evtchn_to_irq[port];
+				struct irq_desc *desc;
 
-				if (irq != -1)
-					handle_irq(irq, regs);
+				if (irq != -1) {
+					desc = irq_to_desc(irq);
+					if (desc)
+						generic_handle_irq_desc(irq, desc);
+				}
 			}
 		}
 
Signature · 1 line
1.6.5.2.143.g8cc62
#16 lore raw
In reply to Yinghai Lu
Quoted 49 lines · Yinghai Lu
Quoted 22 lines · Eric W. Biederman
Quoted 7 lines · Yinghai Lu

---------spareirq radix tree related ---------------- 94007e8: irq: remove not need bootmem code 4b0d3fa: radix: move radix init early
56af1a9: sparseirq: change irq_desc_ptrs to static
b236235: sparseirq: use radix_tree instead of ptrs array 5918787: x86: remove arch_probe_nr_irqs

Quoted 6 lines

so could reduce nr_irqs limitation for bunch ixgbe...

---------------x86 logical flat related -----------
f5954c4: use nr_cpus= to set nr_cpu_ids early
7b8d6a9: x86: use num_processors for possible cpus
d79d1de: x86: make 32bit apic flat to physflat switch like 64bit

Thanks for keeping this work alive.

I just skimmed through do_IRQ and I happened to notice that we have an unnecessary inefficiency that using a radix tree for irq_to_desc will magnify.

Quoted 7 lines

handle_irq should take an struct irq_desc * instead of a unsigned int irq.

and the per cpu vector_irq array should become a per cpu vector_desc array.

As soon as irq_to_desc is more than &irq_desc[irq] this saves us work and cache line misses at the cost of a simple code cleanup.

please check

Subject: [PATCH] x86: use vector_desc instead of vector_irq

Eric pointed out that radix tree version of irq_to_desc will magnify delay on the path of handle_irq.
use vector_desc to reduce the calling of irq_to_desc.

next step: need to change all ack, mask, umask, eoi for all irq_chip to take irq_desc

#ifdef CONFIG_X86_LOCAL_APIC
Index: linux-2.6/arch/x86/lguest/boot.c
===================================================================

arch/x86/lguest/boot.c static void __init lguest_init_IRQ(void) · line 825

Quoted 8 lines
arch/x86/lguest/boot.c +1 -1
@@ -819,7 +819,7 @@ static void __init lguest_init_IRQ(void)
 
 	for (i = FIRST_EXTERNAL_VECTOR; i < NR_VECTORS; i++) {
 		/* Some systems map "vectors" to interrupts weirdly.  Not us! */
-		__get_cpu_var(vector_irq)[i] = i - FIRST_EXTERNAL_VECTOR;
+		__get_cpu_var(vector_desc)[i] = irq_to_desc(i - FIRST_EXTERNAL_VECTOR);
 		if (i != SYSCALL_VECTOR)
 			set_intr_gate(i, interrupt[i - FIRST_EXTERNAL_VECTOR]);
 	}

YH It appears that irq_to_desc_alloc_node has not been called yet so the setting of vector_desc needs to move to lguest_setup_irq.

Eric

#43 lore raw
In reply to Yinghai Lu
Quoted 33 lines · Yinghai Lu
Quoted 22 lines · Eric W. Biederman
Quoted 7 lines · Yinghai Lu

---------spareirq radix tree related ---------------- 94007e8: irq: remove not need bootmem code 4b0d3fa: radix: move radix init early
56af1a9: sparseirq: change irq_desc_ptrs to static
b236235: sparseirq: use radix_tree instead of ptrs array 5918787: x86: remove arch_probe_nr_irqs

Quoted 6 lines

so could reduce nr_irqs limitation for bunch ixgbe...

---------------x86 logical flat related -----------
f5954c4: use nr_cpus= to set nr_cpu_ids early
7b8d6a9: x86: use num_processors for possible cpus
d79d1de: x86: make 32bit apic flat to physflat switch like 64bit

Thanks for keeping this work alive.

I just skimmed through do_IRQ and I happened to notice that we have an unnecessary inefficiency that using a radix tree for irq_to_desc will magnify.

Quoted 7 lines

handle_irq should take an struct irq_desc * instead of a unsigned int irq.

and the per cpu vector_irq array should become a per cpu vector_desc array.

As soon as irq_to_desc is more than &irq_desc[irq] this saves us work and cache line misses at the cost of a simple code cleanup.

please check

Quoted 7 lines

Subject: [PATCH] x86: use vector_desc instead of vector_irq

Eric pointed out that radix tree version of irq_to_desc will magnify delay on the path of handle_irq.
use vector_desc to reduce the calling of irq_to_desc.

next step: need to change all ack, mask, umask, eoi for all irq_chip to take irq_desc

Overall this looks good, and your next step sounds good.

Thanks,
Eric

Quoted 5 lines

Index: linux-2.6/arch/x86/kernel/irq_32.c
===================================================================

arch/x86/kernel/irq_32.c static inline int · line 198

Quoted 9 lines
arch/x86/kernel/irq_32.c +2 -2
@@ -192,17 +192,17 @@ static inline int
 execute_on_irq_stack(int overflow, struct irq_desc *desc, int irq) { return 0; }
 #endif
 
-bool handle_irq(unsigned irq, struct pt_regs *regs)
+bool handle_irq(struct irq_desc *desc, struct pt_regs *regs)
 {
-	struct irq_desc *desc;
 	int overflow;
+	int irq;

This should be:

	unsigned irq;

irq numbers are unsigned, and with sparse allocation we might even see irq numbers large enough for that to matter.

Quoted 35 lines
arch/x86/kernel/irq_32.c +1 -1
 	overflow = check_stack_overflow();
 
-	desc = irq_to_desc(irq);
 	if (unlikely(!desc))
 		return false;
 
+	irq = desc->irq;
 	if (!execute_on_irq_stack(overflow, desc, irq)) {
 		if (unlikely(overflow))
 			print_stack_overflow();
 

Index: linux-2.6/arch/x86/kernel/irqinit.c
===================================================================

arch/x86/kernel/irqinit.c +2 -4
@@ -83,16 +83,14 @@ static struct irqaction irq2 = {
 	.name = "cascade",
 };
 
-DEFINE_PER_CPU(vector_irq_t, vector_irq) = {
-	[0 ... NR_VECTORS - 1] = -1,
-};
+DEFINE_PER_CPU(vector_desc_t, vector_desc);
 
 int vector_used_by_percpu_irq(unsigned int vector)
 {
 	int cpu;
 
 	for_each_online_cpu(cpu) {
-		if (per_cpu(vector_irq, cpu)[vector] != -1)
+		if (per_cpu(vector_desc, cpu)[vector] != NULL)
 			return 1;
 	}
 

arch/x86/kernel/irqinit.c void __init init_IRQ(void) · line 140

Quoted 5 lines
arch/x86/kernel/irqinit.c +1 -1
@@ -139,7 +137,7 @@ void __init init_IRQ(void)
 	 * irq's migrate etc.
 	 */
 	for (i = 0; i < nr_legacy_irqs; i++)
-		per_cpu(vector_irq, 0)[IRQ0_VECTOR + i] = i;
+		per_cpu(vector_desc, 0)[IRQ0_VECTOR + i] = irq_to_desc(i);

I am not familiar with this hunk (it must be in the x86 tree). Are you certain we have allocated the legacy irq desc here?

Quoted 2 lines
arch/x86/kernel/irqinit.c +0 -0
 	x86_init.irqs.intr_init();
 }
#12 lore raw
In reply to Eric W. Biederman

I don't have the code in front of me, but I think that change should be OK. Xen just wants to initiate interrupt delivery for a given irq. At least for x86; I won't make any claims for ia64.

J

Quoted 41 lines · [email protected] wrote:
Quoted 13 lines · H. Peter Anvin
Quoted 3 lines · Eric W. Biederman

Thanks for keeping this work alive.

Indeed. I am hoping to put this in tip tomorrow or so.

Quoted 6 lines

I just skimmed through do_IRQ and I happened to notice that we have an unnecessary inefficiency that using a radix tree for irq_to_desc will magnify.

handle_irq should take an struct irq_desc * instead of a unsigned int irq.

Quoted 7 lines
Quoted 4 lines

and the per cpu vector_irq array should become a per cpu vector_desc array.

As soon as irq_to_desc is more than &irq_desc[irq] this saves us work and cache line misses at the cost of a simple code cleanup.

Good catch. I haven't looked through the details yet, but I presume this can be done on top of this changeset?

Codewise the changes should be completely independent.

Probably the trickiest bit is that drivers/xen/events.c calls handle_irq and makes handle_irq on ia64 a wrapper for __do_IRQ.

Jeremy is there any good reason why drivers/xen/events.c does not just do:

desc = irq_to_desc(irq);
if (desc)

	generic_handle_irq_desc(irq, desc);

And instead introduces a weird one-off xen specific multi-arch function?

Eric

Signature · 1 line
Sent from my Android phone with K-9 Mail. Please excuse my brevity.
#13 lore raw
Quoted 1 line · Jeremy Fitzhardinge

I don't have the code in front of me, but I think that change should be OK. Xen just wants to initiate interrupt delivery for a given irq. At least for x86; I won't make any claims for ia64.

Thanks.

For ia64 the change should be a noop, generic_handle_irq_desc calls __do_IRQ when needed.

On x86 the big differences are:
- No more stack overflow check.
- Not switching to the irq stack for i386.

Eric

author
#44 lore raw
In reply to Eric W. Biederman
Quoted 23 lines · Eric W. Biederman
Quoted 23 lines

Index: linux-2.6/arch/x86/kernel/irqinit.c
===================================================================

arch/x86/kernel/irqinit.c +2 -4
@@ -83,16 +83,14 @@ static struct irqaction irq2 = {
 	.name = "cascade",
 };
 
-DEFINE_PER_CPU(vector_irq_t, vector_irq) = {
-	[0 ... NR_VECTORS - 1] = -1,
-};
+DEFINE_PER_CPU(vector_desc_t, vector_desc);
 
 int vector_used_by_percpu_irq(unsigned int vector)
 {
 	int cpu;
 
 	for_each_online_cpu(cpu) {
-		if (per_cpu(vector_irq, cpu)[vector] != -1)
+		if (per_cpu(vector_desc, cpu)[vector] != NULL)
 			return 1;
 	}
 
Quoted 9 lines

arch/x86/kernel/irqinit.c void __init init_IRQ(void) · line 140

Quoted 6 lines
arch/x86/kernel/irqinit.c +1 -1
@@ -139,7 +137,7 @@ void __init init_IRQ(void)
 	 * irq's migrate etc.
 	 */
 	for (i = 0; i < nr_legacy_irqs; i++)
-		per_cpu(vector_irq, 0)[IRQ0_VECTOR + i] = i;
+		per_cpu(vector_desc, 0)[IRQ0_VECTOR + i] = irq_to_desc(i);

I am not familiar with this hunk (it must be in the x86 tree). Are you certain we have allocated the legacy irq desc here?

yes.

early_irq_init() is called before init_IRQ in start_kernel()

it will have irq_desc for legacy ready.

YH

author
#17 lore raw
In reply to Eric W. Biederman
Quoted 52 lines · Eric W. Biederman
Quoted 50 lines · Yinghai Lu
Quoted 22 lines · Eric W. Biederman
Quoted 7 lines · Yinghai Lu

---------spareirq radix tree related ---------------- 94007e8: irq: remove not need bootmem code 4b0d3fa: radix: move radix init early
56af1a9: sparseirq: change irq_desc_ptrs to static
b236235: sparseirq: use radix_tree instead of ptrs array 5918787: x86: remove arch_probe_nr_irqs

Quoted 6 lines

so could reduce nr_irqs limitation for bunch ixgbe...

---------------x86 logical flat related -----------
f5954c4: use nr_cpus= to set nr_cpu_ids early
7b8d6a9: x86: use num_processors for possible cpus
d79d1de: x86: make 32bit apic flat to physflat switch like 64bit

Thanks for keeping this work alive.

I just skimmed through do_IRQ and I happened to notice that we have an unnecessary inefficiency that using a radix tree for irq_to_desc will magnify.

Quoted 7 lines

handle_irq should take an struct irq_desc * instead of a unsigned int irq.

and the per cpu vector_irq array should become a per cpu vector_desc array.

As soon as irq_to_desc is more than &irq_desc[irq] this saves us work and cache line misses at the cost of a simple code cleanup.

please check

Subject: [PATCH] x86: use vector_desc instead of vector_irq

Eric pointed out that radix tree version of irq_to_desc will magnify delay on the path of handle_irq.
use vector_desc to reduce the calling of irq_to_desc.

next step: need to change all ack, mask, umask, eoi for all irq_chip to take irq_desc

#ifdef CONFIG_X86_LOCAL_APIC
Index: linux-2.6/arch/x86/lguest/boot.c
===================================================================

arch/x86/lguest/boot.c +0 -0
@@ -819,7 +819,7 @@ static void __init lguest_init_IRQ(void)
 
Quoted 10 lines

arch/x86/lguest/boot.c static void __init lguest_init_IRQ(void) · line 825

Quoted 7 lines
arch/x86/lguest/boot.c +1 -1
 	for (i = FIRST_EXTERNAL_VECTOR; i < NR_VECTORS; i++) {
 		/* Some systems map "vectors" to interrupts weirdly.  Not us! */
-		__get_cpu_var(vector_irq)[i] = i - FIRST_EXTERNAL_VECTOR;
+		__get_cpu_var(vector_desc)[i] = irq_to_desc(i - FIRST_EXTERNAL_VECTOR);
 		if (i != SYSCALL_VECTOR)
 			set_intr_gate(i, interrupt[i - FIRST_EXTERNAL_VECTOR]);
 	}

YH It appears that irq_to_desc_alloc_node has not been called yet so the setting of vector_desc needs to move to lguest_setup_irq.

lguest is using sparseirq?

YH

#18 lore raw
Quoted 20 lines · Yinghai Lu
Quoted 8 lines · Eric W. Biederman
Quoted 8 lines

#ifdef CONFIG_X86_LOCAL_APIC
Index: linux-2.6/arch/x86/lguest/boot.c
===================================================================

arch/x86/lguest/boot.c +0 -0
@@ -819,7 +819,7 @@ static void __init lguest_init_IRQ(void)
 
Quoted 10 lines

arch/x86/lguest/boot.c static void __init lguest_init_IRQ(void) · line 825

Quoted 7 lines
arch/x86/lguest/boot.c +1 -1
 	for (i = FIRST_EXTERNAL_VECTOR; i < NR_VECTORS; i++) {
 		/* Some systems map "vectors" to interrupts weirdly.  Not us! */
-		__get_cpu_var(vector_irq)[i] = i - FIRST_EXTERNAL_VECTOR;
+		__get_cpu_var(vector_desc)[i] = irq_to_desc(i - FIRST_EXTERNAL_VECTOR);
 		if (i != SYSCALL_VECTOR)
 			set_intr_gate(i, interrupt[i - FIRST_EXTERNAL_VECTOR]);
 	}

YH It appears that irq_to_desc_alloc_node has not been called yet so the setting of vector_desc needs to move to lguest_setup_irq.

Quoted 1 line

lguest is using sparseirq?

Apparently. The last commit in that region of code moved some of the work (irq_to_desc_alloc_node) into lguest_setup_irq because kmalloc would not work that early.

Certainly the long term direction is to figure out how to enable sparseirq unconditionally on x86.

Eric

author
#19 lore raw
Quoted 22 lines · Eric W. Biederman
Quoted 20 lines · Yinghai Lu
Quoted 18 lines · Eric W. Biederman
Quoted 7 lines

#ifdef CONFIG_X86_LOCAL_APIC
Index: linux-2.6/arch/x86/lguest/boot.c
===================================================================

arch/x86/lguest/boot.c static void __init lguest_init_IRQ(void) · line 825

Quoted 8 lines
arch/x86/lguest/boot.c +1 -1
@@ -819,7 +819,7 @@ static void __init lguest_init_IRQ(void)
 
 	for (i = FIRST_EXTERNAL_VECTOR; i < NR_VECTORS; i++) {
 		/* Some systems map "vectors" to interrupts weirdly.  Not us! */
-		__get_cpu_var(vector_irq)[i] = i - FIRST_EXTERNAL_VECTOR;
+		__get_cpu_var(vector_desc)[i] = irq_to_desc(i - FIRST_EXTERNAL_VECTOR);
 		if (i != SYSCALL_VECTOR)
 			set_intr_gate(i, interrupt[i - FIRST_EXTERNAL_VECTOR]);
 	}

YH It appears that irq_to_desc_alloc_node has not been called yet so the setting of vector_desc needs to move to lguest_setup_irq.

Quoted 5 lines
Quoted 1 line

lguest is using sparseirq?

Apparently. The last commit in that region of code moved some of the work (irq_to_desc_alloc_node) into lguest_setup_irq because kmalloc would not work that early.

please check -v2

Subject: [PATCH] x86: use vector_desc instead of vector_irq

Eric pointed out that radix tree version of irq_to_desc will magnify delay on the path of handle_irq.
use vector_desc to reduce the calling of irq_to_desc.

next step: need to change all ack, mask, umask, eoi for all irq_chip to take irq_desc

-v2: irq should be unsigned in 32bit handle_irq according to Eric
also reset vector_desc for lguest in setup_irq

---
 arch/x86/include/asm/desc.h    |    2 -
 arch/x86/include/asm/hw_irq.h  |   10 ++---
 arch/x86/include/asm/irq.h     |    3 +
 arch/x86/kernel/apic/io_apic.c |   75 ++++++++++++++++++++---------------------
 arch/x86/kernel/irq.c          |   15 +++-----
 arch/x86/kernel/irq_32.c       |   12 ++----
 arch/x86/kernel/irq_64.c       |    7 +--
 arch/x86/kernel/irqinit.c      |    8 +---
 arch/x86/kernel/smpboot.c      |    2 -
 arch/x86/kernel/vmiclock_32.c  |    2 -
 arch/x86/lguest/boot.c         |    7 +++
 11 files changed, 70 insertions(+), 73 deletions(-)
arch/x86/include/asm/desc.h +1 -1
Index: linux-2.6/arch/x86/include/asm/desc.h
===================================================================
@@ -334,7 +334,7 @@ static inline void set_intr_gate(unsigne
 }
 
 extern int first_system_vector;
-/* used_vectors is BITMAP for irq is not managed by percpu vector_irq */
+/* used_vectors is BITMAP for irq is not managed by percpu vector_desc */
 extern unsigned long used_vectors[];
 
 static inline void alloc_system_vector(int vector)
arch/x86/include/asm/hw_irq.h +5 -5
Index: linux-2.6/arch/x86/include/asm/hw_irq.h
===================================================================
@@ -99,7 +99,7 @@ struct irq_cfg {
 };
 
 extern struct irq_cfg *irq_cfg(unsigned int);
-extern int assign_irq_vector(int, struct irq_cfg *, const struct cpumask *);
+extern int assign_irq_vector(struct irq_desc *, struct irq_cfg *, const struct cpumask *);
 extern void send_cleanup_vector(struct irq_cfg *);
 
 struct irq_desc;
@@ -138,17 +138,17 @@ extern asmlinkage void smp_invalidate_in
 
 extern void (*__initconst interrupt[NR_VECTORS-FIRST_EXTERNAL_VECTOR])(void);
 
-typedef int vector_irq_t[NR_VECTORS];
-DECLARE_PER_CPU(vector_irq_t, vector_irq);
+typedef struct irq_desc *vector_desc_t[NR_VECTORS];
+DECLARE_PER_CPU(vector_desc_t, vector_desc);
 
 #ifdef CONFIG_X86_IO_APIC
 extern void lock_vector_lock(void);
 extern void unlock_vector_lock(void);
-extern void __setup_vector_irq(int cpu);
+extern void __setup_vector_desc(int cpu);
 #else
 static inline void lock_vector_lock(void) {}
 static inline void unlock_vector_lock(void) {}
-static inline void __setup_vector_irq(int cpu) {}
+static inline void __setup_vector_desc(int cpu) {}
 #endif
 
 #endif /* !ASSEMBLY_ */
arch/x86/include/asm/irq.h +2 -1
Index: linux-2.6/arch/x86/include/asm/irq.h
===================================================================
@@ -39,7 +39,8 @@ extern void irq_force_complete_move(int)
 
 extern void (*x86_platform_ipi_callback)(void);
 extern void native_init_IRQ(void);
-extern bool handle_irq(unsigned irq, struct pt_regs *regs);
+struct irq_desc;
+extern bool handle_irq(struct irq_desc *desc, struct pt_regs *regs);
 
 extern unsigned int do_IRQ(struct pt_regs *regs);
 
arch/x86/kernel/apic/io_apic.c +37 -38

236 lines not on this page · raw message

arch/x86/kernel/irq.c +7 -8
Index: linux-2.6/arch/x86/kernel/irq.c
===================================================================
@@ -229,19 +229,19 @@ unsigned int __irq_entry do_IRQ(struct p
 
 	/* high bit used in ret_from_ code  */
 	unsigned vector = ~regs->orig_ax;
-	unsigned irq;
+	struct irq_desc *desc;
 
 	exit_idle();
 	irq_enter();
 
-	irq = __get_cpu_var(vector_irq)[vector];
+	desc = __get_cpu_var(vector_desc)[vector];
 
-	if (!handle_irq(irq, regs)) {
+	if (!handle_irq(desc, regs)) {
 		ack_APIC_irq();
 
 		if (printk_ratelimit())
-			pr_emerg("%s: %d.%d No irq handler for vector (irq %d)\n",
-				__func__, smp_processor_id(), vector, irq);
+			pr_emerg("%s: %d.%d No irq handler for vector\n",
+				__func__, smp_processor_id(), vector);
 	}
 
 	irq_exit();
@@ -348,14 +348,13 @@ void fixup_irqs(void)
 	for (vector = FIRST_EXTERNAL_VECTOR; vector < NR_VECTORS; vector++) {
 		unsigned int irr;
 
-		if (__get_cpu_var(vector_irq)[vector] < 0)
+		if (__get_cpu_var(vector_desc)[vector] == NULL)
 			continue;
 
 		irr = apic_read(APIC_IRR + (vector / 32 * 0x10));
 		if (irr  & (1 << (vector % 32))) {
-			irq = __get_cpu_var(vector_irq)[vector];
+			desc = __get_cpu_var(vector_desc)[vector];
 
-			desc = irq_to_desc(irq);
 			raw_spin_lock(&desc->lock);
 			if (desc->chip->retrigger)
 				desc->chip->retrigger(irq);
arch/x86/kernel/irq_32.c +5 -7
Index: linux-2.6/arch/x86/kernel/irq_32.c
===================================================================
@@ -76,7 +76,7 @@ static void call_on_stack(void *func, vo
 }
 
 static inline int
-execute_on_irq_stack(int overflow, struct irq_desc *desc, int irq)
+execute_on_irq_stack(int overflow, struct irq_desc *desc)
 {
 	union irq_ctx *curctx, *irqctx;
 	u32 *isp, arg1, arg2;
@@ -189,24 +189,22 @@ asmlinkage void do_softirq(void)
 
 #else
 static inline int
-execute_on_irq_stack(int overflow, struct irq_desc *desc, int irq) { return 0; }
+execute_on_irq_stack(int overflow, struct irq_desc *desc) { return 0; }
 #endif
 
-bool handle_irq(unsigned irq, struct pt_regs *regs)
+bool handle_irq(struct irq_desc *desc, struct pt_regs *regs)
 {
-	struct irq_desc *desc;
 	int overflow;
 
 	overflow = check_stack_overflow();
 
-	desc = irq_to_desc(irq);
 	if (unlikely(!desc))
 		return false;
 
-	if (!execute_on_irq_stack(overflow, desc, irq)) {
+	if (!execute_on_irq_stack(overflow, desc)) {
 		if (unlikely(overflow))
 			print_stack_overflow();
-		desc->handle_irq(irq, desc);
+		desc->handle_irq(desc->irq, desc);
 	}
 
 	return true;
arch/x86/kernel/irq_64.c +2 -5
Index: linux-2.6/arch/x86/kernel/irq_64.c
===================================================================
@@ -48,17 +48,14 @@ static inline void stack_overflow_check(
 #endif
 }
 
-bool handle_irq(unsigned irq, struct pt_regs *regs)
+bool handle_irq(struct irq_desc *desc, struct pt_regs *regs)
 {
-	struct irq_desc *desc;
-
 	stack_overflow_check(regs);
 
-	desc = irq_to_desc(irq);
 	if (unlikely(!desc))
 		return false;
 
-	generic_handle_irq_desc(irq, desc);
+	generic_handle_irq_desc(desc->irq, desc);
 	return true;
 }
 
arch/x86/kernel/irqinit.c +3 -5
Index: linux-2.6/arch/x86/kernel/irqinit.c
===================================================================
@@ -83,16 +83,14 @@ static struct irqaction irq2 = {
 	.name = "cascade",
 };
 
-DEFINE_PER_CPU(vector_irq_t, vector_irq) = {
-	[0 ... NR_VECTORS - 1] = -1,
-};
+DEFINE_PER_CPU(vector_desc_t, vector_desc);
 
 int vector_used_by_percpu_irq(unsigned int vector)
 {
 	int cpu;
 
 	for_each_online_cpu(cpu) {
-		if (per_cpu(vector_irq, cpu)[vector] != -1)
+		if (per_cpu(vector_desc, cpu)[vector] != NULL)
 			return 1;
 	}
 
@@ -139,7 +137,7 @@ void __init init_IRQ(void)
 	 * irq's migrate etc.
 	 */
 	for (i = 0; i < nr_legacy_irqs; i++)
-		per_cpu(vector_irq, 0)[IRQ0_VECTOR + i] = i;
+		per_cpu(vector_desc, 0)[IRQ0_VECTOR + i] = irq_to_desc(i);
 
 	x86_init.irqs.intr_init();
 }
arch/x86/kernel/smpboot.c +1 -1
Index: linux-2.6/arch/x86/kernel/smpboot.c
===================================================================
@@ -245,7 +245,7 @@ static void __cpuinit smp_callin(void)
 	/*
 	 * Need to setup vector mappings before we enable interrupts.
 	 */
-	__setup_vector_irq(smp_processor_id());
+	__setup_vector_desc(smp_processor_id());
 	/*
 	 * Get our bogomips.
 	 *
arch/x86/kernel/vmiclock_32.c +1 -1
Index: linux-2.6/arch/x86/kernel/vmiclock_32.c
===================================================================
@@ -236,7 +236,7 @@ void __init vmi_time_init(void)
 	vmi_time_init_clockevent();
 	setup_irq(0, &vmi_clock_action);
 	for_each_possible_cpu(cpu)
-		per_cpu(vector_irq, cpu)[vmi_get_timer_vector()] = 0;
+		per_cpu(vector_desc, cpu)[vmi_get_timer_vector()] = irq_to_desc(0);
 }
 
 #ifdef CONFIG_X86_LOCAL_APIC
arch/x86/lguest/boot.c +6 -1
Index: linux-2.6/arch/x86/lguest/boot.c
===================================================================
@@ -819,7 +819,7 @@ static void __init lguest_init_IRQ(void)
 
 	for (i = FIRST_EXTERNAL_VECTOR; i < NR_VECTORS; i++) {
 		/* Some systems map "vectors" to interrupts weirdly.  Not us! */
-		__get_cpu_var(vector_irq)[i] = i - FIRST_EXTERNAL_VECTOR;
+		__get_cpu_var(vector_desc)[i] = irq_to_desc(i - FIRST_EXTERNAL_VECTOR);
 		if (i != SYSCALL_VECTOR)
 			set_intr_gate(i, interrupt[i - FIRST_EXTERNAL_VECTOR]);
 	}
@@ -842,6 +842,11 @@ static void __init lguest_init_IRQ(void)
 void lguest_setup_irq(unsigned int irq)
 {
 	irq_to_desc_alloc_node(irq, 0);
+	/*
+	 *  for sparseirq, we could get new desc other than legacy irq,
+	 *  so set vector_desc again for that irq
+	 */
+	__get_cpu_var(vector_desc)[irq + FIRST_EXTERNAL_VECTOR] = irq_to_desc(irq);
 	set_irq_chip_and_handler_name(irq, &lguest_irq_controller,
 				      handle_level_irq, "level");
 }
#20 lore raw

arch/x86/kernel/irq_32.c asmlinkage void do_softirq(void)

Quoted 28 lines · Yinghai Lu

Subject: [PATCH] x86: use vector_desc instead of vector_irq

Eric pointed out that radix tree version of irq_to_desc will magnify delay on the path of handle_irq.
use vector_desc to reduce the calling of irq_to_desc.

next step: need to change all ack, mask, umask, eoi for all irq_chip to take irq_desc

-v2: irq should be unsigned in 32bit handle_irq according to Eric
also reset vector_desc for lguest in setup_irq

Index: linux-2.6/arch/x86/kernel/irq_32.c
===================================================================

arch/x86/kernel/irq_32.c +1 -1
@@ -76,7 +76,7 @@ static void call_on_stack(void *func, vo
 }
 
 static inline int
-execute_on_irq_stack(int overflow, struct irq_desc *desc, int irq)
+execute_on_irq_stack(int overflow, struct irq_desc *desc)
 {
 	union irq_ctx *curctx, *irqctx;
 	u32 *isp, arg1, arg2;
@@ -189,24 +189,22 @@ asmlinkage void do_softirq(void)

This looks like it will fail to build here.
Don't you need to update the assembly to use desc->irq instead of the now removed irq parameter?

Quoted 18 lines
arch/x86/kernel/irq_32.c +2 -4
 #else
 static inline int
-execute_on_irq_stack(int overflow, struct irq_desc *desc, int irq) { return 0; }
+execute_on_irq_stack(int overflow, struct irq_desc *desc) { return 0; }
 #endif
 
-bool handle_irq(unsigned irq, struct pt_regs *regs)
+bool handle_irq(struct irq_desc *desc, struct pt_regs *regs)
 {
-	struct irq_desc *desc;
 	int overflow;
 
 	overflow = check_stack_overflow();
 
-	desc = irq_to_desc(irq);
 	if (unlikely(!desc))
 		return false;

arch/x86/kernel/irq_32.c asmlinkage void do_softirq(void) · line 210

Quoted 10 lines
arch/x86/kernel/irq_32.c +2 -2
 
-	if (!execute_on_irq_stack(overflow, desc, irq)) {
+	if (!execute_on_irq_stack(overflow, desc)) {
 		if (unlikely(overflow))
 			print_stack_overflow();
-		desc->handle_irq(irq, desc);
+		desc->handle_irq(desc->irq, desc);
 	}
 
 	return true;

Eric

author
#21 lore raw
Quoted 22 lines · Eric W. Biederman
Quoted 21 lines · Yinghai Lu

Subject: [PATCH] x86: use vector_desc instead of vector_irq

Eric pointed out that radix tree version of irq_to_desc will magnify delay on the path of handle_irq.
use vector_desc to reduce the calling of irq_to_desc.

next step: need to change all ack, mask, umask, eoi for all irq_chip to take irq_desc

-v2: irq should be unsigned in 32bit handle_irq according to Eric
also reset vector_desc for lguest in setup_irq

Index: linux-2.6/arch/x86/kernel/irq_32.c
===================================================================

arch/x86/kernel/irq_32.c +0 -0
@@ -76,7 +76,7 @@ static void call_on_stack(void *func, vo
 }
 
Quoted 11 lines

arch/x86/kernel/irq_32.c asmlinkage void do_softirq(void)

Quoted 7 lines
arch/x86/kernel/irq_32.c +1 -1
 static inline int
-execute_on_irq_stack(int overflow, struct irq_desc *desc, int irq)
+execute_on_irq_stack(int overflow, struct irq_desc *desc)
 {
 	union irq_ctx *curctx, *irqctx;
 	u32 *isp, arg1, arg2;
@@ -189,24 +189,22 @@ asmlinkage void do_softirq(void)

This looks like it will fail to build here.
Don't you need to update the assembly to use desc->irq instead of the now removed irq parameter?

ah, will fix that.

YH

author
#22 lore raw

PATCH 1/3 xen: Remove unnecessary arch specific xen irq functions.

In reply to Eric W. Biederman

From: Eric W. Biederman <[email protected]>

Right now xen's use of the x86 and ia64 handle_irq is just bizarre and very fragile as it is very non-obvious the function exists and is is used by code out in drivers/.... Luckily using handle_irq is completly unnecessary, and we can just use the generic irq apis instead.

This still leaves drivers/xen/events.c as a problematic user of the generic irq apis it has "static struct irq_info irq_info[NR_IRQS]" but that can be fixed some other time.

---
 arch/ia64/include/asm/xen/events.h |    4 ----
 drivers/xen/events.c               |    8 ++++++--
 2 files changed, 6 insertions(+), 6 deletions(-)
arch/ia64/include/asm/xen/events.h +0 -4
Index: linux-2.6/arch/ia64/include/asm/xen/events.h
===================================================================
@@ -36,10 +36,6 @@ static inline int xen_irqs_disabled(stru
 	return !(ia64_psr(regs)->i);
 }
 
-static inline void handle_irq(int irq, struct pt_regs *regs)
-{
-	__do_IRQ(irq);
-}
 #define irq_ctx_init(cpu)	do { } while (0)
 
 #endif /* _ASM_IA64_XEN_EVENTS_H */
drivers/xen/events.c +6 -2
Index: linux-2.6/drivers/xen/events.c
===================================================================
@@ -649,9 +649,13 @@ void xen_evtchn_do_upcall(struct pt_regs
 				int bit_idx = __ffs(pending_bits);
 				int port = (word_idx * BITS_PER_LONG) + bit_idx;
 				int irq = evtchn_to_irq[port];
+				struct irq_desc *desc;
 
-				if (irq != -1)
-					handle_irq(irq, regs);
+				if (irq != -1) {
+					desc = irq_to_desc(irq);
+					if (desc)
+						generic_handle_irq_desc(irq, desc);
+				}
 			}
 		}
 
author
#25 lore raw

PATCH 2/3 x86: use vector_desc instead of vector_irq

In reply to a message not in the archive

Eric pointed out that radix tree version of irq_to_desc will magnify delay on the path of handle_irq.
use vector_desc to reduce the calling of irq_to_desc.

next step: need to change all ack, mask, umask, eoi for all irq_chip to take irq_desc

-v2: irq should be unsigned in 32bit handle_irq according to Eric
also reset vector_desc for lguest in setup_irq
-v3: keep irq in x+execute_on_irq_stack() ...

---
 arch/x86/include/asm/desc.h    |    2 -
 arch/x86/include/asm/hw_irq.h  |   10 ++---
 arch/x86/include/asm/irq.h     |    3 +
 arch/x86/kernel/apic/io_apic.c |   75 ++++++++++++++++++++---------------------
 arch/x86/kernel/irq.c          |   15 +++-----
 arch/x86/kernel/irq_32.c       |   10 ++---
 arch/x86/kernel/irq_64.c       |    7 +--
 arch/x86/kernel/irqinit.c      |    8 +---
 arch/x86/kernel/smpboot.c      |    2 -
 arch/x86/kernel/vmiclock_32.c  |    2 -
 arch/x86/lguest/boot.c         |    7 +++
 11 files changed, 70 insertions(+), 71 deletions(-)
arch/x86/include/asm/desc.h +1 -1
Index: linux-2.6/arch/x86/include/asm/desc.h
===================================================================
@@ -334,7 +334,7 @@ static inline void set_intr_gate(unsigne
 }
 
 extern int first_system_vector;
-/* used_vectors is BITMAP for irq is not managed by percpu vector_irq */
+/* used_vectors is BITMAP for irq is not managed by percpu vector_desc */
 extern unsigned long used_vectors[];
 
 static inline void alloc_system_vector(int vector)
arch/x86/include/asm/hw_irq.h +5 -5
Index: linux-2.6/arch/x86/include/asm/hw_irq.h
===================================================================
@@ -99,7 +99,7 @@ struct irq_cfg {
 };
 
 extern struct irq_cfg *irq_cfg(unsigned int);
-extern int assign_irq_vector(int, struct irq_cfg *, const struct cpumask *);
+extern int assign_irq_vector(struct irq_desc *, struct irq_cfg *, const struct cpumask *);
 extern void send_cleanup_vector(struct irq_cfg *);
 
 struct irq_desc;
@@ -138,17 +138,17 @@ extern asmlinkage void smp_invalidate_in
 
 extern void (*__initconst interrupt[NR_VECTORS-FIRST_EXTERNAL_VECTOR])(void);
 
-typedef int vector_irq_t[NR_VECTORS];
-DECLARE_PER_CPU(vector_irq_t, vector_irq);
+typedef struct irq_desc *vector_desc_t[NR_VECTORS];
+DECLARE_PER_CPU(vector_desc_t, vector_desc);
 
 #ifdef CONFIG_X86_IO_APIC
 extern void lock_vector_lock(void);
 extern void unlock_vector_lock(void);
-extern void __setup_vector_irq(int cpu);
+extern void __setup_vector_desc(int cpu);
 #else
 static inline void lock_vector_lock(void) {}
 static inline void unlock_vector_lock(void) {}
-static inline void __setup_vector_irq(int cpu) {}
+static inline void __setup_vector_desc(int cpu) {}
 #endif
 
 #endif /* !ASSEMBLY_ */
arch/x86/include/asm/irq.h +2 -1
Index: linux-2.6/arch/x86/include/asm/irq.h
===================================================================
@@ -39,7 +39,8 @@ extern void irq_force_complete_move(int)
 
 extern void (*x86_platform_ipi_callback)(void);
 extern void native_init_IRQ(void);
-extern bool handle_irq(unsigned irq, struct pt_regs *regs);
+struct irq_desc;
+extern bool handle_irq(struct irq_desc *desc, struct pt_regs *regs);
 
 extern unsigned int do_IRQ(struct pt_regs *regs);
 
arch/x86/kernel/apic/io_apic.c +37 -38

236 lines not on this page · raw message

arch/x86/kernel/irq.c +7 -8
Index: linux-2.6/arch/x86/kernel/irq.c
===================================================================
@@ -229,19 +229,19 @@ unsigned int __irq_entry do_IRQ(struct p
 
 	/* high bit used in ret_from_ code  */
 	unsigned vector = ~regs->orig_ax;
-	unsigned irq;
+	struct irq_desc *desc;
 
 	exit_idle();
 	irq_enter();
 
-	irq = __get_cpu_var(vector_irq)[vector];
+	desc = __get_cpu_var(vector_desc)[vector];
 
-	if (!handle_irq(irq, regs)) {
+	if (!handle_irq(desc, regs)) {
 		ack_APIC_irq();
 
 		if (printk_ratelimit())
-			pr_emerg("%s: %d.%d No irq handler for vector (irq %d)\n",
-				__func__, smp_processor_id(), vector, irq);
+			pr_emerg("%s: %d.%d No irq handler for vector\n",
+				__func__, smp_processor_id(), vector);
 	}
 
 	irq_exit();
@@ -348,14 +348,13 @@ void fixup_irqs(void)
 	for (vector = FIRST_EXTERNAL_VECTOR; vector < NR_VECTORS; vector++) {
 		unsigned int irr;
 
-		if (__get_cpu_var(vector_irq)[vector] < 0)
+		if (__get_cpu_var(vector_desc)[vector] == NULL)
 			continue;
 
 		irr = apic_read(APIC_IRR + (vector / 32 * 0x10));
 		if (irr  & (1 << (vector % 32))) {
-			irq = __get_cpu_var(vector_irq)[vector];
+			desc = __get_cpu_var(vector_desc)[vector];
 
-			desc = irq_to_desc(irq);
 			raw_spin_lock(&desc->lock);
 			if (desc->chip->retrigger)
 				desc->chip->retrigger(irq);
arch/x86/kernel/irq_32.c +5 -5
Index: linux-2.6/arch/x86/kernel/irq_32.c
===================================================================
@@ -76,7 +76,7 @@ static void call_on_stack(void *func, vo
 }
 
 static inline int
-execute_on_irq_stack(int overflow, struct irq_desc *desc, int irq)
+execute_on_irq_stack(int overflow, struct irq_desc *desc, unsigned int irq)
 {
 	union irq_ctx *curctx, *irqctx;
 	u32 *isp, arg1, arg2;
@@ -189,20 +189,20 @@ asmlinkage void do_softirq(void)
 
 #else
 static inline int
-execute_on_irq_stack(int overflow, struct irq_desc *desc, int irq) { return 0; }
+execute_on_irq_stack(int overflow, struct irq_desc *desc, unsigned int irq) { return 0; }
 #endif
 
-bool handle_irq(unsigned irq, struct pt_regs *regs)
+bool handle_irq(struct irq_desc *desc, struct pt_regs *regs)
 {
-	struct irq_desc *desc;
 	int overflow;
+	unsigned int irq;
 
 	overflow = check_stack_overflow();
 
-	desc = irq_to_desc(irq);
 	if (unlikely(!desc))
 		return false;
 
+	irq = desc->irq;
 	if (!execute_on_irq_stack(overflow, desc, irq)) {
 		if (unlikely(overflow))
 			print_stack_overflow();
arch/x86/kernel/irq_64.c +2 -5
Index: linux-2.6/arch/x86/kernel/irq_64.c
===================================================================
@@ -48,17 +48,14 @@ static inline void stack_overflow_check(
 #endif
 }
 
-bool handle_irq(unsigned irq, struct pt_regs *regs)
+bool handle_irq(struct irq_desc *desc, struct pt_regs *regs)
 {
-	struct irq_desc *desc;
-
 	stack_overflow_check(regs);
 
-	desc = irq_to_desc(irq);
 	if (unlikely(!desc))
 		return false;
 
-	generic_handle_irq_desc(irq, desc);
+	generic_handle_irq_desc(desc->irq, desc);
 	return true;
 }
 
arch/x86/kernel/irqinit.c +3 -5
Index: linux-2.6/arch/x86/kernel/irqinit.c
===================================================================
@@ -83,16 +83,14 @@ static struct irqaction irq2 = {
 	.name = "cascade",
 };
 
-DEFINE_PER_CPU(vector_irq_t, vector_irq) = {
-	[0 ... NR_VECTORS - 1] = -1,
-};
+DEFINE_PER_CPU(vector_desc_t, vector_desc);
 
 int vector_used_by_percpu_irq(unsigned int vector)
 {
 	int cpu;
 
 	for_each_online_cpu(cpu) {
-		if (per_cpu(vector_irq, cpu)[vector] != -1)
+		if (per_cpu(vector_desc, cpu)[vector] != NULL)
 			return 1;
 	}
 
@@ -139,7 +137,7 @@ void __init init_IRQ(void)
 	 * irq's migrate etc.
 	 */
 	for (i = 0; i < nr_legacy_irqs; i++)
-		per_cpu(vector_irq, 0)[IRQ0_VECTOR + i] = i;
+		per_cpu(vector_desc, 0)[IRQ0_VECTOR + i] = irq_to_desc(i);
 
 	x86_init.irqs.intr_init();
 }
arch/x86/kernel/smpboot.c +1 -1
Index: linux-2.6/arch/x86/kernel/smpboot.c
===================================================================
@@ -245,7 +245,7 @@ static void __cpuinit smp_callin(void)
 	/*
 	 * Need to setup vector mappings before we enable interrupts.
 	 */
-	__setup_vector_irq(smp_processor_id());
+	__setup_vector_desc(smp_processor_id());
 	/*
 	 * Get our bogomips.
 	 *
arch/x86/kernel/vmiclock_32.c +1 -1
Index: linux-2.6/arch/x86/kernel/vmiclock_32.c
===================================================================
@@ -236,7 +236,7 @@ void __init vmi_time_init(void)
 	vmi_time_init_clockevent();
 	setup_irq(0, &vmi_clock_action);
 	for_each_possible_cpu(cpu)
-		per_cpu(vector_irq, cpu)[vmi_get_timer_vector()] = 0;
+		per_cpu(vector_desc, cpu)[vmi_get_timer_vector()] = irq_to_desc(0);
 }
 
 #ifdef CONFIG_X86_LOCAL_APIC
arch/x86/lguest/boot.c +6 -1
Index: linux-2.6/arch/x86/lguest/boot.c
===================================================================
@@ -819,7 +819,7 @@ static void __init lguest_init_IRQ(void)
 
 	for (i = FIRST_EXTERNAL_VECTOR; i < NR_VECTORS; i++) {
 		/* Some systems map "vectors" to interrupts weirdly.  Not us! */
-		__get_cpu_var(vector_irq)[i] = i - FIRST_EXTERNAL_VECTOR;
+		__get_cpu_var(vector_desc)[i] = irq_to_desc(i - FIRST_EXTERNAL_VECTOR);
 		if (i != SYSCALL_VECTOR)
 			set_intr_gate(i, interrupt[i - FIRST_EXTERNAL_VECTOR]);
 	}
@@ -842,6 +842,11 @@ static void __init lguest_init_IRQ(void)
 void lguest_setup_irq(unsigned int irq)
 {
 	irq_to_desc_alloc_node(irq, 0);
+	/*
+	 *  for sparseirq, we could get new desc other than legacy irq,
+	 *  so set vector_desc again for that irq
+	 */
+	__get_cpu_var(vector_desc)[irq + FIRST_EXTERNAL_VECTOR] = irq_to_desc(irq);
 	set_irq_chip_and_handler_name(irq, &lguest_irq_controller,
 				      handle_level_irq, "level");
 }
author
#38 lore raw

RFC PATCH 3/3 genericirq: change ack/mask in irq_chip to take irq_desc in addition to irq

In reply to a message not in the archive

will have

void            (*ack)(unsigned int irq, struct irq_desc *desc);
void            (*mask)(unsigned int irq, struct irq_desc *desc);
void            (*mask_ack)(unsigned int irq, struct irq_desc *desc);
void            (*unmask)(unsigned int irq, struct irq_desc *desc);
void            (*eoi)(unsigned int irq, struct irq_desc *desc);

so for sparseirq with raidix tree, we don't call extra irq_to_desc, and could use desc directly

---

---
 Documentation/DocBook/genericirq.tmpl            |   12 +++---
 arch/alpha/kernel/irq_alpha.c                    |    3 +
 arch/alpha/kernel/irq_i8259.c                    |    7 +++
 arch/alpha/kernel/irq_pyxis.c                    |    2 -
 arch/alpha/kernel/irq_srm.c                      |    8 +++-
 arch/alpha/kernel/sys_alcor.c                    |    2 -
 arch/alpha/kernel/sys_cabriolet.c                |    8 +++-
 arch/alpha/kernel/sys_dp264.c                    |   16 +++++++-
 arch/alpha/kernel/sys_eb64p.c                    |    8 +++-
 arch/alpha/kernel/sys_eiger.c                    |    8 +++-
 arch/alpha/kernel/sys_jensen.c                   |    2 -
 arch/alpha/kernel/sys_marvel.c                   |   18 +++++++---
 arch/alpha/kernel/sys_mikasa.c                   |    8 +++-
 arch/alpha/kernel/sys_noritake.c                 |    8 +++-
 arch/alpha/kernel/sys_rawhide.c                  |    2 -
 arch/alpha/kernel/sys_rx164.c                    |    8 +++-
 arch/alpha/kernel/sys_sable.c                    |    2 -
 arch/alpha/kernel/sys_takara.c                   |    8 +++-
 arch/alpha/kernel/sys_titan.c                    |    8 +++-
 arch/alpha/kernel/sys_wildfire.c                 |    2 -
 arch/arm/common/gic.c                            |   10 ++---
 arch/arm/common/it8152.c                         |    4 +-
 arch/arm/common/locomo.c                         |   32 ++++++++---------
 arch/arm/common/sa1111.c                         |   14 +++----
 arch/arm/common/vic.c                            |    6 +--
 arch/arm/kernel/ecard.c                          |   10 ++---
 arch/arm/mach-aaec2000/core.c                    |    6 +--
 arch/arm/mach-at91/gpio.c                        |    8 ++--
 arch/arm/mach-at91/irq.c                         |    4 +-
 arch/arm/mach-bcmring/irq.c                      |   12 +++---
 arch/arm/mach-clps711x/irq.c                     |   12 +++---
 arch/arm/mach-davinci/cp_intc.c                  |    6 +--
 arch/arm/mach-davinci/gpio.c                     |    6 +--
 arch/arm/mach-davinci/irq.c                      |    6 +--
 arch/arm/mach-dove/irq.c                         |    6 +--
 arch/arm/mach-ebsa110/core.c                     |    4 +-
 arch/arm/mach-ep93xx/core.c                      |    8 ++--
 arch/arm/mach-footbridge/common.c                |    4 +-
 arch/arm/mach-footbridge/isa-irq.c               |   12 +++---
 arch/arm/mach-gemini/gpio.c                      |    6 +--
 arch/arm/mach-gemini/irq.c                       |    6 +--
 arch/arm/mach-h720x/common.c                     |   10 ++---
 arch/arm/mach-h720x/cpu-h7202.c                  |    4 +-
 arch/arm/mach-integrator/integrator_ap.c         |    4 +-
 arch/arm/mach-integrator/integrator_cp.c         |   12 +++---
 arch/arm/mach-iop13xx/irq.c                      |   16 ++++----
 arch/arm/mach-iop13xx/msi.c                      |    2 -
 arch/arm/mach-iop32x/irq.c                       |    4 +-
 arch/arm/mach-ixp2000/core.c                     |   18 +++++-----
 arch/arm/mach-ixp2000/ixdp2x00.c                 |    8 ++--
 arch/arm/mach-ixp2000/ixdp2x01.c                 |    8 ++--
 arch/arm/mach-ixp23xx/core.c                     |   16 ++++----
 arch/arm/mach-ixp23xx/ixdp2351.c                 |   16 ++++----
 arch/arm/mach-ixp4xx/common.c                    |    6 +--
 arch/arm/mach-ks8695/irq.c                       |    6 +--
 arch/arm/mach-l7200/core.c                       |    4 +-
 arch/arm/mach-lh7a40x/arch-kev7a400.c            |    6 +--
 arch/arm/mach-lh7a40x/arch-lpd7a40x.c            |   10 ++---
 arch/arm/mach-lh7a40x/irq-lh7a400.c              |    6 +--
 arch/arm/mach-lh7a40x/irq-lh7a404.c              |   12 +++---
 arch/arm/mach-lh7a40x/irq-lpd7a40x.c             |   10 ++---
 arch/arm/mach-mmp/irq.c                          |    4 +-
 arch/arm/mach-mx3/mx31ads.c                      |    6 +--
 arch/arm/mach-mx3/mx31pdk.c                      |    6 +--
 arch/arm/mach-netx/generic.c                     |    6 +--
 arch/arm/mach-nomadik/gpio.c                     |    6 +--
 arch/arm/mach-ns9xxx/board-a9m9750dev.c          |   12 +++---
 arch/arm/mach-ns9xxx/irq.c                       |   12 +++---
 arch/arm/mach-omap1/fpga.c                       |    8 ++--
 arch/arm/mach-omap1/irq.c                        |   12 +++---
 arch/arm/mach-pnx4008/irq.c                      |    6 +--
 arch/arm/mach-pxa/balloon3.c                     |    6 +--
 arch/arm/mach-pxa/irq.c                          |   10 ++---
 arch/arm/mach-pxa/lpd270.c                       |    4 +-
 arch/arm/mach-pxa/lubbock.c                      |    4 +-
 arch/arm/mach-pxa/mainstone.c                    |    4 +-
 arch/arm/mach-pxa/pcm990-baseboard.c             |    4 +-
 arch/arm/mach-pxa/pxa3xx.c                       |    6 +--
 arch/arm/mach-pxa/viper.c                        |    6 +--
 arch/arm/mach-pxa/zeus.c                         |    8 ++--
 arch/arm/mach-rpc/irq.c                          |   18 +++++-----
 arch/arm/mach-s3c2410/bast-irq.c                 |   12 ++----
 arch/arm/mach-s3c2412/irq.c                      |   14 +++----
 arch/arm/mach-s3c2440/irq.c                      |    6 +--
 arch/arm/mach-s3c2443/irq.c                      |   30 ++++++++--------
 arch/arm/mach-sa1100/irq.c                       |   16 ++++----
 arch/arm/mach-sa1100/neponset.c                  |    8 ++--
 arch/arm/mach-shark/irq.c                        |    8 ++--
 arch/arm/mach-stmp378x/stmp378x.c                |    6 +--
 arch/arm/mach-stmp37xx/stmp37xx.c                |    6 +--
 arch/arm/mach-versatile/core.c                   |    4 +-
 arch/arm/mach-w90x900/irq.c                      |    6 +--
 arch/arm/plat-mxc/gpio.c                         |    6 +--
 arch/arm/plat-mxc/irq.c                          |    4 +-
 arch/arm/plat-omap/gpio.c                        |   18 +++++-----
 arch/arm/plat-orion/gpio.c                       |    6 +--
 arch/arm/plat-orion/irq.c                        |    4 +-
 arch/arm/plat-pxa/gpio.c                         |    6 +--
 arch/arm/plat-s3c24xx/irq.c                      |   38 ++++++++++-----------
 arch/arm/plat-s3c24xx/s3c244x-irq.c              |    6 +--
 arch/arm/plat-s3c64xx/irq-eint.c                 |   12 +++---
 arch/arm/plat-s3c64xx/irq.c                      |   14 +++----
 arch/arm/plat-s5pc1xx/irq-eint.c                 |   24 ++++++-------
 arch/arm/plat-s5pc1xx/irq-gpio.c                 |   12 +++---
 arch/arm/plat-s5pc1xx/irq.c                      |   14 +++----
 arch/arm/plat-stmp3xxx/irq.c                     |    2 -
 arch/arm/plat-stmp3xxx/pinmux.c                  |    6 +--
 arch/avr32/mach-at32ap/extint.c                  |    8 ++--
 arch/avr32/mach-at32ap/pio.c                     |    4 +-
 arch/blackfin/include/asm/ipipe.h                |    4 +-
 arch/blackfin/mach-common/ints-priority.c        |   41 ++++++++++++++++-------
 arch/cris/arch-v10/kernel/irq.c                  |    2 -
 arch/frv/kernel/irq-mb93091.c                    |    8 ++--
 arch/frv/kernel/irq-mb93093.c                    |    8 ++--
 arch/frv/kernel/irq-mb93493.c                    |    6 +--
 arch/frv/kernel/irq.c                            |    8 ++--
 arch/ia64/hp/sim/hpsim_irq.c                     |    6 ++-
 arch/ia64/kernel/iosapic.c                       |   27 +++++++++++----
 arch/ia64/kernel/irq_lsapic.c                    |    7 +++
 arch/ia64/kernel/msi_ia64.c                      |    2 -
 arch/ia64/sn/kernel/irq.c                        |    6 +--
 arch/ia64/sn/kernel/msi_sn.c                     |    2 -
 arch/m32r/platforms/m32104ut/setup.c             |    2 -
 arch/m32r/platforms/m32700ut/setup.c             |    2 -
 arch/m32r/platforms/mappi/setup.c                |    2 -
 arch/m32r/platforms/mappi2/setup.c               |    2 -
 arch/m32r/platforms/mappi3/setup.c               |    2 -
 arch/m32r/platforms/oaks32r/setup.c              |    2 -
 arch/m32r/platforms/opsput/setup.c               |    8 ++--
 arch/m32r/platforms/usrv/setup.c                 |    4 +-
 arch/m68knommu/platform/5249/intc2.c             |    6 +--
 arch/m68knommu/platform/5272/intc.c              |    6 +--
 arch/m68knommu/platform/68328/ints.c             |    4 +-
 arch/m68knommu/platform/68360/ints.c             |    6 +--
 arch/m68knommu/platform/coldfire/intc-2.c        |    4 +-
 arch/m68knommu/platform/coldfire/intc-simr.c     |    4 +-
 arch/m68knommu/platform/coldfire/intc.c          |    4 +-
 arch/microblaze/kernel/intc.c                    |    8 ++--
 arch/mips/alchemy/common/irq.c                   |   16 ++++----
 arch/mips/alchemy/devboards/pb1200/irqmap.c      |    6 +--
 arch/mips/ar7/irq.c                              |   12 +++---
 arch/mips/bcm63xx/irq.c                          |   17 ++++++---
 arch/mips/cavium-octeon/octeon-irq.c             |   40 +++++++++++++++-------
 arch/mips/dec/ioasic-irq.c                       |    6 +--
 arch/mips/dec/kn02-irq.c                         |    6 +--
 arch/mips/emma/markeins/irq.c                    |   16 ++++----
 arch/mips/jazz/irq.c                             |    4 +-
 arch/mips/kernel/i8259.c                         |   16 ++++++--
 arch/mips/kernel/irq-gic.c                       |    6 +--
 arch/mips/kernel/irq-gt641xx.c                   |    8 ++--
 arch/mips/kernel/irq-msc01.c                     |    8 ++--
 arch/mips/kernel/irq-rm7000.c                    |    4 +-
 arch/mips/kernel/irq-rm9000.c                    |    4 +-
 arch/mips/kernel/irq_cpu.c                       |    6 +--
 arch/mips/kernel/irq_txx9.c                      |    6 +--
 arch/mips/lasat/interrupt.c                      |    4 +-
 arch/mips/loongson/common/bonito-irq.c           |    4 +-
 arch/mips/nxp/pnx833x/common/interrupts.c        |    4 +-
 arch/mips/nxp/pnx8550/common/int.c               |    4 +-
 arch/mips/pmc-sierra/msp71xx/msp_irq_cic.c       |    4 +-
 arch/mips/pmc-sierra/msp71xx/msp_irq_slp.c       |    6 +--
 arch/mips/powertv/asic/irq_asic.c                |    4 +-
 arch/mips/rb532/irq.c                            |    6 +--
 arch/mips/sgi-ip22/ip22-int.c                    |   16 ++++----
 arch/mips/sgi-ip27/ip27-irq.c                    |    4 +-
 arch/mips/sgi-ip27/ip27-timer.c                  |    4 +-
 arch/mips/sgi-ip32/ip32-irq.c                    |   22 ++++++------
 arch/mips/sibyte/bcm1480/irq.c                   |   12 +++---
 arch/mips/sibyte/sb1250/irq.c                    |   12 +++---
 arch/mips/sni/a20r.c                             |    4 +-
 arch/mips/sni/pcimt.c                            |    4 +-
 arch/mips/sni/pcit.c                             |    4 +-
 arch/mips/sni/rm200.c                            |   12 +++---
 arch/mips/txx9/generic/irq_tx4939.c              |    4 +-
 arch/mips/txx9/jmr3927/irq.c                     |    4 +-
 arch/mips/txx9/rbtx4927/irq.c                    |    8 ++--
 arch/mips/txx9/rbtx4938/irq.c                    |    8 ++--
 arch/mips/txx9/rbtx4939/irq.c                    |    4 +-
 arch/mips/vr41xx/common/icu.c                    |    8 ++--
 arch/mips/vr41xx/common/irq.c                    |    8 ++--
 arch/mn10300/kernel/irq.c                        |   26 ++++++++++----
 arch/mn10300/kernel/mn10300-serial.c             |    4 +-
 arch/parisc/include/asm/irq.h                    |    4 +-
 arch/parisc/kernel/irq.c                         |    4 +-
 arch/powerpc/include/asm/mpic.h                  |    6 +--
 arch/powerpc/include/asm/qe_ic.h                 |    6 +--
 arch/powerpc/kernel/crash.c                      |    2 -
 arch/powerpc/platforms/512x/mpc5121_ads_cpld.c   |    4 +-
 arch/powerpc/platforms/52xx/media5200.c          |   10 ++---
 arch/powerpc/platforms/52xx/mpc52xx_pic.c        |   10 ++---
 arch/powerpc/platforms/82xx/pq2ads-pci-pic.c     |    4 +-
 arch/powerpc/platforms/85xx/ksi8560.c            |    2 -
 arch/powerpc/platforms/85xx/mpc85xx_ads.c        |    2 -
 arch/powerpc/platforms/85xx/mpc85xx_ds.c         |    2 -
 arch/powerpc/platforms/85xx/sbc8560.c            |    2 -
 arch/powerpc/platforms/85xx/socrates_fpga_pic.c  |   12 +++---
 arch/powerpc/platforms/85xx/stx_gp3.c            |    2 -
 arch/powerpc/platforms/85xx/tqm85xx.c            |    2 -
 arch/powerpc/platforms/86xx/gef_pic.c            |    8 ++--
 arch/powerpc/platforms/86xx/pic.c                |    2 -
 arch/powerpc/platforms/8xx/m8xx_setup.c          |    4 +-
 arch/powerpc/platforms/cell/axon_msi.c           |    9 +++--
 arch/powerpc/platforms/cell/beat_interrupt.c     |    4 +-
 arch/powerpc/platforms/cell/interrupt.c          |   12 +++---
 arch/powerpc/platforms/cell/setup.c              |    2 -
 arch/powerpc/platforms/cell/spider-pic.c         |    8 ++--
 arch/powerpc/platforms/chrp/setup.c              |    2 -
 arch/powerpc/platforms/embedded6xx/flipper-pic.c |    8 ++--
 arch/powerpc/platforms/embedded6xx/hlwd-pic.c    |   14 +++----
 arch/powerpc/platforms/iseries/irq.c             |    6 +--
 arch/powerpc/platforms/powermac/pic.c            |   10 ++---
 arch/powerpc/platforms/ps3/interrupt.c           |    6 +--
 arch/powerpc/platforms/pseries/setup.c           |    2 -
 arch/powerpc/platforms/pseries/xics.c            |    8 ++--
 arch/powerpc/sysdev/cpm1.c                       |    6 +--
 arch/powerpc/sysdev/cpm2_pic.c                   |    8 ++--
 arch/powerpc/sysdev/fsl_msi.c                    |   12 +++---
 arch/powerpc/sysdev/i8259.c                      |    6 +--
 arch/powerpc/sysdev/ipic.c                       |    8 ++--
 arch/powerpc/sysdev/mpc8xx_pic.c                 |    8 ++--
 arch/powerpc/sysdev/mpic.c                       |   16 ++++----
 arch/powerpc/sysdev/mpic_pasemi_msi.c            |    4 +-
 arch/powerpc/sysdev/mpic_u3msi.c                 |   19 ++++++----
 arch/powerpc/sysdev/mv64x60_pic.c                |   14 +++----
 arch/powerpc/sysdev/qe_lib/qe_ic.c               |    4 +-
 arch/powerpc/sysdev/tsi108_pci.c                 |   10 ++---
 arch/powerpc/sysdev/uic.c                        |   16 ++++----
 arch/powerpc/sysdev/xilinx_intc.c                |   10 ++---
 arch/score/kernel/irq.c                          |    4 +-
 arch/sh/boards/mach-cayman/irq.c                 |    6 +--
 arch/sh/boards/mach-dreamcast/irq.c              |    6 +--
 arch/sh/boards/mach-landisk/irq.c                |    4 +-
 arch/sh/boards/mach-microdev/irq.c               |   14 +++----
 arch/sh/boards/mach-se/7206/irq.c                |    6 +--
 arch/sh/boards/mach-se/7343/irq.c                |    4 +-
 arch/sh/boards/mach-se/7722/irq.c                |    4 +-
 arch/sh/boards/mach-se/7724/irq.c                |    4 +-
 arch/sh/boards/mach-systemh/irq.c                |   14 +++----
 arch/sh/cchips/hd6446x/hd64461.c                 |    8 ++--
 arch/sh/kernel/cpu/irq/imask.c                   |    4 +-
 arch/sh/kernel/cpu/irq/intc-sh5.c                |   14 +++----
 arch/sparc/kernel/irq_64.c                       |    6 +--
 arch/sparc/kernel/pci_msi.c                      |   13 ++++++-
 arch/um/kernel/irq.c                             |    8 +++-

38 lines not shown · raw message

Documentation/DocBook/genericirq.tmpl +6 -6
Index: linux-2.6/Documentation/DocBook/genericirq.tmpl
===================================================================
@@ -235,27 +235,27 @@
 		<programlisting>
 default_enable(irq)
 {
-	desc->chip->unmask(irq);
+	desc->chip->unmask(irq, desc);
 }
 
 default_disable(irq)
 {
 	if (!delay_disable(irq))
-		desc->chip->mask(irq);
+		desc->chip->mask(irq, desc);
 }
 
 default_ack(irq)
 {
-	chip->ack(irq);
+	chip->ack(irq, desc);
 }
 
 default_mask_ack(irq)
 {
 	if (chip->mask_ack) {
-		chip->mask_ack(irq);
+		chip->mask_ack(irq, irq_to_desc(irq));
 	} else {
-		chip->mask(irq);
-		chip->ack(irq);
+		chip->mask(irq, irq_to_desc(irq));
+		chip->ack(irq, irq_to_desc(irq));
 	}
 }
 
arch/alpha/kernel/irq_alpha.c +2 -1
Index: linux-2.6/arch/alpha/kernel/irq_alpha.c
===================================================================
@@ -219,6 +219,7 @@ process_mcheck_info(unsigned long vector
  */
 
 static void rtc_enable_disable(unsigned int irq) { }
+static void rtc_enable_disable_desc(unsigned int irq, struct irq_desc *desc) { }
 static unsigned int rtc_startup(unsigned int irq) { return 0; }
 
 struct irqaction timer_irqaction = {
@@ -233,7 +234,7 @@ static struct irq_chip rtc_irq_type = {
 	.shutdown	= rtc_enable_disable,
 	.enable		= rtc_enable_disable,
 	.disable	= rtc_enable_disable,
-	.ack		= rtc_enable_disable,
+	.ack		= rtc_enable_disable_desc,
 	.end		= rtc_enable_disable,
 };
 
arch/alpha/kernel/irq_i8259.c +6 -1
Index: linux-2.6/arch/alpha/kernel/irq_i8259.c
===================================================================
@@ -69,6 +69,11 @@ i8259a_mask_and_ack_irq(unsigned int irq
 	spin_unlock(&i8259_irq_lock);
 }
 
+static void i8259a_mask_and_ack_irq_desc(unsigned int irq, struct irq_desc *desc)
+{
+	i8259a_mask_and_ack_irq(irq);
+}
+
 unsigned int
 i8259a_startup_irq(unsigned int irq)
 {
@@ -89,7 +94,7 @@ struct irq_chip i8259a_irq_type = {
 	.shutdown	= i8259a_disable_irq,
 	.enable		= i8259a_enable_irq,
 	.disable	= i8259a_disable_irq,
-	.ack		= i8259a_mask_and_ack_irq,
+	.ack		= i8259a_mask_and_ack_irq_desc,
 	.end		= i8259a_end_irq,
 };
 
arch/alpha/kernel/irq_pyxis.c +1 -1
Index: linux-2.6/arch/alpha/kernel/irq_pyxis.c
===================================================================
@@ -55,7 +55,7 @@ pyxis_end_irq(unsigned int irq)
 }
 
 static void
-pyxis_mask_and_ack_irq(unsigned int irq)
+pyxis_mask_and_ack_irq(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned long bit = 1UL << (irq - 16);
 	unsigned long mask = cached_irq_mask &= ~bit;
arch/alpha/kernel/irq_srm.c +7 -1
Index: linux-2.6/arch/alpha/kernel/irq_srm.c
===================================================================
@@ -33,6 +33,12 @@ srm_disable_irq(unsigned int irq)
 	spin_unlock(&srm_irq_lock);
 }
 
+static void
+srm_disable_irq_desc(unsigned int irq, struct irq_desc *desc)
+{
+	srm_disable_irq(irq);
+}
+
 static unsigned int
 srm_startup_irq(unsigned int irq)
 {
@@ -54,7 +60,7 @@ static struct irq_chip srm_irq_type = {
 	.shutdown	= srm_disable_irq,
 	.enable		= srm_enable_irq,
 	.disable	= srm_disable_irq,
-	.ack		= srm_disable_irq,
+	.ack		= srm_disable_irq_desc,
 	.end		= srm_end_irq,
 };
 
arch/alpha/kernel/sys_alcor.c +1 -1
Index: linux-2.6/arch/alpha/kernel/sys_alcor.c
===================================================================
@@ -73,7 +73,7 @@ alcor_startup_irq(unsigned int irq)
 }
 
 static void
-alcor_isa_mask_and_ack_irq(unsigned int irq)
+alcor_isa_mask_and_ack_irq(unsigned int irq, struct irq_desc *desc)
 {
 	i8259a_mask_and_ack_irq(irq);
 
arch/alpha/kernel/sys_cabriolet.c +7 -1
Index: linux-2.6/arch/alpha/kernel/sys_cabriolet.c
===================================================================
@@ -57,6 +57,12 @@ cabriolet_disable_irq(unsigned int irq)
 	cabriolet_update_irq_hw(irq, cached_irq_mask |= 1UL << irq);
 }
 
+static void
+cabriolet_disable_irq_desc(unsigned int irq, struct irq_desc *desc)
+{
+	cabriolet_disable_irq(irq);
+}
+
 static unsigned int
 cabriolet_startup_irq(unsigned int irq)
 { 
@@ -77,7 +83,7 @@ static struct irq_chip cabriolet_irq_typ
 	.shutdown	= cabriolet_disable_irq,
 	.enable		= cabriolet_enable_irq,
 	.disable	= cabriolet_disable_irq,
-	.ack		= cabriolet_disable_irq,
+	.ack		= cabriolet_disable_irq_desc,
 	.end		= cabriolet_end_irq,
 };
 
arch/alpha/kernel/sys_dp264.c +14 -2
Index: linux-2.6/arch/alpha/kernel/sys_dp264.c
===================================================================
@@ -115,6 +115,12 @@ dp264_disable_irq(unsigned int irq)
 	spin_unlock(&dp264_irq_lock);
 }
 
+static void
+dp264_disable_irq_desc(unsigned int irq, struct irq_desc *desc)
+{
+	dp264_disable_irq(irq);
+}
+
 static unsigned int
 dp264_startup_irq(unsigned int irq)
 { 
@@ -147,6 +153,12 @@ clipper_disable_irq(unsigned int irq)
 	spin_unlock(&dp264_irq_lock);
 }
 
+static void
+clipper_disable_irq_desc(unsigned int irq, struct irq_desc *desc)
+{
+	clipper_disable_irq(irq);
+}
+
 static unsigned int
 clipper_startup_irq(unsigned int irq)
 { 
@@ -204,7 +216,7 @@ static struct irq_chip dp264_irq_type =
 	.shutdown	= dp264_disable_irq,
 	.enable		= dp264_enable_irq,
 	.disable	= dp264_disable_irq,
-	.ack		= dp264_disable_irq,
+	.ack		= dp264_disable_irq_desc,
 	.end		= dp264_end_irq,
 	.set_affinity	= dp264_set_affinity,
 };
@@ -215,7 +227,7 @@ static struct irq_chip clipper_irq_type
 	.shutdown	= clipper_disable_irq,
 	.enable		= clipper_enable_irq,
 	.disable	= clipper_disable_irq,
-	.ack		= clipper_disable_irq,
+	.ack		= clipper_disable_irq_desc,
 	.end		= clipper_end_irq,
 	.set_affinity	= clipper_set_affinity,
 };
arch/alpha/kernel/sys_eb64p.c +7 -1
Index: linux-2.6/arch/alpha/kernel/sys_eb64p.c
===================================================================
@@ -55,6 +55,12 @@ eb64p_disable_irq(unsigned int irq)
 	eb64p_update_irq_hw(irq, cached_irq_mask |= 1 << irq);
 }
 
+static void
+eb64p_disable_irq_desc(unsigned int irq, struct irq_desc *desc)
+{
+	eb64p_disable_irq(irq);
+}
+
 static unsigned int
 eb64p_startup_irq(unsigned int irq)
 {
@@ -75,7 +81,7 @@ static struct irq_chip eb64p_irq_type =
 	.shutdown	= eb64p_disable_irq,
 	.enable		= eb64p_enable_irq,
 	.disable	= eb64p_disable_irq,
-	.ack		= eb64p_disable_irq,
+	.ack		= eb64p_disable_irq_desc,
 	.end		= eb64p_end_irq,
 };
 
arch/alpha/kernel/sys_eiger.c +7 -1
Index: linux-2.6/arch/alpha/kernel/sys_eiger.c
===================================================================
@@ -66,6 +66,12 @@ eiger_disable_irq(unsigned int irq)
 	eiger_update_irq_hw(irq, mask);
 }
 
+static void
+eiger_disable_irq_desc(unsigned int irq, struct irq_desc *desc)
+{
+	eiger_disable_irq(irq);
+}
+
 static unsigned int
 eiger_startup_irq(unsigned int irq)
 {
@@ -86,7 +92,7 @@ static struct irq_chip eiger_irq_type =
 	.shutdown	= eiger_disable_irq,
 	.enable		= eiger_enable_irq,
 	.disable	= eiger_disable_irq,
-	.ack		= eiger_disable_irq,
+	.ack		= eiger_disable_irq_desc,
 	.end		= eiger_end_irq,
 };
 
arch/alpha/kernel/sys_jensen.c +1 -1
Index: linux-2.6/arch/alpha/kernel/sys_jensen.c
===================================================================
@@ -103,7 +103,7 @@ jensen_local_disable(unsigned int irq)
 }
 
 static void
-jensen_local_ack(unsigned int irq)
+jensen_local_ack(unsigned int irq, struct irq_desc *desc)
 {
 	/* the parport is really hw IRQ 1, silly Jensen.  */
 	if (irq == 7)
arch/alpha/kernel/sys_marvel.c +14 -4
Index: linux-2.6/arch/alpha/kernel/sys_marvel.c
===================================================================
@@ -143,7 +143,12 @@ io7_disable_irq(unsigned int irq)
 	spin_unlock(&io7->irq_lock);
 }
 
-static unsigned int
+static void
+io7_disable_irq_desc(unsigned int irq, struct irq_desc *desc)
+{
+	io7_disable_irq(irq)
+}
+
 io7_startup_irq(unsigned int irq)
 {
 	io7_enable_irq(irq);
@@ -163,6 +168,11 @@ marvel_irq_noop(unsigned int irq)
 	return; 
 }
 
+static void
+marvel_irq_noop_desc(unsigned int irq, struct irq_desc *desc)
+{
+}
+
 static unsigned int
 marvel_irq_noop_return(unsigned int irq) 
 { 
@@ -175,7 +185,7 @@ static struct irq_chip marvel_legacy_irq
 	.shutdown	= marvel_irq_noop,
 	.enable		= marvel_irq_noop,
 	.disable	= marvel_irq_noop,
-	.ack		= marvel_irq_noop,
+	.ack		= marvel_irq_noop_desc,
 	.end		= marvel_irq_noop,
 };
 
@@ -185,7 +195,7 @@ static struct irq_chip io7_lsi_irq_type
 	.shutdown	= io7_disable_irq,
 	.enable		= io7_enable_irq,
 	.disable	= io7_disable_irq,
-	.ack		= io7_disable_irq,
+	.ack		= io7_disable_irq_desc,
 	.end		= io7_end_irq,
 };
 
@@ -195,7 +205,7 @@ static struct irq_chip io7_msi_irq_type
 	.shutdown	= io7_disable_irq,
 	.enable		= io7_enable_irq,
 	.disable	= io7_disable_irq,
-	.ack		= marvel_irq_noop,
+	.ack		= marvel_irq_noop_desc,
 	.end		= io7_end_irq,
 };
 
arch/alpha/kernel/sys_mikasa.c +7 -1
Index: linux-2.6/arch/alpha/kernel/sys_mikasa.c
===================================================================
@@ -54,6 +54,12 @@ mikasa_disable_irq(unsigned int irq)
 	mikasa_update_irq_hw(cached_irq_mask &= ~(1 << (irq - 16)));
 }
 
+static void
+mikasa_disable_irq_desc(unsigned int irq, struct irq_desc *desc)
+{
+	mikasa_disable_irq(irq);
+}
+
 static unsigned int
 mikasa_startup_irq(unsigned int irq)
 {
@@ -74,7 +80,7 @@ static struct irq_chip mikasa_irq_type =
 	.shutdown	= mikasa_disable_irq,
 	.enable		= mikasa_enable_irq,
 	.disable	= mikasa_disable_irq,
-	.ack		= mikasa_disable_irq,
+	.ack		= mikasa_disable_irq_desc,
 	.end		= mikasa_end_irq,
 };
 
arch/alpha/kernel/sys_noritake.c +7 -1
Index: linux-2.6/arch/alpha/kernel/sys_noritake.c
===================================================================
@@ -59,6 +59,12 @@ noritake_disable_irq(unsigned int irq)
 	noritake_update_irq_hw(irq, cached_irq_mask &= ~(1 << (irq - 16)));
 }
 
+static void
+noritake_disable_irq_desc(unsigned int irq, struct irq_desc *desc)
+{
+	noritake_disable_irq(irq);
+}
+
 static unsigned int
 noritake_startup_irq(unsigned int irq)
 {
@@ -79,7 +85,7 @@ static struct irq_chip noritake_irq_type
 	.shutdown	= noritake_disable_irq,
 	.enable		= noritake_enable_irq,
 	.disable	= noritake_disable_irq,
-	.ack		= noritake_disable_irq,
+	.ack		= noritake_disable_irq_desc,
 	.end		= noritake_end_irq,
 };
 
arch/alpha/kernel/sys_rawhide.c +1 -1
Index: linux-2.6/arch/alpha/kernel/sys_rawhide.c
===================================================================
@@ -96,7 +96,7 @@ rawhide_disable_irq(unsigned int irq)
 }
 
 static void
-rawhide_mask_and_ack_irq(unsigned int irq)
+rawhide_mask_and_ack_irq(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned int mask, mask1, hose;
 
arch/alpha/kernel/sys_rx164.c +7 -1
Index: linux-2.6/arch/alpha/kernel/sys_rx164.c
===================================================================
@@ -58,6 +58,12 @@ rx164_disable_irq(unsigned int irq)
 	rx164_update_irq_hw(cached_irq_mask &= ~(1UL << (irq - 16)));
 }
 
+static void
+rx164_disable_irq_desc(unsigned int irq, struct irq_desc *desc)
+{
+	rx164_disable_irq(irq);
+}
+
 static unsigned int
 rx164_startup_irq(unsigned int irq)
 {
@@ -78,7 +84,7 @@ static struct irq_chip rx164_irq_type =
 	.shutdown	= rx164_disable_irq,
 	.enable		= rx164_enable_irq,
 	.disable	= rx164_disable_irq,
-	.ack		= rx164_disable_irq,
+	.ack		= rx164_disable_irq_desc,
 	.end		= rx164_end_irq,
 };
 
arch/alpha/kernel/sys_sable.c +1 -1
Index: linux-2.6/arch/alpha/kernel/sys_sable.c
===================================================================
@@ -489,7 +489,7 @@ sable_lynx_end_irq(unsigned int irq)
 }
 
 static void
-sable_lynx_mask_and_ack_irq(unsigned int irq)
+sable_lynx_mask_and_ack_irq(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned long bit, mask;
 
arch/alpha/kernel/sys_takara.c +7 -1
Index: linux-2.6/arch/alpha/kernel/sys_takara.c
===================================================================
@@ -60,6 +60,12 @@ takara_disable_irq(unsigned int irq)
 	takara_update_irq_hw(irq, mask);
 }
 
+static void
+takara_disable_irq_desc(unsigned int irq, struct irq_desc *desc)
+{
+	takara_disable_irq(irq);
+}
+
 static unsigned int
 takara_startup_irq(unsigned int irq)
 {
@@ -80,7 +86,7 @@ static struct irq_chip takara_irq_type =
 	.shutdown	= takara_disable_irq,
 	.enable		= takara_enable_irq,
 	.disable	= takara_disable_irq,
-	.ack		= takara_disable_irq,
+	.ack		= takara_disable_irq_desc,
 	.end		= takara_end_irq,
 };
 
arch/alpha/kernel/sys_titan.c +7 -1
Index: linux-2.6/arch/alpha/kernel/sys_titan.c
===================================================================
@@ -129,6 +129,12 @@ titan_disable_irq(unsigned int irq)
 	spin_unlock(&titan_irq_lock);
 }
 
+static void
+titan_disable_irq_desc(unsigned int irq, struct irq_desc *desc)
+{
+	titan_disable_irq(irq);
+}
+
 static unsigned int
 titan_startup_irq(unsigned int irq)
 {
@@ -200,7 +206,7 @@ static struct irq_chip titan_irq_type =
        .shutdown       = titan_disable_irq,
        .enable         = titan_enable_irq,
        .disable        = titan_disable_irq,
-       .ack            = titan_disable_irq,
+       .ack            = titan_disable_irq_desc,
        .end            = titan_end_irq,
        .set_affinity   = titan_set_irq_affinity,
 };
arch/alpha/kernel/sys_wildfire.c +1 -1
Index: linux-2.6/arch/alpha/kernel/sys_wildfire.c
===================================================================
@@ -128,7 +128,7 @@ wildfire_disable_irq(unsigned int irq)
 }
 
 static void
-wildfire_mask_and_ack_irq(unsigned int irq)
+wildfire_mask_and_ack_irq(unsigned int irq, struct irq_desc *desc)
 {
 	if (irq < 16)
 		i8259a_mask_and_ack_irq(irq);
arch/arm/common/gic.c +5 -5
Index: linux-2.6/arch/arm/common/gic.c
===================================================================
@@ -80,7 +80,7 @@ static inline unsigned int gic_irq(unsig
  * our "acknowledge" routine disable the interrupt, then mark it as
  * complete.
  */
-static void gic_ack_irq(unsigned int irq)
+static void gic_ack_irq(unsigned int irq, struct irq_desc *desc)
 {
 	u32 mask = 1 << (irq % 32);
 
@@ -90,7 +90,7 @@ static void gic_ack_irq(unsigned int irq
 	spin_unlock(&irq_controller_lock);
 }
 
-static void gic_mask_irq(unsigned int irq)
+static void gic_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	u32 mask = 1 << (irq % 32);
 
@@ -99,7 +99,7 @@ static void gic_mask_irq(unsigned int ir
 	spin_unlock(&irq_controller_lock);
 }
 
-static void gic_unmask_irq(unsigned int irq)
+static void gic_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	u32 mask = 1 << (irq % 32);
 
@@ -135,7 +135,7 @@ static void gic_handle_cascade_irq(unsig
 	unsigned long status;
 
 	/* primary controller ack'ing */
-	chip->ack(irq);
+	chip->ack(irq, desc);
 
 	spin_lock(&irq_controller_lock);
 	status = readl(chip_data->cpu_base + GIC_CPU_INTACK);
@@ -153,7 +153,7 @@ static void gic_handle_cascade_irq(unsig
 
  out:
 	/* primary controller unmasking */
-	chip->unmask(irq);
+	chip->unmask(irq, desc);
 }
 
 static struct irq_chip gic_chip = {
arch/arm/common/it8152.c +2 -2
Index: linux-2.6/arch/arm/common/it8152.c
===================================================================
@@ -32,7 +32,7 @@
 
 #define MAX_SLOTS		21
 
-static void it8152_mask_irq(unsigned int irq)
+static void it8152_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
        if (irq >= IT8152_LD_IRQ(0)) {
 	       __raw_writel((__raw_readl(IT8152_INTC_LDCNIMR) |
@@ -49,7 +49,7 @@ static void it8152_mask_irq(unsigned int
        }
 }
 
-static void it8152_unmask_irq(unsigned int irq)
+static void it8152_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
        if (irq >= IT8152_LD_IRQ(0)) {
 	       __raw_writel((__raw_readl(IT8152_INTC_LDCNIMR) &
arch/arm/common/locomo.c +16 -16
Index: linux-2.6/arch/arm/common/locomo.c
===================================================================
@@ -172,7 +172,7 @@ static void locomo_handler(unsigned int
 	void __iomem *mapbase = get_irq_chip_data(irq);
 
 	/* Acknowledge the parent IRQ */
-	desc->chip->ack(irq);
+	desc->chip->ack(irq, desc);
 
 	/* check why this interrupt was generated */
 	req = locomo_readl(mapbase + LOCOMO_ICR) & 0x0f00;
@@ -189,11 +189,11 @@ static void locomo_handler(unsigned int
 	}
 }
 
-static void locomo_ack_irq(unsigned int irq)
+static void locomo_ack_irq(unsigned int irq, struct irq_desc *desc)
 {
 }
 
-static void locomo_mask_irq(unsigned int irq)
+static void locomo_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	void __iomem *mapbase = get_irq_chip_data(irq);
 	unsigned int r;
@@ -202,7 +202,7 @@ static void locomo_mask_irq(unsigned int
 	locomo_writel(r, mapbase + LOCOMO_ICR);
 }
 
-static void locomo_unmask_irq(unsigned int irq)
+static void locomo_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	void __iomem *mapbase = get_irq_chip_data(irq);
 	unsigned int r;
@@ -227,7 +227,7 @@ static void locomo_key_handler(unsigned
 	}
 }
 
-static void locomo_key_ack_irq(unsigned int irq)
+static void locomo_key_ack_irq(unsigned int irq, struct irq_desc *desc)
 {
 	void __iomem *mapbase = get_irq_chip_data(irq);
 	unsigned int r;
@@ -236,7 +236,7 @@ static void locomo_key_ack_irq(unsigned
 	locomo_writel(r, mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC);
 }
 
-static void locomo_key_mask_irq(unsigned int irq)
+static void locomo_key_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	void __iomem *mapbase = get_irq_chip_data(irq);
 	unsigned int r;
@@ -245,7 +245,7 @@ static void locomo_key_mask_irq(unsigned
 	locomo_writel(r, mapbase + LOCOMO_KEYBOARD + LOCOMO_KIC);
 }
 
-static void locomo_key_unmask_irq(unsigned int irq)
+static void locomo_key_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	void __iomem *mapbase = get_irq_chip_data(irq);
 	unsigned int r;
@@ -280,7 +280,7 @@ static void locomo_gpio_handler(unsigned
 	}
 }
 
-static void locomo_gpio_ack_irq(unsigned int irq)
+static void locomo_gpio_ack_irq(unsigned int irq, struct irq_desc *desc)
 {
 	void __iomem *mapbase = get_irq_chip_data(irq);
 	unsigned int r;
@@ -297,7 +297,7 @@ static void locomo_gpio_ack_irq(unsigned
 	locomo_writel(r, mapbase + LOCOMO_GWE);
 }
 
-static void locomo_gpio_mask_irq(unsigned int irq)
+static void locomo_gpio_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	void __iomem *mapbase = get_irq_chip_data(irq);
 	unsigned int r;
@@ -306,7 +306,7 @@ static void locomo_gpio_mask_irq(unsigne
 	locomo_writel(r, mapbase + LOCOMO_GIE);
 }
 
-static void locomo_gpio_unmask_irq(unsigned int irq)
+static void locomo_gpio_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	void __iomem *mapbase = get_irq_chip_data(irq);
 	unsigned int r;
@@ -362,7 +362,7 @@ static void locomo_lt_handler(unsigned i
 	}
 }
 
-static void locomo_lt_ack_irq(unsigned int irq)
+static void locomo_lt_ack_irq(unsigned int irq, struct irq_desc *desc)
 {
 	void __iomem *mapbase = get_irq_chip_data(irq);
 	unsigned int r;
@@ -371,7 +371,7 @@ static void locomo_lt_ack_irq(unsigned i
 	locomo_writel(r, mapbase + LOCOMO_LTINT);
 }
 
-static void locomo_lt_mask_irq(unsigned int irq)
+static void locomo_lt_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	void __iomem *mapbase = get_irq_chip_data(irq);
 	unsigned int r;
@@ -380,7 +380,7 @@ static void locomo_lt_mask_irq(unsigned
 	locomo_writel(r, mapbase + LOCOMO_LTINT);
 }
 
-static void locomo_lt_unmask_irq(unsigned int irq)
+static void locomo_lt_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	void __iomem *mapbase = get_irq_chip_data(irq);
 	unsigned int r;
@@ -413,7 +413,7 @@ static void locomo_spi_handler(unsigned
 	}
 }
 
-static void locomo_spi_ack_irq(unsigned int irq)
+static void locomo_spi_ack_irq(unsigned int irq, struct irq_desc *desc)
 {
 	void __iomem *mapbase = get_irq_chip_data(irq);
 	unsigned int r;
@@ -430,7 +430,7 @@ static void locomo_spi_ack_irq(unsigned
 	locomo_writel(r, mapbase + LOCOMO_SPI + LOCOMO_SPIWE);
 }
 
-static void locomo_spi_mask_irq(unsigned int irq)
+static void locomo_spi_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	void __iomem *mapbase = get_irq_chip_data(irq);
 	unsigned int r;
@@ -439,7 +439,7 @@ static void locomo_spi_mask_irq(unsigned
 	locomo_writel(r, mapbase + LOCOMO_SPI + LOCOMO_SPIIE);
 }
 
-static void locomo_spi_unmask_irq(unsigned int irq)
+static void locomo_spi_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	void __iomem *mapbase = get_irq_chip_data(irq);
 	unsigned int r;
arch/arm/common/sa1111.c +7 -7
Index: linux-2.6/arch/arm/common/sa1111.c
===================================================================
@@ -159,7 +159,7 @@ sa1111_irq_handler(unsigned int irq, str
 
 	sa1111_writel(stat0, base + SA1111_INTSTATCLR0);
 
-	desc->chip->ack(irq);
+	desc->chip->ack(irq, desc);
 
 	sa1111_writel(stat1, base + SA1111_INTSTATCLR1);
 
@@ -177,17 +177,17 @@ sa1111_irq_handler(unsigned int irq, str
 			handle_edge_irq(i, irq_desc + i);
 
 	/* For level-based interrupts */
-	desc->chip->unmask(irq);
+	desc->chip->unmask(irq, desc);
 }
 
 #define SA1111_IRQMASK_LO(x)	(1 << (x - IRQ_SA1111_START))
 #define SA1111_IRQMASK_HI(x)	(1 << (x - IRQ_SA1111_START - 32))
 
-static void sa1111_ack_irq(unsigned int irq)
+static void sa1111_ack_irq(unsigned int irq, struct irq_desc *desc)
 {
 }
 
-static void sa1111_mask_lowirq(unsigned int irq)
+static void sa1111_mask_lowirq(unsigned int irq, struct irq_desc *desc)
 {
 	void __iomem *mapbase = get_irq_chip_data(irq);
 	unsigned long ie0;
@@ -197,7 +197,7 @@ static void sa1111_mask_lowirq(unsigned
 	writel(ie0, mapbase + SA1111_INTEN0);
 }
 
-static void sa1111_unmask_lowirq(unsigned int irq)
+static void sa1111_unmask_lowirq(unsigned int irq, struct irq_desc *desc)
 {
 	void __iomem *mapbase = get_irq_chip_data(irq);
 	unsigned long ie0;
@@ -284,7 +284,7 @@ static struct irq_chip sa1111_low_chip =
 	.set_wake	= sa1111_wake_lowirq,
 };
 
-static void sa1111_mask_highirq(unsigned int irq)
+static void sa1111_mask_highirq(unsigned int irq, struct irq_desc *desc)
 {
 	void __iomem *mapbase = get_irq_chip_data(irq);
 	unsigned long ie1;
@@ -294,7 +294,7 @@ static void sa1111_mask_highirq(unsigned
 	sa1111_writel(ie1, mapbase + SA1111_INTEN1);
 }
 
-static void sa1111_unmask_highirq(unsigned int irq)
+static void sa1111_unmask_highirq(unsigned int irq, struct irq_desc *desc)
 {
 	void __iomem *mapbase = get_irq_chip_data(irq);
 	unsigned long ie1;
arch/arm/common/vic.c +3 -3
Index: linux-2.6/arch/arm/common/vic.c
===================================================================
@@ -28,7 +28,7 @@
 #include <asm/mach/irq.h>
 #include <asm/hardware/vic.h>
 
-static void vic_ack_irq(unsigned int irq)
+static void vic_ack_irq(unsigned int irq, struct irq_desc *desc)
 {
 	void __iomem *base = get_irq_chip_data(irq);
 	irq &= 31;
@@ -37,14 +37,14 @@ static void vic_ack_irq(unsigned int irq
 	writel(1 << irq, base + VIC_INT_SOFT_CLEAR);
 }
 
-static void vic_mask_irq(unsigned int irq)
+static void vic_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	void __iomem *base = get_irq_chip_data(irq);
 	irq &= 31;
 	writel(1 << irq, base + VIC_INT_ENABLE_CLEAR);
 }
 
-static void vic_unmask_irq(unsigned int irq)
+static void vic_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	void __iomem *base = get_irq_chip_data(irq);
 	irq &= 31;
arch/arm/kernel/ecard.c +5 -5
Index: linux-2.6/arch/arm/kernel/ecard.c
===================================================================
@@ -443,7 +443,7 @@ static expansioncard_ops_t ecard_default
  *
  * They are not meant to be called directly, but via enable/disable_irq.
  */
-static void ecard_irq_unmask(unsigned int irqnr)
+static void ecard_irq_unmask(unsigned int irqnr, struct irq_desc *desc)
 {
 	ecard_t *ec = slot_to_ecard(irqnr - 32);
 
@@ -459,7 +459,7 @@ static void ecard_irq_unmask(unsigned in
 	}
 }
 
-static void ecard_irq_mask(unsigned int irqnr)
+static void ecard_irq_mask(unsigned int irqnr, struct irq_desc *desc)
 {
 	ecard_t *ec = slot_to_ecard(irqnr - 32);
 
@@ -551,7 +551,7 @@ static void ecard_check_lockup(struct ir
 			printk(KERN_ERR "\nInterrupt lockup detected - "
 			       "disabling all expansion card interrupts\n");
 
-			desc->chip->mask(IRQ_EXPANSIONCARD);
+			desc->chip->mask(IRQ_EXPANSIONCARD, irq_to_desc(IRQ_EXPANSIONCARD));
 			ecard_dump_irq_state();
 		}
 	} else
@@ -574,7 +574,7 @@ ecard_irq_handler(unsigned int irq, stru
 	ecard_t *ec;
 	int called = 0;
 
-	desc->chip->mask(irq);
+	desc->chip->mask(irq, desc);
 	for (ec = cards; ec; ec = ec->next) {
 		int pending;
 
@@ -591,7 +591,7 @@ ecard_irq_handler(unsigned int irq, stru
 			called ++;
 		}
 	}
-	desc->chip->unmask(irq);
+	desc->chip->unmask(irq, desc);
 
 	if (called == 0)
 		ecard_check_lockup(desc);
arch/arm/mach-aaec2000/core.c +3 -3
Index: linux-2.6/arch/arm/mach-aaec2000/core.c
===================================================================
@@ -67,17 +67,17 @@ void __init aaec2000_map_io(void)
 /*
  * Interrupt handling routines
  */
-static void aaec2000_int_ack(unsigned int irq)
+static void aaec2000_int_ack(unsigned int irq, struct irq_desc *desc)
 {
 	IRQ_INTSR = 1 << irq;
 }
 
-static void aaec2000_int_mask(unsigned int irq)
+static void aaec2000_int_mask(unsigned int irq, struct irq_desc *desc)
 {
 	IRQ_INTENC |= (1 << irq);
 }
 
-static void aaec2000_int_unmask(unsigned int irq)
+static void aaec2000_int_unmask(unsigned int irq, struct irq_desc *desc)
 {
 	IRQ_INTENS |= (1 << irq);
 }
arch/arm/mach-at91/gpio.c +4 -4
Index: linux-2.6/arch/arm/mach-at91/gpio.c
===================================================================
@@ -344,7 +344,7 @@ void at91_gpio_resume(void)
  * IRQ0..IRQ6 should be configurable, e.g. level vs edge triggering.
  */
 
-static void gpio_irq_mask(unsigned pin)
+static void gpio_irq_mask(unsigned pin, struct irq_desc *desc)
 {
 	void __iomem	*pio = pin_to_controller(pin);
 	unsigned	mask = pin_to_mask(pin);
@@ -353,7 +353,7 @@ static void gpio_irq_mask(unsigned pin)
 		__raw_writel(mask, pio + PIO_IDR);
 }
 
-static void gpio_irq_unmask(unsigned pin)
+static void gpio_irq_unmask(unsigned pin, struct irq_desc *desc)
 {
 	void __iomem	*pio = pin_to_controller(pin);
 	unsigned	mask = pin_to_mask(pin);
@@ -393,7 +393,7 @@ static void gpio_irq_handler(unsigned ir
 	pio = at91_gpio->regbase;
 
 	/* temporarily mask (level sensitive) parent IRQ */
-	desc->chip->ack(irq);
+	desc->chip->ack(irq, desc);
 	for (;;) {
 		/* Reading ISR acks pending (edge triggered) GPIO interrupts.
 		 * When there none are pending, we're finished unless we need
@@ -429,7 +429,7 @@ static void gpio_irq_handler(unsigned ir
 			isr >>= 1;
 		}
 	}
-	desc->chip->unmask(irq);
+	desc->chip->unmask(irq, desc);
 	/* now it may re-trigger */
 }
 
arch/arm/mach-at91/irq.c +2 -2
Index: linux-2.6/arch/arm/mach-at91/irq.c
===================================================================
@@ -34,13 +34,13 @@
 #include <asm/mach/map.h>
 
 
-static void at91_aic_mask_irq(unsigned int irq)
+static void at91_aic_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	/* Disable interrupt on AIC */
 	at91_sys_write(AT91_AIC_IDCR, 1 << irq);
 }
 
-static void at91_aic_unmask_irq(unsigned int irq)
+static void at91_aic_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	/* Enable interrupt on AIC */
 	at91_sys_write(AT91_AIC_IECR, 1 << irq);
arch/arm/mach-bcmring/irq.c +6 -6
Index: linux-2.6/arch/arm/mach-bcmring/irq.c
===================================================================
@@ -30,37 +30,37 @@
 #include <mach/csp/intcHw_reg.h>
 #include <mach/csp/mm_io.h>
 
-static void bcmring_mask_irq0(unsigned int irq)
+static void bcmring_mask_irq0(unsigned int irq, struct irq_desc *desc)
 {
 	writel(1 << (irq - IRQ_INTC0_START),
 	       MM_IO_BASE_INTC0 + INTCHW_INTENCLEAR);
 }
 
-static void bcmring_unmask_irq0(unsigned int irq)
+static void bcmring_unmask_irq0(unsigned int irq, struct irq_desc *desc)
 {
 	writel(1 << (irq - IRQ_INTC0_START),
 	       MM_IO_BASE_INTC0 + INTCHW_INTENABLE);
 }
 
-static void bcmring_mask_irq1(unsigned int irq)
+static void bcmring_mask_irq1(unsigned int irq, struct irq_desc *desc)
 {
 	writel(1 << (irq - IRQ_INTC1_START),
 	       MM_IO_BASE_INTC1 + INTCHW_INTENCLEAR);
 }
 
-static void bcmring_unmask_irq1(unsigned int irq)
+static void bcmring_unmask_irq1(unsigned int irq, struct irq_desc *desc)
 {
 	writel(1 << (irq - IRQ_INTC1_START),
 	       MM_IO_BASE_INTC1 + INTCHW_INTENABLE);
 }
 
-static void bcmring_mask_irq2(unsigned int irq)
+static void bcmring_mask_irq2(unsigned int irq, struct irq_desc *desc)
 {
 	writel(1 << (irq - IRQ_SINTC_START),
 	       MM_IO_BASE_SINTC + INTCHW_INTENCLEAR);
 }
 
-static void bcmring_unmask_irq2(unsigned int irq)
+static void bcmring_unmask_irq2(unsigned int irq, struct irq_desc *desc)
 {
 	writel(1 << (irq - IRQ_SINTC_START),
 	       MM_IO_BASE_SINTC + INTCHW_INTENABLE);
arch/arm/mach-clps711x/irq.c +6 -6
Index: linux-2.6/arch/arm/mach-clps711x/irq.c
===================================================================
@@ -27,7 +27,7 @@
 
 #include <asm/hardware/clps7111.h>
 
-static void int1_mask(unsigned int irq)
+static void int1_mask(unsigned int irq, struct irq_desc *desc)
 {
 	u32 intmr1;
 
@@ -36,7 +36,7 @@ static void int1_mask(unsigned int irq)
 	clps_writel(intmr1, INTMR1);
 }
 
-static void int1_ack(unsigned int irq)
+static void int1_ack(unsigned int irq, struct irq_desc *desc)
 {
 	u32 intmr1;
 
@@ -54,7 +54,7 @@ static void int1_ack(unsigned int irq)
 	}
 }
 
-static void int1_unmask(unsigned int irq)
+static void int1_unmask(unsigned int irq, struct irq_desc *desc)
 {
 	u32 intmr1;
 
@@ -69,7 +69,7 @@ static struct irq_chip int1_chip = {
 	.unmask = int1_unmask,
 };
 
-static void int2_mask(unsigned int irq)
+static void int2_mask(unsigned int irq, struct irq_desc *desc)
 {
 	u32 intmr2;
 
@@ -78,7 +78,7 @@ static void int2_mask(unsigned int irq)
 	clps_writel(intmr2, INTMR2);
 }
 
-static void int2_ack(unsigned int irq)
+static void int2_ack(unsigned int irq, struct irq_desc *desc)
 {
 	u32 intmr2;
 
@@ -91,7 +91,7 @@ static void int2_ack(unsigned int irq)
 	}
 }
 
-static void int2_unmask(unsigned int irq)
+static void int2_unmask(unsigned int irq, struct irq_desc *desc)
 {
 	u32 intmr2;
 
arch/arm/mach-davinci/cp_intc.c +3 -3
Index: linux-2.6/arch/arm/mach-davinci/cp_intc.c
===================================================================
@@ -27,13 +27,13 @@ static inline void cp_intc_write(unsigne
 	__raw_writel(value, cp_intc_base + offset);
 }
 
-static void cp_intc_ack_irq(unsigned int irq)
+static void cp_intc_ack_irq(unsigned int irq, struct irq_desc *desc)
 {
 	cp_intc_write(irq, CP_INTC_SYS_STAT_IDX_CLR);
 }
 
 /* Disable interrupt */
-static void cp_intc_mask_irq(unsigned int irq)
+static void cp_intc_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	/* XXX don't know why we need to disable nIRQ here... */
 	cp_intc_write(1, CP_INTC_HOST_ENABLE_IDX_CLR);
@@ -42,7 +42,7 @@ static void cp_intc_mask_irq(unsigned in
 }
 
 /* Enable interrupt */
-static void cp_intc_unmask_irq(unsigned int irq)
+static void cp_intc_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	cp_intc_write(irq, CP_INTC_SYS_ENABLE_IDX_SET);
 }
arch/arm/mach-davinci/gpio.c +3 -3
Index: linux-2.6/arch/arm/mach-davinci/gpio.c
===================================================================
@@ -223,8 +223,8 @@ gpio_irq_handler(unsigned irq, struct ir
 		mask <<= 16;
 
 	/* temporarily mask (level sensitive) parent IRQ */
-	desc->chip->mask(irq);
-	desc->chip->ack(irq);
+	desc->chip->mask(irq, desc);
+	desc->chip->ack(irq, desc);
 	while (1) {
 		u32		status;
 		int		n;
@@ -247,7 +247,7 @@ gpio_irq_handler(unsigned irq, struct ir
 			status >>= res;
 		}
 	}
-	desc->chip->unmask(irq);
+	desc->chip->unmask(irq, desc);
 	/* now it may re-trigger */
 }
 
arch/arm/mach-davinci/irq.c +3 -3
Index: linux-2.6/arch/arm/mach-davinci/irq.c
===================================================================
@@ -53,7 +53,7 @@ static inline void davinci_irq_writel(un
 }
 
 /* Disable interrupt */
-static void davinci_mask_irq(unsigned int irq)
+static void davinci_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned int mask;
 	u32 l;
@@ -72,7 +72,7 @@ static void davinci_mask_irq(unsigned in
 }
 
 /* Enable interrupt */
-static void davinci_unmask_irq(unsigned int irq)
+static void davinci_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned int mask;
 	u32 l;
@@ -91,7 +91,7 @@ static void davinci_unmask_irq(unsigned
 }
 
 /* EOI interrupt */
-static void davinci_ack_irq(unsigned int irq)
+static void davinci_ack_irq(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned int mask;
 
arch/arm/mach-dove/irq.c +3 -3
Index: linux-2.6/arch/arm/mach-dove/irq.c
===================================================================
@@ -36,7 +36,7 @@ static void gpio_irq_handler(unsigned in
 	}
 }
 
-static void pmu_irq_mask(unsigned int irq)
+static void pmu_irq_mask(unsigned int irq, struct irq_desc *desc)
 {
 	int pin = irq_to_pmu(irq);
 	u32 u;
@@ -46,7 +46,7 @@ static void pmu_irq_mask(unsigned int ir
 	writel(u, PMU_INTERRUPT_MASK);
 }
 
-static void pmu_irq_unmask(unsigned int irq)
+static void pmu_irq_unmask(unsigned int irq, struct irq_desc *desc)
 {
 	int pin = irq_to_pmu(irq);
 	u32 u;
@@ -56,7 +56,7 @@ static void pmu_irq_unmask(unsigned int
 	writel(u, PMU_INTERRUPT_MASK);
 }
 
-static void pmu_irq_ack(unsigned int irq)
+static void pmu_irq_ack(unsigned int irq, struct irq_desc *desc)
 {
 	int pin = irq_to_pmu(irq);
 	u32 u;
arch/arm/mach-ebsa110/core.c +2 -2
Index: linux-2.6/arch/arm/mach-ebsa110/core.c
===================================================================
@@ -35,12 +35,12 @@
 #define IRQ_STAT		0xff000000	/* read */
 #define IRQ_MCLR		0xff000000	/* write */
 
-static void ebsa110_mask_irq(unsigned int irq)
+static void ebsa110_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	__raw_writeb(1 << irq, IRQ_MCLR);
 }
 
-static void ebsa110_unmask_irq(unsigned int irq)
+static void ebsa110_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	__raw_writeb(1 << irq, IRQ_MSET);
 }
arch/arm/mach-ep93xx/core.c +4 -4
Index: linux-2.6/arch/arm/mach-ep93xx/core.c
===================================================================
@@ -225,7 +225,7 @@ static void ep93xx_gpio_f_irq_handler(un
 	generic_handle_irq(gpio_irq);
 }
 
-static void ep93xx_gpio_irq_ack(unsigned int irq)
+static void ep93xx_gpio_irq_ack(unsigned int irq, struct irq_desc *desc)
 {
 	int line = irq_to_gpio(irq);
 	int port = line >> 3;
@@ -239,7 +239,7 @@ static void ep93xx_gpio_irq_ack(unsigned
 	__raw_writeb(port_mask, EP93XX_GPIO_REG(eoi_register_offset[port]));
 }
 
-static void ep93xx_gpio_irq_mask_ack(unsigned int irq)
+static void ep93xx_gpio_irq_mask_ack(unsigned int irq, struct irq_desc *desc)
 {
 	int line = irq_to_gpio(irq);
 	int port = line >> 3;
@@ -254,7 +254,7 @@ static void ep93xx_gpio_irq_mask_ack(uns
 	__raw_writeb(port_mask, EP93XX_GPIO_REG(eoi_register_offset[port]));
 }
 
-static void ep93xx_gpio_irq_mask(unsigned int irq)
+static void ep93xx_gpio_irq_mask(unsigned int irq, struct irq_desc *desc)
 {
 	int line = irq_to_gpio(irq);
 	int port = line >> 3;
@@ -263,7 +263,7 @@ static void ep93xx_gpio_irq_mask(unsigne
 	ep93xx_gpio_update_int_params(port);
 }
 
-static void ep93xx_gpio_irq_unmask(unsigned int irq)
+static void ep93xx_gpio_irq_unmask(unsigned int irq, struct irq_desc *desc)
 {
 	int line = irq_to_gpio(irq);
 	int port = line >> 3;
arch/arm/mach-footbridge/common.c +2 -2
Index: linux-2.6/arch/arm/mach-footbridge/common.c
===================================================================
@@ -74,12 +74,12 @@ static const int fb_irq_mask[] = {
 	IRQ_MASK_PCI_PERR,	/* 19 */
 };
 
-static void fb_mask_irq(unsigned int irq)
+static void fb_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	*CSR_IRQ_DISABLE = fb_irq_mask[_DC21285_INR(irq)];
 }
 
-static void fb_unmask_irq(unsigned int irq)
+static void fb_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	*CSR_IRQ_ENABLE = fb_irq_mask[_DC21285_INR(irq)];
 }
arch/arm/mach-footbridge/isa-irq.c +6 -6
Index: linux-2.6/arch/arm/mach-footbridge/isa-irq.c
===================================================================
@@ -30,14 +30,14 @@
 
 #include "common.h"
 
-static void isa_mask_pic_lo_irq(unsigned int irq)
+static void isa_mask_pic_lo_irq(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned int mask = 1 << (irq & 7);
 
 	outb(inb(PIC_MASK_LO) | mask, PIC_MASK_LO);
 }
 
-static void isa_ack_pic_lo_irq(unsigned int irq)
+static void isa_ack_pic_lo_irq(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned int mask = 1 << (irq & 7);
 
@@ -45,7 +45,7 @@ static void isa_ack_pic_lo_irq(unsigned
 	outb(0x20, PIC_LO);
 }
 
-static void isa_unmask_pic_lo_irq(unsigned int irq)
+static void isa_unmask_pic_lo_irq(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned int mask = 1 << (irq & 7);
 
@@ -58,14 +58,14 @@ static struct irq_chip isa_lo_chip = {
 	.unmask = isa_unmask_pic_lo_irq,
 };
 
-static void isa_mask_pic_hi_irq(unsigned int irq)
+static void isa_mask_pic_hi_irq(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned int mask = 1 << (irq & 7);
 
 	outb(inb(PIC_MASK_HI) | mask, PIC_MASK_HI);
 }
 
-static void isa_ack_pic_hi_irq(unsigned int irq)
+static void isa_ack_pic_hi_irq(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned int mask = 1 << (irq & 7);
 
@@ -74,7 +74,7 @@ static void isa_ack_pic_hi_irq(unsigned
 	outb(0x20, PIC_HI);
 }
 
-static void isa_unmask_pic_hi_irq(unsigned int irq)
+static void isa_unmask_pic_hi_irq(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned int mask = 1 << (irq & 7);
 
arch/arm/mach-gemini/gpio.c +3 -3
Index: linux-2.6/arch/arm/mach-gemini/gpio.c
===================================================================
@@ -54,7 +54,7 @@ static void _set_gpio_irqenable(unsigned
 	__raw_writel(reg, base + GPIO_INT_EN);
 }
 
-static void gpio_ack_irq(unsigned int irq)
+static void gpio_ack_irq(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned int gpio = irq_to_gpio(irq);
 	unsigned int base = GPIO_BASE(gpio / 32);
@@ -62,7 +62,7 @@ static void gpio_ack_irq(unsigned int ir
 	__raw_writel(1 << (gpio % 32), base + GPIO_INT_CLR);
 }
 
-static void gpio_mask_irq(unsigned int irq)
+static void gpio_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned int gpio = irq_to_gpio(irq);
 	unsigned int base = GPIO_BASE(gpio / 32);
@@ -70,7 +70,7 @@ static void gpio_mask_irq(unsigned int i
 	_set_gpio_irqenable(base, gpio % 32, 0);
 }
 
-static void gpio_unmask_irq(unsigned int irq)
+static void gpio_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned int gpio = irq_to_gpio(irq);
 	unsigned int base = GPIO_BASE(gpio / 32);
arch/arm/mach-gemini/irq.c +3 -3
Index: linux-2.6/arch/arm/mach-gemini/irq.c
===================================================================
@@ -32,12 +32,12 @@
 #define FIQ_LEVEL(base_addr)	(base_addr + 0x30)
 #define FIQ_STATUS(base_addr)	(base_addr + 0x34)
 
-static void gemini_ack_irq(unsigned int irq)
+static void gemini_ack_irq(unsigned int irq, struct irq_desc *desc)
 {
 	__raw_writel(1 << irq, IRQ_CLEAR(IO_ADDRESS(GEMINI_INTERRUPT_BASE)));
 }
 
-static void gemini_mask_irq(unsigned int irq)
+static void gemini_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned int mask;
 
@@ -46,7 +46,7 @@ static void gemini_mask_irq(unsigned int
 	__raw_writel(mask, IRQ_MASK(IO_ADDRESS(GEMINI_INTERRUPT_BASE)));
 }
 
-static void gemini_unmask_irq(unsigned int irq)
+static void gemini_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned int mask;
 
arch/arm/mach-h720x/common.c +5 -5
Index: linux-2.6/arch/arm/mach-h720x/common.c
===================================================================
@@ -53,7 +53,7 @@ unsigned long h720x_gettimeoffset(void)
 /*
  * mask Global irq's
  */
-static void mask_global_irq (unsigned int irq )
+static void mask_global_irq(unsigned int irq, struct irq_desc *desc)
 {
 	CPU_REG (IRQC_VIRT, IRQC_IER) &= ~(1 << irq);
 }
@@ -61,7 +61,7 @@ static void mask_global_irq (unsigned in
 /*
  * unmask Global irq's
  */
-static void unmask_global_irq (unsigned int irq )
+static void unmask_global_irq(unsigned int irq, struct irq_desc *desc)
 {
 	CPU_REG (IRQC_VIRT, IRQC_IER) |= (1 << irq);
 }
@@ -71,7 +71,7 @@ static void unmask_global_irq (unsigned
  * ack GPIO irq's
  * Ack only for edge triggered int's valid
  */
-static void inline ack_gpio_irq(u32 irq)
+static inline void ack_gpio_irq(u32 irq, struct irq_desc *desc)
 {
 	u32 reg_base = GPIO_VIRT(IRQ_TO_REGNO(irq));
 	u32 bit = IRQ_TO_BIT(irq);
@@ -82,7 +82,7 @@ static void inline ack_gpio_irq(u32 irq)
 /*
  * mask GPIO irq's
  */
-static void inline mask_gpio_irq(u32 irq)
+static inline void mask_gpio_irq(u32 irq, struct irq_desc *desc)
 {
 	u32 reg_base = GPIO_VIRT(IRQ_TO_REGNO(irq));
 	u32 bit = IRQ_TO_BIT(irq);
@@ -92,7 +92,7 @@ static void inline mask_gpio_irq(u32 irq
 /*
  * unmask GPIO irq's
  */
-static void inline unmask_gpio_irq(u32 irq)
+static inline void unmask_gpio_irq(u32 irq, struct irq_desc *desc)
 {
 	u32 reg_base = GPIO_VIRT(IRQ_TO_REGNO(irq));
 	u32 bit = IRQ_TO_BIT(irq);
arch/arm/mach-h720x/cpu-h7202.c +2 -2
Index: linux-2.6/arch/arm/mach-h720x/cpu-h7202.c
===================================================================
@@ -141,7 +141,7 @@ h7202_timer_interrupt(int irq, void *dev
 /*
  * mask multiplexed timer IRQs
  */
-static void inline mask_timerx_irq (u32 irq)
+static inline void mask_timerx_irq(u32 irq, struct irq_desc *desc)
 {
 	unsigned int bit;
 	bit = 2 << ((irq == IRQ_TIMER64B) ? 4 : (irq - IRQ_TIMER1));
@@ -151,7 +151,7 @@ static void inline mask_timerx_irq (u32
 /*
  * unmask multiplexed timer IRQs
  */
-static void inline unmask_timerx_irq (u32 irq)
+static inline void unmask_timerx_irq(u32 irq, struct irq_desc *desc)
 {
 	unsigned int bit;
 	bit = 2 << ((irq == IRQ_TIMER64B) ? 4 : (irq - IRQ_TIMER1));
arch/arm/mach-integrator/integrator_ap.c +2 -2
Index: linux-2.6/arch/arm/mach-integrator/integrator_ap.c
===================================================================
@@ -151,12 +151,12 @@ static void __init ap_map_io(void)
 
 #define INTEGRATOR_SC_VALID_INT	0x003fffff
 
-static void sc_mask_irq(unsigned int irq)
+static void sc_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	writel(1 << irq, VA_IC_BASE + IRQ_ENABLE_CLEAR);
 }
 
-static void sc_unmask_irq(unsigned int irq)
+static void sc_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	writel(1 << irq, VA_IC_BASE + IRQ_ENABLE_SET);
 }
arch/arm/mach-integrator/integrator_cp.c +6 -6
Index: linux-2.6/arch/arm/mach-integrator/integrator_cp.c
===================================================================
@@ -145,13 +145,13 @@ static void __init intcp_map_io(void)
 #define sic_writel	__raw_writel
 #define sic_readl	__raw_readl
 
-static void cic_mask_irq(unsigned int irq)
+static void cic_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	irq -= IRQ_CIC_START;
 	cic_writel(1 << irq, INTCP_VA_CIC_BASE + IRQ_ENABLE_CLEAR);
 }
 
-static void cic_unmask_irq(unsigned int irq)
+static void cic_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	irq -= IRQ_CIC_START;
 	cic_writel(1 << irq, INTCP_VA_CIC_BASE + IRQ_ENABLE_SET);
@@ -164,13 +164,13 @@ static struct irq_chip cic_chip = {
 	.unmask	= cic_unmask_irq,
 };
 
-static void pic_mask_irq(unsigned int irq)
+static void pic_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	irq -= IRQ_PIC_START;
 	pic_writel(1 << irq, INTCP_VA_PIC_BASE + IRQ_ENABLE_CLEAR);
 }
 
-static void pic_unmask_irq(unsigned int irq)
+static void pic_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	irq -= IRQ_PIC_START;
 	pic_writel(1 << irq, INTCP_VA_PIC_BASE + IRQ_ENABLE_SET);
@@ -183,13 +183,13 @@ static struct irq_chip pic_chip = {
 	.unmask = pic_unmask_irq,
 };
 
-static void sic_mask_irq(unsigned int irq)
+static void sic_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	irq -= IRQ_SIC_START;
 	sic_writel(1 << irq, INTCP_VA_SIC_BASE + IRQ_ENABLE_CLEAR);
 }
 
-static void sic_unmask_irq(unsigned int irq)
+static void sic_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	irq -= IRQ_SIC_START;
 	sic_writel(1 << irq, INTCP_VA_SIC_BASE + IRQ_ENABLE_SET);
arch/arm/mach-iop13xx/irq.c +8 -8
Index: linux-2.6/arch/arm/mach-iop13xx/irq.c
===================================================================
@@ -123,49 +123,49 @@ static void write_intsize(u32 val)
 
 /* 0 = Interrupt Masked and 1 = Interrupt not masked */
 static void
-iop13xx_irq_mask0 (unsigned int irq)
+iop13xx_irq_mask0(unsigned int irq, struct irq_desc *desc)
 {
 	write_intctl_0(read_intctl_0() & ~(1 << (irq - 0)));
 }
 
 static void
-iop13xx_irq_mask1 (unsigned int irq)
+iop13xx_irq_mask1(unsigned int irq, struct irq_desc *desc)
 {
 	write_intctl_1(read_intctl_1() & ~(1 << (irq - 32)));
 }
 
 static void
-iop13xx_irq_mask2 (unsigned int irq)
+iop13xx_irq_mask2(unsigned int irq, struct irq_desc *desc)
 {
 	write_intctl_2(read_intctl_2() & ~(1 << (irq - 64)));
 }
 
 static void
-iop13xx_irq_mask3 (unsigned int irq)
+iop13xx_irq_mask3(unsigned int irq, struct irq_desc *desc)
 {
 	write_intctl_3(read_intctl_3() & ~(1 << (irq - 96)));
 }
 
 static void
-iop13xx_irq_unmask0(unsigned int irq)
+iop13xx_irq_unmask0(unsigned int irq, struct irq_desc *desc)
 {
 	write_intctl_0(read_intctl_0() | (1 << (irq - 0)));
 }
 
 static void
-iop13xx_irq_unmask1(unsigned int irq)
+iop13xx_irq_unmask1(unsigned int irq, struct irq_desc *desc)
 {
 	write_intctl_1(read_intctl_1() | (1 << (irq - 32)));
 }
 
 static void
-iop13xx_irq_unmask2(unsigned int irq)
+iop13xx_irq_unmask2(unsigned int irq, struct irq_desc *desc)
 {
 	write_intctl_2(read_intctl_2() | (1 << (irq - 64)));
 }
 
 static void
-iop13xx_irq_unmask3(unsigned int irq)
+iop13xx_irq_unmask3(unsigned int irq, struct irq_desc *desc)
 {
 	write_intctl_3(read_intctl_3() | (1 << (irq - 96)));
 }
arch/arm/mach-iop13xx/msi.c +1 -1
Index: linux-2.6/arch/arm/mach-iop13xx/msi.c
===================================================================
@@ -156,7 +156,7 @@ void arch_teardown_msi_irq(unsigned int
 	destroy_irq(irq);
 }
 
-static void iop13xx_msi_nop(unsigned int irq)
+static void iop13xx_msi_nop(unsigned int irq, struct irq_desc *desc)
 {
 	return;
 }
arch/arm/mach-iop32x/irq.c +2 -2
Index: linux-2.6/arch/arm/mach-iop32x/irq.c
===================================================================
@@ -32,14 +32,14 @@ static void intstr_write(u32 val)
 }
 
 static void
-iop32x_irq_mask(unsigned int irq)
+iop32x_irq_mask(unsigned int irq, struct irq_desc *desc)
 {
 	iop32x_mask &= ~(1 << irq);
 	intctl_write(iop32x_mask);
 }
 
 static void
-iop32x_irq_unmask(unsigned int irq)
+iop32x_irq_unmask(unsigned int irq, struct irq_desc *desc)
 {
 	iop32x_mask |= 1 << irq;
 	intctl_write(iop32x_mask);
arch/arm/mach-ixp2000/core.c +9 -9
Index: linux-2.6/arch/arm/mach-ixp2000/core.c
===================================================================
@@ -342,7 +342,7 @@ static int ixp2000_GPIO_irq_type(unsigne
 	return 0;
 }
 
-static void ixp2000_GPIO_irq_mask_ack(unsigned int irq)
+static void ixp2000_GPIO_irq_mask_ack(unsigned int irq, struct irq_desc *desc)
 {
 	ixp2000_reg_write(IXP2000_GPIO_INCR, (1 << (irq - IRQ_IXP2000_GPIO0)));
 
@@ -351,12 +351,12 @@ static void ixp2000_GPIO_irq_mask_ack(un
 	ixp2000_reg_wrb(IXP2000_GPIO_INST, (1 << (irq - IRQ_IXP2000_GPIO0)));
 }
 
-static void ixp2000_GPIO_irq_mask(unsigned int irq)
+static void ixp2000_GPIO_irq_mask(unsigned int irq, struct irq_desc *desc)
 {
 	ixp2000_reg_wrb(IXP2000_GPIO_INCR, (1 << (irq - IRQ_IXP2000_GPIO0)));
 }
 
-static void ixp2000_GPIO_irq_unmask(unsigned int irq)
+static void ixp2000_GPIO_irq_unmask(unsigned int irq, struct irq_desc *desc)
 {
 	ixp2000_reg_write(IXP2000_GPIO_INSR, (1 << (irq - IRQ_IXP2000_GPIO0)));
 }
@@ -368,7 +368,7 @@ static struct irq_chip ixp2000_GPIO_irq_
 	.set_type	= ixp2000_GPIO_irq_type,
 };
 
-static void ixp2000_pci_irq_mask(unsigned int irq)
+static void ixp2000_pci_irq_mask(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned long temp = *IXP2000_PCI_XSCALE_INT_ENABLE;
 	if (irq == IRQ_IXP2000_PCIA)
@@ -377,7 +377,7 @@ static void ixp2000_pci_irq_mask(unsigne
 		ixp2000_reg_wrb(IXP2000_PCI_XSCALE_INT_ENABLE, (temp & ~(1 << 27)));
 }
 
-static void ixp2000_pci_irq_unmask(unsigned int irq)
+static void ixp2000_pci_irq_unmask(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned long temp = *IXP2000_PCI_XSCALE_INT_ENABLE;
 	if (irq == IRQ_IXP2000_PCIA)
@@ -401,13 +401,13 @@ static void ixp2000_err_irq_handler(unsi
 	}
 }
 
-static void ixp2000_err_irq_mask(unsigned int irq)
+static void ixp2000_err_irq_mask(unsigned int irq, struct irq_desc *desc)
 {
 	ixp2000_reg_write(IXP2000_IRQ_ERR_ENABLE_CLR,
 			(1 << (irq - IRQ_IXP2000_DRAM0_MIN_ERR)));
 }
 
-static void ixp2000_err_irq_unmask(unsigned int irq)
+static void ixp2000_err_irq_unmask(unsigned int irq, struct irq_desc *desc)
 {
 	ixp2000_reg_write(IXP2000_IRQ_ERR_ENABLE_SET,
 			(1 << (irq - IRQ_IXP2000_DRAM0_MIN_ERR)));
@@ -425,12 +425,12 @@ static struct irq_chip ixp2000_pci_irq_c
 	.unmask	= ixp2000_pci_irq_unmask
 };
 
-static void ixp2000_irq_mask(unsigned int irq)
+static void ixp2000_irq_mask(unsigned int irq, struct irq_desc *desc)
 {
 	ixp2000_reg_wrb(IXP2000_IRQ_ENABLE_CLR, (1 << irq));
 }
 
-static void ixp2000_irq_unmask(unsigned int irq)
+static void ixp2000_irq_unmask(unsigned int irq, struct irq_desc *desc)
 {
 	ixp2000_reg_write(IXP2000_IRQ_ENABLE_SET, (1 << irq));
 }
arch/arm/mach-ixp2000/ixdp2x00.c +4 -4
Index: linux-2.6/arch/arm/mach-ixp2000/ixdp2x00.c
===================================================================
@@ -64,7 +64,7 @@ static struct slowport_cfg slowport_cpld
 };
 #endif
 
-static void ixdp2x00_irq_mask(unsigned int irq)
+static void ixdp2x00_irq_mask(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned long dummy;
 	static struct slowport_cfg old_cfg;
@@ -88,7 +88,7 @@ static void ixdp2x00_irq_mask(unsigned i
 #endif
 }
 
-static void ixdp2x00_irq_unmask(unsigned int irq)
+static void ixdp2x00_irq_unmask(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned long dummy;
 	static struct slowport_cfg old_cfg;
@@ -112,7 +112,7 @@ static void ixdp2x00_irq_handler(unsigne
 	static struct slowport_cfg old_cfg;
 	int i;
 
-	desc->chip->mask(irq);
+	desc->chip->mask(irq, desc);
 
 #ifdef CONFIG_ARCH_IXDP2400
 	if (machine_is_ixdp2400())
@@ -134,7 +134,7 @@ static void ixdp2x00_irq_handler(unsigne
 		}
 	}
 
-	desc->chip->unmask(irq);
+	desc->chip->unmask(irq, desc);
 }
 
 static struct irq_chip ixdp2x00_cpld_irq_chip = {
arch/arm/mach-ixp2000/ixdp2x01.c +4 -4
Index: linux-2.6/arch/arm/mach-ixp2000/ixdp2x01.c
===================================================================
@@ -49,13 +49,13 @@
 /*************************************************************************
  * IXDP2x01 IRQ Handling
  *************************************************************************/
-static void ixdp2x01_irq_mask(unsigned int irq)
+static void ixdp2x01_irq_mask(unsigned int irq, struct irq_desc *desc)
 {
 	ixp2000_reg_wrb(IXDP2X01_INT_MASK_SET_REG,
 				IXP2000_BOARD_IRQ_MASK(irq));
 }
 
-static void ixdp2x01_irq_unmask(unsigned int irq)
+static void ixdp2x01_irq_unmask(unsigned int irq, struct irq_desc *desc)
 {
 	ixp2000_reg_write(IXDP2X01_INT_MASK_CLR_REG,
 				IXP2000_BOARD_IRQ_MASK(irq));
@@ -68,7 +68,7 @@ static void ixdp2x01_irq_handler(unsigne
 	u32 ex_interrupt;
 	int i;
 
-	desc->chip->mask(irq);
+	desc->chip->mask(irq, desc);
 
 	ex_interrupt = *IXDP2X01_INT_STAT_REG & valid_irq_mask;
 
@@ -84,7 +84,7 @@ static void ixdp2x01_irq_handler(unsigne
 		}
 	}
 
-	desc->chip->unmask(irq);
+	desc->chip->unmask(irq, desc);
 }
 
 static struct irq_chip ixdp2x01_irq_chip = {
arch/arm/mach-ixp23xx/core.c +8 -8
Index: linux-2.6/arch/arm/mach-ixp23xx/core.c
===================================================================
@@ -173,7 +173,7 @@ static int ixp23xx_irq_set_type(unsigned
 	return 0;
 }
 
-static void ixp23xx_irq_mask(unsigned int irq)
+static void ixp23xx_irq_mask(unsigned int irq, struct irq_desc *desc)
 {
 	volatile unsigned long *intr_reg;
 
@@ -184,7 +184,7 @@ static void ixp23xx_irq_mask(unsigned in
 	*intr_reg &= ~(1 << (irq % 32));
 }
 
-static void ixp23xx_irq_ack(unsigned int irq)
+static void ixp23xx_irq_ack(unsigned int irq, struct irq_desc *desc)
 {
 	int line = irq - IRQ_IXP23XX_GPIO6 + 6;
 
@@ -198,7 +198,7 @@ static void ixp23xx_irq_ack(unsigned int
  * Level triggered interrupts on GPIO lines can only be cleared when the
  * interrupt condition disappears.
  */
-static void ixp23xx_irq_level_unmask(unsigned int irq)
+static void ixp23xx_irq_level_unmask(unsigned int irq, struct irq_desc *desc)
 {
 	volatile unsigned long *intr_reg;
 
@@ -211,7 +211,7 @@ static void ixp23xx_irq_level_unmask(uns
 	*intr_reg |= (1 << (irq % 32));
 }
 
-static void ixp23xx_irq_edge_unmask(unsigned int irq)
+static void ixp23xx_irq_edge_unmask(unsigned int irq, struct irq_desc *desc)
 {
 	volatile unsigned long *intr_reg;
 
@@ -236,12 +236,12 @@ static struct irq_chip ixp23xx_irq_edge_
 	.set_type	= ixp23xx_irq_set_type
 };
 
-static void ixp23xx_pci_irq_mask(unsigned int irq)
+static void ixp23xx_pci_irq_mask(unsigned int irq, struct irq_desc *desc)
 {
 	*IXP23XX_PCI_XSCALE_INT_ENABLE &= ~(1 << (IRQ_IXP23XX_INTA + 27 - irq));
 }
 
-static void ixp23xx_pci_irq_unmask(unsigned int irq)
+static void ixp23xx_pci_irq_unmask(unsigned int irq, struct irq_desc *desc)
 {
 	*IXP23XX_PCI_XSCALE_INT_ENABLE |= (1 << (IRQ_IXP23XX_INTA + 27 - irq));
 }
@@ -256,7 +256,7 @@ static void pci_handler(unsigned int irq
 
 	pci_interrupt = *IXP23XX_PCI_XSCALE_INT_STATUS;
 
-	desc->chip->ack(irq);
+	desc->chip->ack(irq, desc);
 
 	/* See which PCI_INTA, or PCI_INTB interrupted */
 	if (pci_interrupt & (1 << 26)) {
@@ -269,7 +269,7 @@ static void pci_handler(unsigned int irq
 
 	generic_handle_irq(irqno);
 
-	desc->chip->unmask(irq);
+	desc->chip->unmask(irq, desc);
 }
 
 static struct irq_chip ixp23xx_pci_irq_chip = {
arch/arm/mach-ixp23xx/ixdp2351.c +8 -8
Index: linux-2.6/arch/arm/mach-ixp23xx/ixdp2351.c
===================================================================
@@ -48,12 +48,12 @@
 /*
  * IXDP2351 Interrupt Handling
  */
-static void ixdp2351_inta_mask(unsigned int irq)
+static void ixdp2351_inta_mask(unsigned int irq, struct irq_desc *desc)
 {
 	*IXDP2351_CPLD_INTA_MASK_SET_REG = IXDP2351_INTA_IRQ_MASK(irq);
 }
 
-static void ixdp2351_inta_unmask(unsigned int irq)
+static void ixdp2351_inta_unmask(unsigned int irq, struct irq_desc *desc)
 {
 	*IXDP2351_CPLD_INTA_MASK_CLR_REG = IXDP2351_INTA_IRQ_MASK(irq);
 }
@@ -64,7 +64,7 @@ static void ixdp2351_inta_handler(unsign
 		*IXDP2351_CPLD_INTA_STAT_REG & IXDP2351_INTA_IRQ_VALID;
 	int i;
 
-	desc->chip->mask(irq);
+	desc->chip->mask(irq, desc);
 
 	for (i = 0; i < IXDP2351_INTA_IRQ_NUM; i++) {
 		if (ex_interrupt & (1 << i)) {
@@ -74,7 +74,7 @@ static void ixdp2351_inta_handler(unsign
 		}
 	}
 
-	desc->chip->unmask(irq);
+	desc->chip->unmask(irq, desc);
 }
 
 static struct irq_chip ixdp2351_inta_chip = {
@@ -83,12 +83,12 @@ static struct irq_chip ixdp2351_inta_chi
 	.unmask	= ixdp2351_inta_unmask
 };
 
-static void ixdp2351_intb_mask(unsigned int irq)
+static void ixdp2351_intb_mask(unsigned int irq, struct irq_desc *desc)
 {
 	*IXDP2351_CPLD_INTB_MASK_SET_REG = IXDP2351_INTB_IRQ_MASK(irq);
 }
 
-static void ixdp2351_intb_unmask(unsigned int irq)
+static void ixdp2351_intb_unmask(unsigned int irq, struct irq_desc *desc)
 {
 	*IXDP2351_CPLD_INTB_MASK_CLR_REG = IXDP2351_INTB_IRQ_MASK(irq);
 }
@@ -99,7 +99,7 @@ static void ixdp2351_intb_handler(unsign
 		*IXDP2351_CPLD_INTB_STAT_REG & IXDP2351_INTB_IRQ_VALID;
 	int i;
 
-	desc->chip->ack(irq);
+	desc->chip->ack(irq, desc);
 
 	for (i = 0; i < IXDP2351_INTB_IRQ_NUM; i++) {
 		if (ex_interrupt & (1 << i)) {
@@ -109,7 +109,7 @@ static void ixdp2351_intb_handler(unsign
 		}
 	}
 
-	desc->chip->unmask(irq);
+	desc->chip->unmask(irq, desc);
 }
 
 static struct irq_chip ixdp2351_intb_chip = {
arch/arm/mach-ixp4xx/common.c +3 -3
Index: linux-2.6/arch/arm/mach-ixp4xx/common.c
===================================================================
@@ -193,7 +193,7 @@ static int ixp4xx_set_irq_type(unsigned
 	return 0;
 }
 
-static void ixp4xx_irq_mask(unsigned int irq)
+static void ixp4xx_irq_mask(unsigned int irq, struct irq_desc *desc)
 {
 	if ((cpu_is_ixp46x() || cpu_is_ixp43x()) && irq >= 32)
 		*IXP4XX_ICMR2 &= ~(1 << (irq - 32));
@@ -201,7 +201,7 @@ static void ixp4xx_irq_mask(unsigned int
 		*IXP4XX_ICMR &= ~(1 << irq);
 }
 
-static void ixp4xx_irq_ack(unsigned int irq)
+static void ixp4xx_irq_ack(unsigned int irq, struct irq_desc *desc)
 {
 	int line = (irq < 32) ? irq2gpio[irq] : -1;
 
@@ -213,7 +213,7 @@ static void ixp4xx_irq_ack(unsigned int
  * Level triggered interrupts on GPIO lines can only be cleared when the
  * interrupt condition disappears.
  */
-static void ixp4xx_irq_unmask(unsigned int irq)
+static void ixp4xx_irq_unmask(unsigned int irq, struct irq_desc *desc)
 {
 	if (!(ixp4xx_irq_edge & (1 << irq)))
 		ixp4xx_irq_ack(irq);
arch/arm/mach-ks8695/irq.c +3 -3
Index: linux-2.6/arch/arm/mach-ks8695/irq.c
===================================================================
@@ -34,7 +34,7 @@
 #include <mach/regs-irq.h>
 #include <mach/regs-gpio.h>
 
-static void ks8695_irq_mask(unsigned int irqno)
+static void ks8695_irq_mask(unsigned int irqno, struct irq_desc *desc)
 {
 	unsigned long inten;
 
@@ -44,7 +44,7 @@ static void ks8695_irq_mask(unsigned int
 	__raw_writel(inten, KS8695_IRQ_VA + KS8695_INTEN);
 }
 
-static void ks8695_irq_unmask(unsigned int irqno)
+static void ks8695_irq_unmask(unsigned int irqno, struct irq_desc *desc)
 {
 	unsigned long inten;
 
@@ -54,7 +54,7 @@ static void ks8695_irq_unmask(unsigned i
 	__raw_writel(inten, KS8695_IRQ_VA + KS8695_INTEN);
 }
 
-static void ks8695_irq_ack(unsigned int irqno)
+static void ks8695_irq_ack(unsigned int irqno, struct irq_desc *desc)
 {
 	__raw_writel((1 << irqno), KS8695_IRQ_VA + KS8695_INTST);
 }
arch/arm/mach-l7200/core.c +2 -2
Index: linux-2.6/arch/arm/mach-l7200/core.c
===================================================================
@@ -45,12 +45,12 @@
 #define FIQ_SOFT	(*(volatile unsigned long *) (IRQ_BASE + 0x110))
 #define FIQ_SOURCESEL	(*(volatile unsigned long *) (IRQ_BASE + 0x118))
 
-static void l7200_mask_irq(unsigned int irq)
+static void l7200_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	IRQ_ENABLECLEAR = 1 << irq;
 }
 
-static void l7200_unmask_irq(unsigned int irq)
+static void l7200_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	IRQ_ENABLE = 1 << irq;
 }
arch/arm/mach-lh7a40x/arch-kev7a400.c +3 -3
Index: linux-2.6/arch/arm/mach-lh7a40x/arch-kev7a400.c
===================================================================
@@ -46,18 +46,18 @@ void __init kev7a400_map_io(void)
 
 static u16 CPLD_IRQ_mask;	/* Mask for CPLD IRQs, 1 == unmasked */
 
-static void kev7a400_ack_cpld_irq (u32 irq)
+static void kev7a400_ack_cpld_irq(u32 irq, struct irq_desc *desc)
 {
 	CPLD_CL_INT = 1 << (irq - IRQ_KEV7A400_CPLD);
 }
 
-static void kev7a400_mask_cpld_irq (u32 irq)
+static void kev7a400_mask_cpld_irq(u32 irq, struct irq_desc *desc)
 {
 	CPLD_IRQ_mask &= ~(1 << (irq - IRQ_KEV7A400_CPLD));
 	CPLD_WR_PB_INT_MASK = CPLD_IRQ_mask;
 }
 
-static void kev7a400_unmask_cpld_irq (u32 irq)
+static void kev7a400_unmask_cpld_irq(u32 irq, struct irq_desc *desc)
 {
 	CPLD_IRQ_mask |= 1 << (irq - IRQ_KEV7A400_CPLD);
 	CPLD_WR_PB_INT_MASK = CPLD_IRQ_mask;
arch/arm/mach-lh7a40x/arch-lpd7a40x.c +5 -5
Index: linux-2.6/arch/arm/mach-lh7a40x/arch-lpd7a40x.c
===================================================================
@@ -159,7 +159,7 @@ static void __init lpd7a40x_init (void)
 #endif
 }
 
-static void lh7a40x_ack_cpld_irq (u32 irq)
+static void lh7a40x_ack_cpld_irq(u32 irq, struct irq_desc *desc)
 {
 	/* CPLD doesn't have ack capability, but some devices may */
 
@@ -172,7 +172,7 @@ static void lh7a40x_ack_cpld_irq (u32 ir
 #endif
 }
 
-static void lh7a40x_mask_cpld_irq (u32 irq)
+static void lh7a40x_mask_cpld_irq(u32 irq, struct irq_desc *desc)
 {
 	switch (irq) {
 	case IRQ_LPD7A40X_ETH_INT:
@@ -186,7 +186,7 @@ static void lh7a40x_mask_cpld_irq (u32 i
 	}
 }
 
-static void lh7a40x_unmask_cpld_irq (u32 irq)
+static void lh7a40x_unmask_cpld_irq(u32 irq, struct irq_desc *desc)
 {
 	switch (irq) {
 	case IRQ_LPD7A40X_ETH_INT:
@@ -211,7 +211,7 @@ static void lpd7a40x_cpld_handler (unsig
 {
 	unsigned int mask = CPLD_INTERRUPTS;
 
-	desc->chip->ack (irq);
+	desc->chip->ack(irq, desc);
 
 	if ((mask & (1<<0)) == 0)	/* WLAN */
 		generic_handle_irq(IRQ_LPD7A40X_ETH_INT);
@@ -221,7 +221,7 @@ static void lpd7a40x_cpld_handler (unsig
 		generic_handle_irq(IRQ_TOUCH);
 #endif
 
-	desc->chip->unmask (irq); /* Level-triggered need this */
+	desc->chip->unmask(irq, desc); /* Level-triggered need this */
 }
 
 
arch/arm/mach-lh7a40x/irq-lh7a400.c +3 -3
Index: linux-2.6/arch/arm/mach-lh7a40x/irq-lh7a400.c
===================================================================
@@ -21,17 +21,17 @@
 
   /* CPU IRQ handling */
 
-static void lh7a400_mask_irq (u32 irq)
+static void lh7a400_mask_irq(u32 irq, struct irq_desc *desc)
 {
 	INTC_INTENC = (1 << irq);
 }
 
-static void lh7a400_unmask_irq (u32 irq)
+static void lh7a400_unmask_irq(u32 irq, struct irq_desc *desc)
 {
 	INTC_INTENS = (1 << irq);
 }
 
-static void lh7a400_ack_gpio_irq (u32 irq)
+static void lh7a400_ack_gpio_irq(u32 irq, struct irq_desc *desc)
 {
 	GPIO_GPIOFEOI = (1 << IRQ_TO_GPIO (irq));
 	INTC_INTENC = (1 << irq);
arch/arm/mach-lh7a40x/irq-lh7a404.c +6 -6
Index: linux-2.6/arch/arm/mach-lh7a40x/irq-lh7a404.c
===================================================================
@@ -43,33 +43,33 @@ static unsigned char irq_pri_vic2[] = {
 
   /* CPU IRQ handling */
 
-static void lh7a404_vic1_mask_irq (u32 irq)
+static void lh7a404_vic1_mask_irq(u32 irq, struct irq_desc *desc)
 {
 	VIC1_INTENCLR = (1 << irq);
 }
 
-static void lh7a404_vic1_unmask_irq (u32 irq)
+static void lh7a404_vic1_unmask_irq(u32 irq, struct irq_desc *desc)
 {
 	VIC1_INTEN = (1 << irq);
 }
 
-static void lh7a404_vic2_mask_irq (u32 irq)
+static void lh7a404_vic2_mask_irq(u32 irq, struct irq_desc *desc)
 {
 	VIC2_INTENCLR = (1 << (irq - 32));
 }
 
-static void lh7a404_vic2_unmask_irq (u32 irq)
+static void lh7a404_vic2_unmask_irq(u32 irq, struct irq_desc *desc)
 {
 	VIC2_INTEN = (1 << (irq - 32));
 }
 
-static void lh7a404_vic1_ack_gpio_irq (u32 irq)
+static void lh7a404_vic1_ack_gpio_irq(u32 irq, struct irq_desc *desc)
 {
 	GPIO_GPIOFEOI = (1 << IRQ_TO_GPIO (irq));
 	VIC1_INTENCLR = (1 << irq);
 }
 
-static void lh7a404_vic2_ack_gpio_irq (u32 irq)
+static void lh7a404_vic2_ack_gpio_irq(u32 irq, struct irq_desc *desc)
 {
 	GPIO_GPIOFEOI = (1 << IRQ_TO_GPIO (irq));
 	VIC2_INTENCLR = (1 << irq);
arch/arm/mach-lh7a40x/irq-lpd7a40x.c +5 -5
Index: linux-2.6/arch/arm/mach-lh7a40x/irq-lpd7a40x.c
===================================================================
@@ -20,12 +20,12 @@
 
 #include "common.h"
 
-static void lh7a40x_ack_cpld_irq (u32 irq)
+static void lh7a40x_ack_cpld_irq(u32 irq, struct irq_desc *desc)
 {
 	/* CPLD doesn't have ack capability */
 }
 
-static void lh7a40x_mask_cpld_irq (u32 irq)
+static void lh7a40x_mask_cpld_irq(u32 irq, struct irq_desc *desc)
 {
 	switch (irq) {
 	case IRQ_LPD7A40X_ETH_INT:
@@ -37,7 +37,7 @@ static void lh7a40x_mask_cpld_irq (u32 i
 	}
 }
 
-static void lh7a40x_unmask_cpld_irq (u32 irq)
+static void lh7a40x_unmask_cpld_irq(u32 irq, struct irq_desc *desc)
 {
 	switch (irq) {
 	case IRQ_LPD7A40X_ETH_INT:
@@ -60,7 +60,7 @@ static void lh7a40x_cpld_handler (unsign
 {
 	unsigned int mask = CPLD_INTERRUPTS;
 
-	desc->chip->ack (irq);
+	desc->chip->ack(irq, desc);
 
 	if ((mask & 0x1) == 0)	/* WLAN */
 		generic_handle_irq(IRQ_LPD7A40X_ETH_INT);
@@ -68,7 +68,7 @@ static void lh7a40x_cpld_handler (unsign
 	if ((mask & 0x2) == 0)	/* Touch */
 		generic_handle_irq(IRQ_LPD7A400_TS);
 
-	desc->chip->unmask (irq); /* Level-triggered need this */
+	desc->chip->unmask(irq, desc); /* Level-triggered need this */
 }
 
 
arch/arm/mach-mmp/irq.c +2 -2
Index: linux-2.6/arch/arm/mach-mmp/irq.c
===================================================================
@@ -25,12 +25,12 @@
 #define PRIORITY_DEFAULT	0x1
 #define PRIORITY_NONE		0x0	/* means IRQ disabled */
 
-static void icu_mask_irq(unsigned int irq)
+static void icu_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	__raw_writel(PRIORITY_NONE, ICU_INT_CONF(irq));
 }
 
-static void icu_unmask_irq(unsigned int irq)
+static void icu_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	__raw_writel(IRQ_ROUTE_TO_AP | PRIORITY_DEFAULT, ICU_INT_CONF(irq));
 }
arch/arm/mach-mx3/mx31ads.c +3 -3
Index: linux-2.6/arch/arm/mach-mx3/mx31ads.c
===================================================================
@@ -142,7 +142,7 @@ static void mx31ads_expio_irq_handler(u3
  * Disable an expio pin's interrupt by setting the bit in the imr.
  * @param irq           an expio virtual irq number
  */
-static void expio_mask_irq(u32 irq)
+static void expio_mask_irq(u32 irq, struct irq_desc *desc)
 {
 	u32 expio = MXC_IRQ_TO_EXPIO(irq);
 	/* mask the interrupt */
@@ -154,7 +154,7 @@ static void expio_mask_irq(u32 irq)
  * Acknowledge an expanded io pin's interrupt by clearing the bit in the isr.
  * @param irq           an expanded io virtual irq number
  */
-static void expio_ack_irq(u32 irq)
+static void expio_ack_irq(u32 irq, struct irq_desc *desc)
 {
 	u32 expio = MXC_IRQ_TO_EXPIO(irq);
 	/* clear the interrupt status */
@@ -165,7 +165,7 @@ static void expio_ack_irq(u32 irq)
  * Enable a expio pin's interrupt by clearing the bit in the imr.
  * @param irq           a expio virtual irq number
  */
-static void expio_unmask_irq(u32 irq)
+static void expio_unmask_irq(u32 irq, struct irq_desc *desc)
 {
 	u32 expio = MXC_IRQ_TO_EXPIO(irq);
 	/* unmask the interrupt */
arch/arm/mach-mx3/mx31pdk.c +3 -3
Index: linux-2.6/arch/arm/mach-mx3/mx31pdk.c
===================================================================
@@ -116,7 +116,7 @@ static void mx31pdk_expio_irq_handler(ui
  * Disable an expio pin's interrupt by setting the bit in the imr.
  * @param irq           an expio virtual irq number
  */
-static void expio_mask_irq(uint32_t irq)
+static void expio_mask_irq(uint32_t irq, struct irq_desc *desc)
 {
 	uint16_t reg;
 	uint32_t expio = MXC_IRQ_TO_EXPIO(irq);
@@ -131,7 +131,7 @@ static void expio_mask_irq(uint32_t irq)
  * Acknowledge an expanded io pin's interrupt by clearing the bit in the isr.
  * @param irq           an expanded io virtual irq number
  */
-static void expio_ack_irq(uint32_t irq)
+static void expio_ack_irq(uint32_t irq, struct irq_desc *desc)
 {
 	uint32_t expio = MXC_IRQ_TO_EXPIO(irq);
 
@@ -146,7 +146,7 @@ static void expio_ack_irq(uint32_t irq)
  * Enable a expio pin's interrupt by clearing the bit in the imr.
  * @param irq           a expio virtual irq number
  */
-static void expio_unmask_irq(uint32_t irq)
+static void expio_unmask_irq(uint32_t irq, struct irq_desc *desc)
 {
 	uint16_t reg;
 	uint32_t expio = MXC_IRQ_TO_EXPIO(irq);
arch/arm/mach-netx/generic.c +3 -3
Index: linux-2.6/arch/arm/mach-netx/generic.c
===================================================================
@@ -119,7 +119,7 @@ netx_hif_irq_type(unsigned int _irq, uns
 }
 
 static void
-netx_hif_ack_irq(unsigned int _irq)
+netx_hif_ack_irq(unsigned int _irq, struct irq_desc *desc)
 {
 	unsigned int val, irq;
 
@@ -134,7 +134,7 @@ netx_hif_ack_irq(unsigned int _irq)
 }
 
 static void
-netx_hif_mask_irq(unsigned int _irq)
+netx_hif_mask_irq(unsigned int _irq, struct irq_desc *desc)
 {
 	unsigned int val, irq;
 
@@ -146,7 +146,7 @@ netx_hif_mask_irq(unsigned int _irq)
 }
 
 static void
-netx_hif_unmask_irq(unsigned int _irq)
+netx_hif_unmask_irq(unsigned int _irq, struct irq_desc *desc)
 {
 	unsigned int val, irq;
 
arch/arm/mach-nomadik/gpio.c +3 -3
Index: linux-2.6/arch/arm/mach-nomadik/gpio.c
===================================================================
@@ -95,7 +95,7 @@ static inline int nmk_gpio_get_bitmask(i
 	return 1 << (gpio % 32);
 }
 
-static void nmk_gpio_irq_ack(unsigned int irq)
+static void nmk_gpio_irq_ack(unsigned int irq, struct irq_desc *desc)
 {
 	int gpio;
 	struct nmk_gpio_chip *nmk_chip;
@@ -107,7 +107,7 @@ static void nmk_gpio_irq_ack(unsigned in
 	writel(nmk_gpio_get_bitmask(gpio), nmk_chip->addr + NMK_GPIO_IC);
 }
 
-static void nmk_gpio_irq_mask(unsigned int irq)
+static void nmk_gpio_irq_mask(unsigned int irq, struct irq_desc *desc)
 {
 	int gpio;
 	struct nmk_gpio_chip *nmk_chip;
@@ -135,7 +135,7 @@ static void nmk_gpio_irq_mask(unsigned i
 	spin_unlock_irqrestore(&nmk_chip->lock, flags);
 };
 
-static void nmk_gpio_irq_unmask(unsigned int irq)
+static void nmk_gpio_irq_unmask(unsigned int irq, struct irq_desc *desc)
 {
 	int gpio;
 	struct nmk_gpio_chip *nmk_chip;
arch/arm/mach-ns9xxx/board-a9m9750dev.c +6 -6
Index: linux-2.6/arch/arm/mach-ns9xxx/board-a9m9750dev.c
===================================================================
@@ -37,12 +37,12 @@ void __init board_a9m9750dev_map_io(void
 		     ARRAY_SIZE(board_a9m9750dev_io_desc));
 }
 
-static void a9m9750dev_fpga_ack_irq(unsigned int irq)
+static void a9m9750dev_fpga_ack_irq(unsigned int irq, struct irq_desc *desc)
 {
 	/* nothing */
 }
 
-static void a9m9750dev_fpga_mask_irq(unsigned int irq)
+static void a9m9750dev_fpga_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	u8 ier;
 
@@ -53,13 +53,13 @@ static void a9m9750dev_fpga_mask_irq(uns
 	__raw_writeb(ier, FPGA_IER);
 }
 
-static void a9m9750dev_fpga_maskack_irq(unsigned int irq)
+static void a9m9750dev_fpga_maskack_irq(unsigned int irq, struct irq_desc *desc)
 {
 	a9m9750dev_fpga_mask_irq(irq);
 	a9m9750dev_fpga_ack_irq(irq);
 }
 
-static void a9m9750dev_fpga_unmask_irq(unsigned int irq)
+static void a9m9750dev_fpga_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	u8 ier;
 
@@ -82,7 +82,7 @@ static void a9m9750dev_fpga_demux_handle
 {
 	u8 stat = __raw_readb(FPGA_ISR);
 
-	desc->chip->mask_ack(irq);
+	desc->chip->mask_ack(irq, desc);
 
 	while (stat != 0) {
 		int irqno = fls(stat) - 1;
@@ -92,7 +92,7 @@ static void a9m9750dev_fpga_demux_handle
 		generic_handle_irq(FPGA_IRQ(irqno));
 	}
 
-	desc->chip->unmask(irq);
+	desc->chip->unmask(irq, desc);
 }
 
 void __init board_a9m9750dev_init_irq(void)
arch/arm/mach-ns9xxx/irq.c +6 -6
Index: linux-2.6/arch/arm/mach-ns9xxx/irq.c
===================================================================
@@ -22,7 +22,7 @@
 #define irq2prio(i) (i)
 #define prio2irq(p) (p)
 
-static void ns9xxx_mask_irq(unsigned int irq)
+static void ns9xxx_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	/* XXX: better use cpp symbols */
 	int prio = irq2prio(irq);
@@ -31,18 +31,18 @@ static void ns9xxx_mask_irq(unsigned int
 	__raw_writel(ic, SYS_IC(prio / 4));
 }
 
-static void ns9xxx_ack_irq(unsigned int irq)
+static void ns9xxx_ack_irq(unsigned int irq, struct irq_desc *desc)
 {
 	__raw_writel(0, SYS_ISRADDR);
 }
 
-static void ns9xxx_maskack_irq(unsigned int irq)
+static void ns9xxx_maskack_irq(unsigned int irq, struct irq_desc *desc)
 {
 	ns9xxx_mask_irq(irq);
 	ns9xxx_ack_irq(irq);
 }
 
-static void ns9xxx_unmask_irq(unsigned int irq)
+static void ns9xxx_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	/* XXX: better use cpp symbols */
 	int prio = irq2prio(irq);
@@ -92,10 +92,10 @@ static void handle_prio_irq(unsigned int
 
 	if (desc->status & IRQ_DISABLED)
 out_mask:
-		desc->chip->mask(irq);
+		desc->chip->mask(irq, desc);
 
 	/* ack unconditionally to unmask lower prio irqs */
-	desc->chip->ack(irq);
+	desc->chip->ack(irq, desc);
 
 	raw_spin_unlock(&desc->lock);
 }
arch/arm/mach-omap1/fpga.c +4 -4
Index: linux-2.6/arch/arm/mach-omap1/fpga.c
===================================================================
@@ -30,7 +30,7 @@
 #include <plat/fpga.h>
 #include <mach/gpio.h>
 
-static void fpga_mask_irq(unsigned int irq)
+static void fpga_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	irq -= OMAP_FPGA_IRQ_BASE;
 
@@ -58,12 +58,12 @@ static inline u32 get_fpga_unmasked_irqs
 }
 
 
-static void fpga_ack_irq(unsigned int irq)
+static void fpga_ack_irq(unsigned int irq, struct irq_desc *desc)
 {
 	/* Don't need to explicitly ACK FPGA interrupts */
 }
 
-static void fpga_unmask_irq(unsigned int irq)
+static void fpga_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	irq -= OMAP_FPGA_IRQ_BASE;
 
@@ -78,7 +78,7 @@ static void fpga_unmask_irq(unsigned int
 			      | (1 << (irq - 16))), INNOVATOR_FPGA_IMR2);
 }
 
-static void fpga_mask_ack_irq(unsigned int irq)
+static void fpga_mask_ack_irq(unsigned int irq, struct irq_desc *desc)
 {
 	fpga_mask_irq(irq);
 	fpga_ack_irq(irq);
arch/arm/mach-omap1/irq.c +6 -6
Index: linux-2.6/arch/arm/mach-omap1/irq.c
===================================================================
@@ -70,7 +70,7 @@ static inline void irq_bank_writel(unsig
 	omap_writel(value, irq_banks[bank].base_reg + offset);
 }
 
-static void omap_ack_irq(unsigned int irq)
+static void omap_ack_irq(unsigned int irq, struct irq_desc *desc)
 {
 	if (irq > 31)
 		omap_writel(0x1, OMAP_IH2_BASE + IRQ_CONTROL_REG_OFFSET);
@@ -78,7 +78,7 @@ static void omap_ack_irq(unsigned int ir
 	omap_writel(0x1, OMAP_IH1_BASE + IRQ_CONTROL_REG_OFFSET);
 }
 
-static void omap_mask_irq(unsigned int irq)
+static void omap_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	int bank = IRQ_BANK(irq);
 	u32 l;
@@ -88,7 +88,7 @@ static void omap_mask_irq(unsigned int i
 	omap_writel(l, irq_banks[bank].base_reg + IRQ_MIR_REG_OFFSET);
 }
 
-static void omap_unmask_irq(unsigned int irq)
+static void omap_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	int bank = IRQ_BANK(irq);
 	u32 l;
@@ -98,10 +98,10 @@ static void omap_unmask_irq(unsigned int
 	omap_writel(l, irq_banks[bank].base_reg + IRQ_MIR_REG_OFFSET);
 }
 
-static void omap_mask_ack_irq(unsigned int irq)
+static void omap_mask_ack_irq(unsigned int irq, struct irq_desc *desc)
 {
-	omap_mask_irq(irq);
-	omap_ack_irq(irq);
+	omap_mask_irq(irq, desc);
+	omap_ack_irq(irq, desc);
 }
 
 static int omap_wake_irq(unsigned int irq, unsigned int enable)
arch/arm/mach-pnx4008/irq.c +3 -3
Index: linux-2.6/arch/arm/mach-pnx4008/irq.c
===================================================================
@@ -36,17 +36,17 @@
 
 static u8 pnx4008_irq_type[NR_IRQS] = PNX4008_IRQ_TYPES;
 
-static void pnx4008_mask_irq(unsigned int irq)
+static void pnx4008_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	__raw_writel(__raw_readl(INTC_ER(irq)) & ~INTC_BIT(irq), INTC_ER(irq));	/* mask interrupt */
 }
 
-static void pnx4008_unmask_irq(unsigned int irq)
+static void pnx4008_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	__raw_writel(__raw_readl(INTC_ER(irq)) | INTC_BIT(irq), INTC_ER(irq));	/* unmask interrupt */
 }
 
-static void pnx4008_mask_ack_irq(unsigned int irq)
+static void pnx4008_mask_ack_irq(unsigned int irq, struct irq_desc *desc)
 {
 	__raw_writel(__raw_readl(INTC_ER(irq)) & ~INTC_BIT(irq), INTC_ER(irq));	/* mask interrupt */
 	__raw_writel(INTC_BIT(irq), INTC_SR(irq));	/* clear interrupt status */
arch/arm/mach-pxa/balloon3.c +3 -3
Index: linux-2.6/arch/arm/mach-pxa/balloon3.c
===================================================================
@@ -73,14 +73,14 @@ int __init parse_balloon3_features(char
 }
 early_param("balloon3_features", parse_balloon3_features);
 
-static void balloon3_mask_irq(unsigned int irq)
+static void balloon3_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	int balloon3_irq = (irq - BALLOON3_IRQ(0));
 	balloon3_irq_enabled &= ~(1 << balloon3_irq);
 	__raw_writel(~balloon3_irq_enabled, BALLOON3_INT_CONTROL_REG);
 }
 
-static void balloon3_unmask_irq(unsigned int irq)
+static void balloon3_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	int balloon3_irq = (irq - BALLOON3_IRQ(0));
 	balloon3_irq_enabled |= (1 << balloon3_irq);
@@ -102,7 +102,7 @@ static void balloon3_irq_handler(unsigne
 	do {
 		/* clear useless edge notification */
 		if (desc->chip->ack)
-			desc->chip->ack(BALLOON3_AUX_NIRQ);
+			desc->chip->ack(BALLOON3_AUX_NIRQ, irq_to_desc(BALLOON3_AUX_NIRQ));
 		while (pending) {
 			irq = BALLOON3_IRQ(0) + __ffs(pending);
 			generic_handle_irq(irq);
arch/arm/mach-pxa/irq.c +5 -5
Index: linux-2.6/arch/arm/mach-pxa/irq.c
===================================================================
@@ -37,12 +37,12 @@
 
 static int pxa_internal_irq_nr;
 
-static void pxa_mask_irq(unsigned int irq)
+static void pxa_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	_ICMR(irq) &= ~(1 << IRQ_BIT(irq));
 }
 
-static void pxa_unmask_irq(unsigned int irq)
+static void pxa_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	_ICMR(irq) |= 1 << IRQ_BIT(irq);
 }
@@ -79,17 +79,17 @@ static int pxa_set_low_gpio_type(unsigne
 	return 0;
 }
 
-static void pxa_ack_low_gpio(unsigned int irq)
+static void pxa_ack_low_gpio(unsigned int irq, struct irq_desc *desc)
 {
 	GEDR0 = (1 << (irq - IRQ_GPIO0));
 }
 
-static void pxa_mask_low_gpio(unsigned int irq)
+static void pxa_mask_low_gpio(unsigned int irq, struct irq_desc *desc)
 {
 	ICMR &= ~(1 << (irq - PXA_IRQ(0)));
 }
 
-static void pxa_unmask_low_gpio(unsigned int irq)
+static void pxa_unmask_low_gpio(unsigned int irq, struct irq_desc *desc)
 {
 	ICMR |= 1 << (irq - PXA_IRQ(0));
 }
arch/arm/mach-pxa/lpd270.c +2 -2
Index: linux-2.6/arch/arm/mach-pxa/lpd270.c
===================================================================
@@ -90,7 +90,7 @@ static unsigned long lpd270_pin_config[]
 
 static unsigned int lpd270_irq_enabled;
 
-static void lpd270_mask_irq(unsigned int irq)
+static void lpd270_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	int lpd270_irq = irq - LPD270_IRQ(0);
 
@@ -100,7 +100,7 @@ static void lpd270_mask_irq(unsigned int
 	__raw_writew(lpd270_irq_enabled, LPD270_INT_MASK);
 }
 
-static void lpd270_unmask_irq(unsigned int irq)
+static void lpd270_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	int lpd270_irq = irq - LPD270_IRQ(0);
 
arch/arm/mach-pxa/lubbock.c +2 -2
Index: linux-2.6/arch/arm/mach-pxa/lubbock.c
===================================================================
@@ -133,13 +133,13 @@ EXPORT_SYMBOL(lubbock_set_misc_wr);
 
 static unsigned long lubbock_irq_enabled;
 
-static void lubbock_mask_irq(unsigned int irq)
+static void lubbock_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	int lubbock_irq = (irq - LUBBOCK_IRQ(0));
 	LUB_IRQ_MASK_EN = (lubbock_irq_enabled &= ~(1 << lubbock_irq));
 }
 
-static void lubbock_unmask_irq(unsigned int irq)
+static void lubbock_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	int lubbock_irq = (irq - LUBBOCK_IRQ(0));
 	/* the irq can be acknowledged only if deasserted, so it's done here */
arch/arm/mach-pxa/mainstone.c +2 -2
Index: linux-2.6/arch/arm/mach-pxa/mainstone.c
===================================================================
@@ -137,13 +137,13 @@ static unsigned long mainstone_pin_confi
 
 static unsigned long mainstone_irq_enabled;
 
-static void mainstone_mask_irq(unsigned int irq)
+static void mainstone_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	int mainstone_irq = (irq - MAINSTONE_IRQ(0));
 	MST_INTMSKENA = (mainstone_irq_enabled &= ~(1 << mainstone_irq));
 }
 
-static void mainstone_unmask_irq(unsigned int irq)
+static void mainstone_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	int mainstone_irq = (irq - MAINSTONE_IRQ(0));
 	/* the irq can be acknowledged only if deasserted, so it's done here */
arch/arm/mach-pxa/pcm990-baseboard.c +2 -2
Index: linux-2.6/arch/arm/mach-pxa/pcm990-baseboard.c
===================================================================
@@ -235,13 +235,13 @@ static struct platform_device pcm990_bac
 
 static unsigned long pcm990_irq_enabled;
 
-static void pcm990_mask_ack_irq(unsigned int irq)
+static void pcm990_mask_ack_irq(unsigned int irq, struct irq_desc *desc)
 {
 	int pcm990_irq = (irq - PCM027_IRQ(0));
 	PCM990_INTMSKENA = (pcm990_irq_enabled &= ~(1 << pcm990_irq));
 }
 
-static void pcm990_unmask_irq(unsigned int irq)
+static void pcm990_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	int pcm990_irq = (irq - PCM027_IRQ(0));
 	/* the irq can be acknowledged only if deasserted, so it's done here */
arch/arm/mach-pxa/pxa3xx.c +3 -3
Index: linux-2.6/arch/arm/mach-pxa/pxa3xx.c
===================================================================
@@ -536,18 +536,18 @@ static inline void pxa3xx_init_pm(void)
 #define pxa3xx_set_wake	NULL
 #endif
 
-static void pxa_ack_ext_wakeup(unsigned int irq)
+static void pxa_ack_ext_wakeup(unsigned int irq, struct irq_desc *desc)
 {
 	PECR |= PECR_IS(irq - IRQ_WAKEUP0);
 }
 
-static void pxa_mask_ext_wakeup(unsigned int irq)
+static void pxa_mask_ext_wakeup(unsigned int irq, struct irq_desc *desc)
 {
 	ICMR2 &= ~(1 << ((irq - PXA_IRQ(0)) & 0x1f));
 	PECR &= ~PECR_IE(irq - IRQ_WAKEUP0);
 }
 
-static void pxa_unmask_ext_wakeup(unsigned int irq)
+static void pxa_unmask_ext_wakeup(unsigned int irq, struct irq_desc *desc)
 {
 	ICMR2 |= 1 << ((irq - PXA_IRQ(0)) & 0x1f);
 	PECR |= PECR_IE(irq - IRQ_WAKEUP0);
arch/arm/mach-pxa/viper.c +3 -3
Index: linux-2.6/arch/arm/mach-pxa/viper.c
===================================================================
@@ -247,7 +247,7 @@ static inline int viper_bit_to_irq(int b
 	return viper_isa_irqs[bit] + PXA_ISA_IRQ(0);
 }
 
-static void viper_ack_irq(unsigned int irq)
+static void viper_ack_irq(unsigned int irq, struct irq_desc *desc)
 {
 	int viper_irq = viper_irq_to_bitmask(irq);
 
@@ -257,12 +257,12 @@ static void viper_ack_irq(unsigned int i
 		VIPER_HI_IRQ_STATUS = (viper_irq >> 8);
 }
 
-static void viper_mask_irq(unsigned int irq)
+static void viper_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	viper_irq_enabled_mask &= ~(viper_irq_to_bitmask(irq));
 }
 
-static void viper_unmask_irq(unsigned int irq)
+static void viper_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	viper_irq_enabled_mask |= viper_irq_to_bitmask(irq);
 }
arch/arm/mach-pxa/zeus.c +4 -4
Index: linux-2.6/arch/arm/mach-pxa/zeus.c
===================================================================
@@ -81,17 +81,17 @@ static inline int zeus_bit_to_irq(int bi
 	return zeus_isa_irqs[bit] + PXA_ISA_IRQ(0);
 }
 
-static void zeus_ack_irq(unsigned int irq)
+static void zeus_ack_irq(unsigned int irq, struct irq_desc *desc)
 {
 	__raw_writew(zeus_irq_to_bitmask(irq), ZEUS_CPLD_ISA_IRQ);
 }
 
-static void zeus_mask_irq(unsigned int irq)
+static void zeus_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	zeus_irq_enabled_mask &= ~(zeus_irq_to_bitmask(irq));
 }
 
-static void zeus_unmask_irq(unsigned int irq)
+static void zeus_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	zeus_irq_enabled_mask |= zeus_irq_to_bitmask(irq);
 }
@@ -109,7 +109,7 @@ static void zeus_irq_handler(unsigned in
 	do {
 		/* we're in a chained irq handler,
 		 * so ack the interrupt by hand */
-		desc->chip->ack(gpio_to_irq(ZEUS_ISA_GPIO));
+		desc->chip->ack(gpio_to_irq(ZEUS_ISA_GPIO), irq_to_desc(gipo_to_irq(ZEUS_ISA_GPIO));
 
 		if (likely(pending)) {
 			irq = zeus_bit_to_irq(__ffs(pending));
arch/arm/mach-rpc/irq.c +9 -9
Index: linux-2.6/arch/arm/mach-rpc/irq.c
===================================================================
@@ -6,7 +6,7 @@
 #include <asm/hardware/iomd.h>
 #include <asm/irq.h>
 
-static void iomd_ack_irq_a(unsigned int irq)
+static void iomd_ack_irq_a(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned int val, mask;
 
@@ -16,7 +16,7 @@ static void iomd_ack_irq_a(unsigned int
 	iomd_writeb(mask, IOMD_IRQCLRA);
 }
 
-static void iomd_mask_irq_a(unsigned int irq)
+static void iomd_mask_irq_a(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned int val, mask;
 
@@ -25,7 +25,7 @@ static void iomd_mask_irq_a(unsigned int
 	iomd_writeb(val & ~mask, IOMD_IRQMASKA);
 }
 
-static void iomd_unmask_irq_a(unsigned int irq)
+static void iomd_unmask_irq_a(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned int val, mask;
 
@@ -40,7 +40,7 @@ static struct irq_chip iomd_a_chip = {
 	.unmask = iomd_unmask_irq_a,
 };
 
-static void iomd_mask_irq_b(unsigned int irq)
+static void iomd_mask_irq_b(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned int val, mask;
 
@@ -49,7 +49,7 @@ static void iomd_mask_irq_b(unsigned int
 	iomd_writeb(val & ~mask, IOMD_IRQMASKB);
 }
 
-static void iomd_unmask_irq_b(unsigned int irq)
+static void iomd_unmask_irq_b(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned int val, mask;
 
@@ -64,7 +64,7 @@ static struct irq_chip iomd_b_chip = {
 	.unmask = iomd_unmask_irq_b,
 };
 
-static void iomd_mask_irq_dma(unsigned int irq)
+static void iomd_mask_irq_dma(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned int val, mask;
 
@@ -73,7 +73,7 @@ static void iomd_mask_irq_dma(unsigned i
 	iomd_writeb(val & ~mask, IOMD_DMAMASK);
 }
 
-static void iomd_unmask_irq_dma(unsigned int irq)
+static void iomd_unmask_irq_dma(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned int val, mask;
 
@@ -88,7 +88,7 @@ static struct irq_chip iomd_dma_chip = {
 	.unmask = iomd_unmask_irq_dma,
 };
 
-static void iomd_mask_irq_fiq(unsigned int irq)
+static void iomd_mask_irq_fiq(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned int val, mask;
 
@@ -97,7 +97,7 @@ static void iomd_mask_irq_fiq(unsigned i
 	iomd_writeb(val & ~mask, IOMD_FIQMASK);
 }
 
-static void iomd_unmask_irq_fiq(unsigned int irq)
+static void iomd_unmask_irq_fiq(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned int val, mask;
 
arch/arm/mach-s3c2410/bast-irq.c +5 -7
Index: linux-2.6/arch/arm/mach-s3c2410/bast-irq.c
===================================================================
@@ -75,7 +75,7 @@ static unsigned char bast_pc104_irqmasks
 static unsigned char bast_pc104_irqs[] = { 3, 5, 7, 10 };
 
 static void
-bast_pc104_mask(unsigned int irqno)
+bast_pc104_mask(unsigned int irqno, struct irq_desc *desc)
 {
 	unsigned long temp;
 
@@ -85,16 +85,14 @@ bast_pc104_mask(unsigned int irqno)
 }
 
 static void
-bast_pc104_maskack(unsigned int irqno)
+bast_pc104_maskack(unsigned int irqno, struct irq_desc *desc)
 {
-	struct irq_desc *desc = irq_desc + IRQ_ISA;
-
 	bast_pc104_mask(irqno);
-	desc->chip->ack(IRQ_ISA);
+	desc->chip->ack(IRQ_ISA, desc);
 }
 
 static void
-bast_pc104_unmask(unsigned int irqno)
+bast_pc104_unmask(unsigned int irqno, struct irq_desc *desc)
 {
 	unsigned long temp;
 
@@ -123,7 +121,7 @@ bast_irq_pc104_demux(unsigned int irq,
 		/* ack if we get an irq with nothing (ie, startup) */
 
 		desc = irq_desc + IRQ_ISA;
-		desc->chip->ack(IRQ_ISA);
+		desc->chip->ack(IRQ_ISA, desc);
 	} else {
 		/* handle the IRQ */
 
arch/arm/mach-s3c2412/irq.c +7 -7
Index: linux-2.6/arch/arm/mach-s3c2412/irq.c
===================================================================
@@ -49,7 +49,7 @@
 */
 
 static void
-s3c2412_irq_mask(unsigned int irqno)
+s3c2412_irq_mask(unsigned int irqno, struct irq_desc *desc)
 {
 	unsigned long bitval = 1UL << (irqno - IRQ_EINT0);
 	unsigned long mask;
@@ -62,7 +62,7 @@ s3c2412_irq_mask(unsigned int irqno)
 }
 
 static inline void
-s3c2412_irq_ack(unsigned int irqno)
+s3c2412_irq_ack(unsigned int irqno, struct irq_desc *desc)
 {
 	unsigned long bitval = 1UL << (irqno - IRQ_EINT0);
 
@@ -72,7 +72,7 @@ s3c2412_irq_ack(unsigned int irqno)
 }
 
 static inline void
-s3c2412_irq_maskack(unsigned int irqno)
+s3c2412_irq_maskack(unsigned int irqno, struct irq_desc *desc)
 {
 	unsigned long bitval = 1UL << (irqno - IRQ_EINT0);
 	unsigned long mask;
@@ -89,7 +89,7 @@ s3c2412_irq_maskack(unsigned int irqno)
 }
 
 static void
-s3c2412_irq_unmask(unsigned int irqno)
+s3c2412_irq_unmask(unsigned int irqno, struct irq_desc *desc)
 {
 	unsigned long bitval = 1UL << (irqno - IRQ_EINT0);
 	unsigned long mask;
@@ -132,17 +132,17 @@ static void s3c2412_irq_demux_cfsdi(unsi
 #define INTMSK_CFSDI	(1UL << (IRQ_S3C2412_CFSDI - IRQ_EINT0))
 #define SUBMSK_CFSDI	INTMSK_SUB(IRQ_S3C2412_SDI, IRQ_S3C2412_CF)
 
-static void s3c2412_irq_cfsdi_mask(unsigned int irqno)
+static void s3c2412_irq_cfsdi_mask(unsigned int irqno, struct irq_desc *desc)
 {
 	s3c_irqsub_mask(irqno, INTMSK_CFSDI, SUBMSK_CFSDI);
 }
 
-static void s3c2412_irq_cfsdi_unmask(unsigned int irqno)
+static void s3c2412_irq_cfsdi_unmask(unsigned int irqno, struct irq_desc *desc)
 {
 	s3c_irqsub_unmask(irqno, INTMSK_CFSDI);
 }
 
-static void s3c2412_irq_cfsdi_ack(unsigned int irqno)
+static void s3c2412_irq_cfsdi_ack(unsigned int irqno, struct irq_desc *desc)
 {
 	s3c_irqsub_maskack(irqno, INTMSK_CFSDI, SUBMSK_CFSDI);
 }
arch/arm/mach-s3c2440/irq.c +3 -3
Index: linux-2.6/arch/arm/mach-s3c2440/irq.c
===================================================================
@@ -69,19 +69,19 @@ static void s3c_irq_demux_wdtac97(unsign
 #define INTMSK_WDT	 (1UL << (IRQ_WDT - IRQ_EINT0))
 
 static void
-s3c_irq_wdtac97_mask(unsigned int irqno)
+s3c_irq_wdtac97_mask(unsigned int irqno, struct irq_desc *desc)
 {
 	s3c_irqsub_mask(irqno, INTMSK_WDT, 3<<13);
 }
 
 static void
-s3c_irq_wdtac97_unmask(unsigned int irqno)
+s3c_irq_wdtac97_unmask(unsigned int irqno, struct irq_desc *desc)
 {
 	s3c_irqsub_unmask(irqno, INTMSK_WDT);
 }
 
 static void
-s3c_irq_wdtac97_ack(unsigned int irqno)
+s3c_irq_wdtac97_ack(unsigned int irqno, struct irq_desc *desc)
 {
 	s3c_irqsub_maskack(irqno, INTMSK_WDT, 3<<13);
 }
arch/arm/mach-s3c2443/irq.c +15 -15
Index: linux-2.6/arch/arm/mach-s3c2443/irq.c
===================================================================
@@ -75,17 +75,17 @@ static void s3c2443_irq_demux_wdtac97(un
 #define INTMSK_WDTAC97	(1UL << (IRQ_WDT - IRQ_EINT0))
 #define SUBMSK_WDTAC97	INTMSK(IRQ_S3C2443_WDT, IRQ_S3C2443_AC97)
 
-static void s3c2443_irq_wdtac97_mask(unsigned int irqno)
+static void s3c2443_irq_wdtac97_mask(unsigned int irqno, struct irq_desc *desc)
 {
 	s3c_irqsub_mask(irqno, INTMSK_WDTAC97, SUBMSK_WDTAC97);
 }
 
-static void s3c2443_irq_wdtac97_unmask(unsigned int irqno)
+static void s3c2443_irq_wdtac97_unmask(unsigned int irqno, struct irq_desc *desc)
 {
 	s3c_irqsub_unmask(irqno, INTMSK_WDTAC97);
 }
 
-static void s3c2443_irq_wdtac97_ack(unsigned int irqno)
+static void s3c2443_irq_wdtac97_ack(unsigned int irqno, struct irq_desc *desc)
 {
 	s3c_irqsub_maskack(irqno, INTMSK_WDTAC97, SUBMSK_WDTAC97);
 }
@@ -107,17 +107,17 @@ static void s3c2443_irq_demux_lcd(unsign
 #define INTMSK_LCD	(1UL << (IRQ_LCD - IRQ_EINT0))
 #define SUBMSK_LCD	INTMSK(IRQ_S3C2443_LCD1, IRQ_S3C2443_LCD4)
 
-static void s3c2443_irq_lcd_mask(unsigned int irqno)
+static void s3c2443_irq_lcd_mask(unsigned int irqno, struct irq_desc *desc)
 {
 	s3c_irqsub_mask(irqno, INTMSK_LCD, SUBMSK_LCD);
 }
 
-static void s3c2443_irq_lcd_unmask(unsigned int irqno)
+static void s3c2443_irq_lcd_unmask(unsigned int irqno, struct irq_desc *desc)
 {
 	s3c_irqsub_unmask(irqno, INTMSK_LCD);
 }
 
-static void s3c2443_irq_lcd_ack(unsigned int irqno)
+static void s3c2443_irq_lcd_ack(unsigned int irqno, struct irq_desc *desc)
 {
 	s3c_irqsub_maskack(irqno, INTMSK_LCD, SUBMSK_LCD);
 }
@@ -140,17 +140,17 @@ static void s3c2443_irq_demux_dma(unsign
 #define SUBMSK_DMA	INTMSK(IRQ_S3C2443_DMA0, IRQ_S3C2443_DMA5)
 
 
-static void s3c2443_irq_dma_mask(unsigned int irqno)
+static void s3c2443_irq_dma_mask(unsigned int irqno, struct irq_desc *desc)
 {
 	s3c_irqsub_mask(irqno, INTMSK_DMA, SUBMSK_DMA);
 }
 
-static void s3c2443_irq_dma_unmask(unsigned int irqno)
+static void s3c2443_irq_dma_unmask(unsigned int irqno, struct irq_desc *desc)
 {
 	s3c_irqsub_unmask(irqno, INTMSK_DMA);
 }
 
-static void s3c2443_irq_dma_ack(unsigned int irqno)
+static void s3c2443_irq_dma_ack(unsigned int irqno, struct irq_desc *desc)
 {
 	s3c_irqsub_maskack(irqno, INTMSK_DMA, SUBMSK_DMA);
 }
@@ -173,17 +173,17 @@ static void s3c2443_irq_demux_uart3(unsi
 #define SUBMSK_UART3	(0xf << (IRQ_S3C2443_RX3 - S3C2410_IRQSUB(0)))
 
 
-static void s3c2443_irq_uart3_mask(unsigned int irqno)
+static void s3c2443_irq_uart3_mask(unsigned int irqno, struct irq_desc *desc)
 {
 	s3c_irqsub_mask(irqno, INTMSK_UART3, SUBMSK_UART3);
 }
 
-static void s3c2443_irq_uart3_unmask(unsigned int irqno)
+static void s3c2443_irq_uart3_unmask(unsigned int irqno, struct irq_desc *desc)
 {
 	s3c_irqsub_unmask(irqno, INTMSK_UART3);
 }
 
-static void s3c2443_irq_uart3_ack(unsigned int irqno)
+static void s3c2443_irq_uart3_ack(unsigned int irqno, struct irq_desc *desc)
 {
 	s3c_irqsub_maskack(irqno, INTMSK_UART3, SUBMSK_UART3);
 }
@@ -205,17 +205,17 @@ static void s3c2443_irq_demux_cam(unsign
 #define INTMSK_CAM	(1UL << (IRQ_CAM - IRQ_EINT0))
 #define SUBMSK_CAM	INTMSK(IRQ_S3C2440_CAM_C, IRQ_S3C2440_CAM_P)
 
-static void s3c2443_irq_cam_mask(unsigned int irqno)
+static void s3c2443_irq_cam_mask(unsigned int irqno, struct irq_desc *desc)
 {
 	s3c_irqsub_mask(irqno, INTMSK_CAM, SUBMSK_CAM);
 }
 
-static void s3c2443_irq_cam_unmask(unsigned int irqno)
+static void s3c2443_irq_cam_unmask(unsigned int irqno, struct irq_desc *desc)
 {
 	s3c_irqsub_unmask(irqno, INTMSK_CAM);
 }
 
-static void s3c2443_irq_cam_ack(unsigned int irqno)
+static void s3c2443_irq_cam_ack(unsigned int irqno, struct irq_desc *desc)
 {
 	s3c_irqsub_maskack(irqno, INTMSK_CAM, SUBMSK_CAM);
 }
arch/arm/mach-sa1100/irq.c +8 -8
Index: linux-2.6/arch/arm/mach-sa1100/irq.c
===================================================================
@@ -70,17 +70,17 @@ static int sa1100_gpio_type(unsigned int
 /*
  * GPIO IRQs must be acknowledged.  This is for IRQs from 0 to 10.
  */
-static void sa1100_low_gpio_ack(unsigned int irq)
+static void sa1100_low_gpio_ack(unsigned int irq, struct irq_desc *desc)
 {
 	GEDR = (1 << irq);
 }
 
-static void sa1100_low_gpio_mask(unsigned int irq)
+static void sa1100_low_gpio_mask(unsigned int irq, struct irq_desc *desc)
 {
 	ICMR &= ~(1 << irq);
 }
 
-static void sa1100_low_gpio_unmask(unsigned int irq)
+static void sa1100_low_gpio_unmask(unsigned int irq, struct irq_desc *desc)
 {
 	ICMR |= 1 << irq;
 }
@@ -139,14 +139,14 @@ sa1100_high_gpio_handler(unsigned int ir
  * In addition, the IRQs are all collected up into one bit in the
  * interrupt controller registers.
  */
-static void sa1100_high_gpio_ack(unsigned int irq)
+static void sa1100_high_gpio_ack(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned int mask = GPIO11_27_MASK(irq);
 
 	GEDR = mask;
 }
 
-static void sa1100_high_gpio_mask(unsigned int irq)
+static void sa1100_high_gpio_mask(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned int mask = GPIO11_27_MASK(irq);
 
@@ -156,7 +156,7 @@ static void sa1100_high_gpio_mask(unsign
 	GFER &= ~mask;
 }
 
-static void sa1100_high_gpio_unmask(unsigned int irq)
+static void sa1100_high_gpio_unmask(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned int mask = GPIO11_27_MASK(irq);
 
@@ -188,12 +188,12 @@ static struct irq_chip sa1100_high_gpio_
  * We don't need to ACK IRQs on the SA1100 unless they're GPIOs
  * this is for internal IRQs i.e. from 11 to 31.
  */
-static void sa1100_mask_irq(unsigned int irq)
+static void sa1100_mask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	ICMR &= ~(1 << irq);
 }
 
-static void sa1100_unmask_irq(unsigned int irq)
+static void sa1100_unmask_irq(unsigned int irq, struct irq_desc *desc)
 {
 	ICMR |= (1 << irq);
 }
arch/arm/mach-sa1100/neponset.c +4 -4
Index: linux-2.6/arch/arm/mach-sa1100/neponset.c
===================================================================
@@ -36,7 +36,7 @@ neponset_irq_handler(unsigned int irq, s
 		/*
 		 * Acknowledge the parent IRQ.
 		 */
-		desc->chip->ack(irq);
+		desc->chip->ack(irq, desc);
 
 		/*
 		 * Read the interrupt reason register.  Let's have all
@@ -54,7 +54,7 @@ neponset_irq_handler(unsigned int irq, s
 		 * recheck the register for any pending IRQs.
 		 */
 		if (irr & (IRR_ETHERNET | IRR_USAR)) {
-			desc->chip->mask(irq);
+			desc->chip->mask(irq, desc);
 
 			/*
 			 * Ack the interrupt now to prevent re-entering
@@ -62,7 +62,7 @@ neponset_irq_handler(unsigned int irq, s
 			 * since we'll check the IRR register prior to
 			 * leaving.
 			 */
-			desc->chip->ack(irq);
+			desc->chip->ack(irq, desc);
 
 			if (irr & IRR_ETHERNET) {
 				generic_handle_irq(IRQ_NEPONSET_SMC9196);
@@ -72,7 +72,7 @@ neponset_irq_handler(unsigned int irq, s
 				generic_handle_irq(IRQ_NEPONSET_USAR);
 			}
 
-			desc->chip->unmask(irq);
+			desc->chip->unmask(irq, desc);
 		}
 
 		if (irr & IRR_SA1111) {
arch/arm/mach-shark/irq.c +5 -3
Index: linux-2.6/arch/arm/mach-shark/irq.c
===================================================================
@@ -30,7 +30,7 @@ static unsigned char cached_irq_mask[2]
  * These have to be protected by the irq controller spinlock
  * before being called.
  */
-static void shark_disable_8259A_irq(unsigned int irq)
+static void shark_disable_8259A_irq(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned int mask;
 	if (irq<8) {
@@ -44,7 +44,7 @@ static void shark_disable_8259A_irq(unsi
 	}
 }
 
-static void shark_enable_8259A_irq(unsigned int irq)
+static void shark_enable_8259A_irq(unsigned int irq, struct irq_desc *desc)
 {
 	unsigned int mask;
 	if (irq<8) {
@@ -58,7 +58,9 @@ static void shark_enable_8259A_irq(unsig
 	}
 }
 
-static void shark_ack_8259A_irq(unsigned int irq){}
+static void shark_ack_8259A_irq(unsigned int irq, struct irq_desc *desc)
+{
+}
 
[… more lines in the raw message]

Lines of this file are not shown. View the raw message.

arch/arm/mach-stmp378x/stmp378x.c +3 -3
Index: linux-2.6/arch/arm/mach-stmp378x/stmp378x.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-stmp37xx/stmp37xx.c +3 -3
Index: linux-2.6/arch/arm/mach-stmp37xx/stmp37xx.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-versatile/core.c +2 -2
Index: linux-2.6/arch/arm/mach-versatile/core.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-w90x900/irq.c +3 -3
Index: linux-2.6/arch/arm/mach-w90x900/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-mxc/gpio.c +3 -3
Index: linux-2.6/arch/arm/plat-mxc/gpio.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-mxc/irq.c +2 -2
Index: linux-2.6/arch/arm/plat-mxc/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-omap/gpio.c +9 -9
Index: linux-2.6/arch/arm/plat-omap/gpio.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-orion/gpio.c +3 -3
Index: linux-2.6/arch/arm/plat-orion/gpio.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-orion/irq.c +2 -2
Index: linux-2.6/arch/arm/plat-orion/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-pxa/gpio.c +3 -3
Index: linux-2.6/arch/arm/plat-pxa/gpio.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-s3c24xx/irq.c +19 -19
Index: linux-2.6/arch/arm/plat-s3c24xx/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-s3c24xx/s3c244x-irq.c +3 -3
Index: linux-2.6/arch/arm/plat-s3c24xx/s3c244x-irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-s3c64xx/irq-eint.c +6 -6
Index: linux-2.6/arch/arm/plat-s3c64xx/irq-eint.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-s3c64xx/irq.c +7 -7
Index: linux-2.6/arch/arm/plat-s3c64xx/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-s5pc1xx/irq-eint.c +12 -12
Index: linux-2.6/arch/arm/plat-s5pc1xx/irq-eint.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-s5pc1xx/irq-gpio.c +6 -6
Index: linux-2.6/arch/arm/plat-s5pc1xx/irq-gpio.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-s5pc1xx/irq.c +7 -7
Index: linux-2.6/arch/arm/plat-s5pc1xx/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-stmp3xxx/irq.c +1 -1
Index: linux-2.6/arch/arm/plat-stmp3xxx/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-stmp3xxx/pinmux.c +3 -3
Index: linux-2.6/arch/arm/plat-stmp3xxx/pinmux.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/avr32/mach-at32ap/extint.c +4 -4
Index: linux-2.6/arch/avr32/mach-at32ap/extint.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/avr32/mach-at32ap/pio.c +2 -2
Index: linux-2.6/arch/avr32/mach-at32ap/pio.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/blackfin/include/asm/ipipe.h +2 -2
Index: linux-2.6/arch/blackfin/include/asm/ipipe.h
===================================================================

Lines of this file are not shown. View the raw message.

arch/blackfin/mach-common/ints-priority.c +29 -12

41 lines not on this page · raw message

arch/cris/arch-v10/kernel/irq.c +1 -1
Index: linux-2.6/arch/cris/arch-v10/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/frv/kernel/irq-mb93091.c +4 -4
Index: linux-2.6/arch/frv/kernel/irq-mb93091.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/frv/kernel/irq-mb93093.c +4 -4
Index: linux-2.6/arch/frv/kernel/irq-mb93093.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/frv/kernel/irq-mb93493.c +3 -3
Index: linux-2.6/arch/frv/kernel/irq-mb93493.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/frv/kernel/irq.c +4 -4
Index: linux-2.6/arch/frv/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/ia64/hp/sim/hpsim_irq.c +5 -1
Index: linux-2.6/arch/ia64/hp/sim/hpsim_irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/ia64/kernel/iosapic.c +20 -7
Index: linux-2.6/arch/ia64/kernel/iosapic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/ia64/kernel/irq_lsapic.c +6 -1
Index: linux-2.6/arch/ia64/kernel/irq_lsapic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/ia64/kernel/msi_ia64.c +1 -1
Index: linux-2.6/arch/ia64/kernel/msi_ia64.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/ia64/sn/kernel/irq.c +3 -3
Index: linux-2.6/arch/ia64/sn/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/ia64/sn/kernel/msi_sn.c +1 -1
Index: linux-2.6/arch/ia64/sn/kernel/msi_sn.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m32r/platforms/m32104ut/setup.c +1 -1
Index: linux-2.6/arch/m32r/platforms/m32104ut/setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m32r/platforms/m32700ut/setup.c +1 -1
Index: linux-2.6/arch/m32r/platforms/m32700ut/setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m32r/platforms/mappi/setup.c +1 -1
Index: linux-2.6/arch/m32r/platforms/mappi/setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m32r/platforms/mappi2/setup.c +1 -1
Index: linux-2.6/arch/m32r/platforms/mappi2/setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m32r/platforms/mappi3/setup.c +1 -1
Index: linux-2.6/arch/m32r/platforms/mappi3/setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m32r/platforms/oaks32r/setup.c +1 -1
Index: linux-2.6/arch/m32r/platforms/oaks32r/setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m32r/platforms/opsput/setup.c +4 -4
Index: linux-2.6/arch/m32r/platforms/opsput/setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m32r/platforms/usrv/setup.c +2 -2
Index: linux-2.6/arch/m32r/platforms/usrv/setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m68knommu/platform/5249/intc2.c +3 -3
Index: linux-2.6/arch/m68knommu/platform/5249/intc2.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m68knommu/platform/5272/intc.c +3 -3
Index: linux-2.6/arch/m68knommu/platform/5272/intc.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m68knommu/platform/68328/ints.c +2 -2
Index: linux-2.6/arch/m68knommu/platform/68328/ints.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m68knommu/platform/68360/ints.c +3 -3
Index: linux-2.6/arch/m68knommu/platform/68360/ints.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m68knommu/platform/coldfire/intc-2.c +2 -2
Index: linux-2.6/arch/m68knommu/platform/coldfire/intc-2.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m68knommu/platform/coldfire/intc-simr.c +2 -2
Index: linux-2.6/arch/m68knommu/platform/coldfire/intc-simr.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m68knommu/platform/coldfire/intc.c +2 -2
Index: linux-2.6/arch/m68knommu/platform/coldfire/intc.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/microblaze/kernel/intc.c +4 -4
Index: linux-2.6/arch/microblaze/kernel/intc.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/alchemy/common/irq.c +8 -8
Index: linux-2.6/arch/mips/alchemy/common/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/alchemy/devboards/pb1200/irqmap.c +3 -3
Index: linux-2.6/arch/mips/alchemy/devboards/pb1200/irqmap.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/ar7/irq.c +6 -6
Index: linux-2.6/arch/mips/ar7/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/bcm63xx/irq.c +11 -6
Index: linux-2.6/arch/mips/bcm63xx/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/cavium-octeon/octeon-irq.c +28 -12
Index: linux-2.6/arch/mips/cavium-octeon/octeon-irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/dec/ioasic-irq.c +3 -3
Index: linux-2.6/arch/mips/dec/ioasic-irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/dec/kn02-irq.c +3 -3
Index: linux-2.6/arch/mips/dec/kn02-irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/emma/markeins/irq.c +8 -8
Index: linux-2.6/arch/mips/emma/markeins/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/jazz/irq.c +2 -2
Index: linux-2.6/arch/mips/jazz/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/kernel/i8259.c +12 -4
Index: linux-2.6/arch/mips/kernel/i8259.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/kernel/irq-gic.c +3 -3
Index: linux-2.6/arch/mips/kernel/irq-gic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/kernel/irq-gt641xx.c +4 -4
Index: linux-2.6/arch/mips/kernel/irq-gt641xx.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/kernel/irq-msc01.c +4 -4
Index: linux-2.6/arch/mips/kernel/irq-msc01.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/kernel/irq-rm7000.c +2 -2
Index: linux-2.6/arch/mips/kernel/irq-rm7000.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/kernel/irq-rm9000.c +2 -2
Index: linux-2.6/arch/mips/kernel/irq-rm9000.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/kernel/irq_cpu.c +3 -3
Index: linux-2.6/arch/mips/kernel/irq_cpu.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/kernel/irq_txx9.c +3 -3
Index: linux-2.6/arch/mips/kernel/irq_txx9.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/lasat/interrupt.c +2 -2
Index: linux-2.6/arch/mips/lasat/interrupt.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/loongson/common/bonito-irq.c +2 -2
Index: linux-2.6/arch/mips/loongson/common/bonito-irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/nxp/pnx833x/common/interrupts.c +2 -2
Index: linux-2.6/arch/mips/nxp/pnx833x/common/interrupts.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/nxp/pnx8550/common/int.c +2 -2
Index: linux-2.6/arch/mips/nxp/pnx8550/common/int.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/pmc-sierra/msp71xx/msp_irq_cic.c +2 -2
Index: linux-2.6/arch/mips/pmc-sierra/msp71xx/msp_irq_cic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/pmc-sierra/msp71xx/msp_irq_slp.c +3 -3
Index: linux-2.6/arch/mips/pmc-sierra/msp71xx/msp_irq_slp.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/powertv/asic/irq_asic.c +2 -2
Index: linux-2.6/arch/mips/powertv/asic/irq_asic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/rb532/irq.c +3 -3
Index: linux-2.6/arch/mips/rb532/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/sgi-ip22/ip22-int.c +8 -8
Index: linux-2.6/arch/mips/sgi-ip22/ip22-int.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/sgi-ip27/ip27-irq.c +2 -2
Index: linux-2.6/arch/mips/sgi-ip27/ip27-irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/sgi-ip27/ip27-timer.c +2 -2
Index: linux-2.6/arch/mips/sgi-ip27/ip27-timer.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/sgi-ip32/ip32-irq.c +11 -11
Index: linux-2.6/arch/mips/sgi-ip32/ip32-irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/sibyte/bcm1480/irq.c +6 -6
Index: linux-2.6/arch/mips/sibyte/bcm1480/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/sibyte/sb1250/irq.c +6 -6
Index: linux-2.6/arch/mips/sibyte/sb1250/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/sni/a20r.c +2 -2
Index: linux-2.6/arch/mips/sni/a20r.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/sni/pcimt.c +2 -2
Index: linux-2.6/arch/mips/sni/pcimt.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/sni/pcit.c +2 -2
Index: linux-2.6/arch/mips/sni/pcit.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/sni/rm200.c +6 -6
Index: linux-2.6/arch/mips/sni/rm200.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/txx9/generic/irq_tx4939.c +2 -2
Index: linux-2.6/arch/mips/txx9/generic/irq_tx4939.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/txx9/jmr3927/irq.c +2 -2
Index: linux-2.6/arch/mips/txx9/jmr3927/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/txx9/rbtx4927/irq.c +4 -4
Index: linux-2.6/arch/mips/txx9/rbtx4927/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/txx9/rbtx4938/irq.c +4 -4
Index: linux-2.6/arch/mips/txx9/rbtx4938/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/txx9/rbtx4939/irq.c +2 -2
Index: linux-2.6/arch/mips/txx9/rbtx4939/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/vr41xx/common/icu.c +4 -4
Index: linux-2.6/arch/mips/vr41xx/common/icu.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/vr41xx/common/irq.c +4 -4
Index: linux-2.6/arch/mips/vr41xx/common/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mn10300/kernel/irq.c +19 -7
Index: linux-2.6/arch/mn10300/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mn10300/kernel/mn10300-serial.c +2 -2
Index: linux-2.6/arch/mn10300/kernel/mn10300-serial.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/parisc/include/asm/irq.h +2 -2
Index: linux-2.6/arch/parisc/include/asm/irq.h
===================================================================

Lines of this file are not shown. View the raw message.

arch/parisc/kernel/irq.c +2 -2
Index: linux-2.6/arch/parisc/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/include/asm/mpic.h +3 -3
Index: linux-2.6/arch/powerpc/include/asm/mpic.h
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/include/asm/qe_ic.h +3 -3
Index: linux-2.6/arch/powerpc/include/asm/qe_ic.h
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/kernel/crash.c +1 -1
Index: linux-2.6/arch/powerpc/kernel/crash.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/512x/mpc5121_ads_cpld.c +2 -2
Index: linux-2.6/arch/powerpc/platforms/512x/mpc5121_ads_cpld.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/52xx/media5200.c +5 -5
Index: linux-2.6/arch/powerpc/platforms/52xx/media5200.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/52xx/mpc52xx_pic.c +5 -5
Index: linux-2.6/arch/powerpc/platforms/52xx/mpc52xx_pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/82xx/pq2ads-pci-pic.c +2 -2
Index: linux-2.6/arch/powerpc/platforms/82xx/pq2ads-pci-pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/85xx/ksi8560.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/85xx/ksi8560.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/85xx/mpc85xx_ads.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/85xx/mpc85xx_ads.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/85xx/mpc85xx_ds.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/85xx/mpc85xx_ds.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/85xx/sbc8560.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/85xx/sbc8560.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/85xx/socrates_fpga_pic.c +6 -6
Index: linux-2.6/arch/powerpc/platforms/85xx/socrates_fpga_pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/85xx/stx_gp3.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/85xx/stx_gp3.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/85xx/tqm85xx.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/85xx/tqm85xx.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/86xx/gef_pic.c +4 -4
Index: linux-2.6/arch/powerpc/platforms/86xx/gef_pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/86xx/pic.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/86xx/pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/8xx/m8xx_setup.c +2 -2
Index: linux-2.6/arch/powerpc/platforms/8xx/m8xx_setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/cell/axon_msi.c +7 -2
Index: linux-2.6/arch/powerpc/platforms/cell/axon_msi.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/cell/beat_interrupt.c +2 -2
Index: linux-2.6/arch/powerpc/platforms/cell/beat_interrupt.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/cell/interrupt.c +6 -6
Index: linux-2.6/arch/powerpc/platforms/cell/interrupt.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/cell/setup.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/cell/setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/cell/spider-pic.c +4 -4
Index: linux-2.6/arch/powerpc/platforms/cell/spider-pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/chrp/setup.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/chrp/setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/embedded6xx/flipper-pic.c +4 -4
Index: linux-2.6/arch/powerpc/platforms/embedded6xx/flipper-pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/embedded6xx/hlwd-pic.c +7 -7
Index: linux-2.6/arch/powerpc/platforms/embedded6xx/hlwd-pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/iseries/irq.c +3 -3
Index: linux-2.6/arch/powerpc/platforms/iseries/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/powermac/pic.c +5 -5
Index: linux-2.6/arch/powerpc/platforms/powermac/pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/ps3/interrupt.c +3 -3
Index: linux-2.6/arch/powerpc/platforms/ps3/interrupt.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/pseries/setup.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/pseries/setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/pseries/xics.c +4 -4
Index: linux-2.6/arch/powerpc/platforms/pseries/xics.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/cpm1.c +3 -3
Index: linux-2.6/arch/powerpc/sysdev/cpm1.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/cpm2_pic.c +4 -4
Index: linux-2.6/arch/powerpc/sysdev/cpm2_pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/fsl_msi.c +6 -6
Index: linux-2.6/arch/powerpc/sysdev/fsl_msi.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/i8259.c +3 -3
Index: linux-2.6/arch/powerpc/sysdev/i8259.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/ipic.c +4 -4
Index: linux-2.6/arch/powerpc/sysdev/ipic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/mpc8xx_pic.c +4 -4
Index: linux-2.6/arch/powerpc/sysdev/mpc8xx_pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/mpic.c +8 -8
Index: linux-2.6/arch/powerpc/sysdev/mpic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/mpic_pasemi_msi.c +2 -2
Index: linux-2.6/arch/powerpc/sysdev/mpic_pasemi_msi.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/mpic_u3msi.c +12 -7
Index: linux-2.6/arch/powerpc/sysdev/mpic_u3msi.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/mv64x60_pic.c +7 -7
Index: linux-2.6/arch/powerpc/sysdev/mv64x60_pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/qe_lib/qe_ic.c +2 -2
Index: linux-2.6/arch/powerpc/sysdev/qe_lib/qe_ic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/tsi108_pci.c +5 -5
Index: linux-2.6/arch/powerpc/sysdev/tsi108_pci.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/uic.c +8 -8
Index: linux-2.6/arch/powerpc/sysdev/uic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/xilinx_intc.c +5 -5
Index: linux-2.6/arch/powerpc/sysdev/xilinx_intc.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/score/kernel/irq.c +2 -2
Index: linux-2.6/arch/score/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/boards/mach-cayman/irq.c +3 -3
Index: linux-2.6/arch/sh/boards/mach-cayman/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/boards/mach-dreamcast/irq.c +3 -3
Index: linux-2.6/arch/sh/boards/mach-dreamcast/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/boards/mach-landisk/irq.c +2 -2
Index: linux-2.6/arch/sh/boards/mach-landisk/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/boards/mach-microdev/irq.c +7 -7
Index: linux-2.6/arch/sh/boards/mach-microdev/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/boards/mach-se/7206/irq.c +3 -3
Index: linux-2.6/arch/sh/boards/mach-se/7206/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/boards/mach-se/7343/irq.c +2 -2
Index: linux-2.6/arch/sh/boards/mach-se/7343/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/boards/mach-se/7722/irq.c +2 -2
Index: linux-2.6/arch/sh/boards/mach-se/7722/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/boards/mach-se/7724/irq.c +2 -2
Index: linux-2.6/arch/sh/boards/mach-se/7724/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/boards/mach-systemh/irq.c +7 -7
Index: linux-2.6/arch/sh/boards/mach-systemh/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/cchips/hd6446x/hd64461.c +4 -4
Index: linux-2.6/arch/sh/cchips/hd6446x/hd64461.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/kernel/cpu/irq/imask.c +2 -2
Index: linux-2.6/arch/sh/kernel/cpu/irq/imask.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/kernel/cpu/irq/intc-sh5.c +7 -7
Index: linux-2.6/arch/sh/kernel/cpu/irq/intc-sh5.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sparc/kernel/irq_64.c +3 -3
Index: linux-2.6/arch/sparc/kernel/irq_64.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sparc/kernel/pci_msi.c +11 -2
Index: linux-2.6/arch/sparc/kernel/pci_msi.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/um/kernel/irq.c +6 -2
Index: linux-2.6/arch/um/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/include/asm/hpet.h +2 -2
Index: linux-2.6/arch/x86/include/asm/hpet.h
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/kernel/apic/io_apic.c +11 -20
Index: linux-2.6/arch/x86/kernel/apic/io_apic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/kernel/hpet.c +2 -2
Index: linux-2.6/arch/x86/kernel/hpet.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/kernel/i8259.c +14 -5
Index: linux-2.6/arch/x86/kernel/i8259.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/kernel/irq.c +2 -2
Index: linux-2.6/arch/x86/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/kernel/uv_irq.c +7 -3
Index: linux-2.6/arch/x86/kernel/uv_irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/kernel/visws_quirks.c +1 -1
Index: linux-2.6/arch/x86/kernel/visws_quirks.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/kernel/vmiclock_32.c +3 -3
Index: linux-2.6/arch/x86/kernel/vmiclock_32.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/lguest/boot.c +2 -2
Index: linux-2.6/arch/x86/lguest/boot.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/xtensa/kernel/irq.c +5 -5
Index: linux-2.6/arch/xtensa/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/xtensa/variants/s6000/gpio.c +6 -6
Index: linux-2.6/arch/xtensa/variants/s6000/gpio.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/dma/ipu/ipu_irq.c +3 -3
Index: linux-2.6/drivers/dma/ipu/ipu_irq.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/gpio/langwell_gpio.c +3 -3
Index: linux-2.6/drivers/gpio/langwell_gpio.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/gpio/pl061.c +4 -4
Index: linux-2.6/drivers/gpio/pl061.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/gpio/timbgpio.c +3 -3
Index: linux-2.6/drivers/gpio/timbgpio.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/gpio/vr41xx_giu.c +8 -8
Index: linux-2.6/drivers/gpio/vr41xx_giu.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/mfd/asic3.c +5 -5
Index: linux-2.6/drivers/mfd/asic3.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/mfd/ezx-pcap.c +3 -3
Index: linux-2.6/drivers/mfd/ezx-pcap.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/mfd/htc-egpio.c +3 -3
Index: linux-2.6/drivers/mfd/htc-egpio.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/mfd/t7l66xb.c +2 -2
Index: linux-2.6/drivers/mfd/t7l66xb.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/mfd/tc6393xb.c +3 -3
Index: linux-2.6/drivers/mfd/tc6393xb.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/mfd/twl4030-irq.c +2 -2
Index: linux-2.6/drivers/mfd/twl4030-irq.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/mfd/wm831x-irq.c +2 -2
Index: linux-2.6/drivers/mfd/wm831x-irq.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/misc/sgi-gru/grufile.c +1 -1
Index: linux-2.6/drivers/misc/sgi-gru/grufile.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/pci/dmar.c +2 -2
Index: linux-2.6/drivers/pci/dmar.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/pci/htirq.c +2 -2
Index: linux-2.6/drivers/pci/htirq.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/pci/msi.c +2 -2
Index: linux-2.6/drivers/pci/msi.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/vlynq/vlynq.c +4 -4
Index: linux-2.6/drivers/vlynq/vlynq.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/xen/events.c +15 -3
Index: linux-2.6/drivers/xen/events.c
===================================================================

Lines of this file are not shown. View the raw message.

include/linux/dmar.h +2 -2
Index: linux-2.6/include/linux/dmar.h
===================================================================

Lines of this file are not shown. View the raw message.

include/linux/htirq.h +3 -2
Index: linux-2.6/include/linux/htirq.h
===================================================================

Lines of this file are not shown. View the raw message.

include/linux/irq.h +9 -9
Index: linux-2.6/include/linux/irq.h
===================================================================

Lines of this file are not shown. View the raw message.

include/linux/msi.h +2 -2
Index: linux-2.6/include/linux/msi.h
===================================================================

Lines of this file are not shown. View the raw message.

kernel/irq/chip.c +13 -13
Index: linux-2.6/kernel/irq/chip.c
===================================================================

Lines of this file are not shown. View the raw message.

kernel/irq/handle.c +10 -8
Index: linux-2.6/kernel/irq/handle.c
===================================================================

Lines of this file are not shown. View the raw message.

kernel/irq/manage.c +1 -1
Index: linux-2.6/kernel/irq/manage.c
===================================================================

Lines of this file are not shown. View the raw message.

kernel/irq/migration.c +5 -9
Index: linux-2.6/kernel/irq/migration.c
===================================================================

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Parts of this message are not shown here. View the raw message.

#39 lore raw

Re: [RFC PATCH 3/3] genericirq: change ack/mask in irq_chip to take irq_desc in addition to irq

In reply to Yinghai Lu
Quoted 8 lines · Yinghai Lu

will have

void            (*ack)(unsigned int irq, struct irq_desc *desc);
void            (*mask)(unsigned int irq, struct irq_desc *desc);
void            (*mask_ack)(unsigned int irq, struct irq_desc *desc);
void            (*unmask)(unsigned int irq, struct irq_desc *desc);
void            (*eoi)(unsigned int irq, struct irq_desc *desc);

so for sparseirq with raidix tree, we don't call extra irq_to_desc, and could use desc directly

This doesn't look bad.

May I ask why these methods and why pass both irq and desc instead of just desc?

I think in the long run passing both irq and desc through several functions may incur some maintenance cost that it would be nice not to pay (register pressure and increased chance of typos).

With a big sweeping change like this I want to be certain we won't change our minds and come back and want to change it all again.

Oh and a multiarch patch like this should really cc linux-arch so the arch maintainers can see it.

In passing it looks like want to transform get_irq_data in hpet.c to get_irq_desc_data.

Eric

#40 lore raw

Re: [RFC PATCH 3/3] genericirq: change ack/mask in irq_chip to take irq_desc in addition to irq

Quoted 8 lines · Eric W. Biederman

May I ask why these methods and why pass both irq and desc instead of just desc?

I think in the long run passing both irq and desc through several functions may incur some maintenance cost that it would be nice not to pay (register pressure and increased chance of typos).

Indeed; if the IRQ number is needed the function should just get it from desc->irq.

-hpa

Acked-by on v1 2/3
#26 lore raw

Re: [PATCH 2/3] x86: use vector_desc instead of vector_irq

In reply to Yinghai Lu
Quoted 11 lines · Yinghai Lu

Eric pointed out that radix tree version of irq_to_desc will magnify delay on the path of handle_irq.
use vector_desc to reduce the calling of irq_to_desc.

next step: need to change all ack, mask, umask, eoi for all irq_chip to take irq_desc

(quoted diff) +0 -2
-v2: irq should be unsigned in 32bit handle_irq according to Eric
     also reset vector_desc for lguest in setup_irq
-v3: keep irq in x+execute_on_irq_stack() ...

I can't spot any more problems.

author
#41 lore raw

Re: [RFC PATCH 3/3] genericirq: change ack/mask in irq_chip to take irq_desc in addition to irq

In reply to H. Peter Anvin
Quoted 5 lines · H. Peter Anvin
Quoted 4 lines · Eric W. Biederman

May I ask why these methods and why pass both irq and desc instead of just desc?

Quoted 7 lines
Quoted 4 lines

I think in the long run passing both irq and desc through several functions may incur some maintenance cost that it would be nice not to pay (register pressure and increased chance of typos).

Indeed; if the IRQ number is needed the function should just get it from desc->irq.

ok, change unsigned int irq to struct irq_desc *desc in irq_chip member...

YH

#23 lore raw

[tip:x86/irq] xen: Remove unnecessary arch specific xen irq functions.

In reply to Yinghai Lu
Commit-ID:  ca4dbc668412d5fe039be3e26e8e717a616d1ca5
Gitweb:     http://git.kernel.org/tip/ca4dbc668412d5fe039be3e26e8e717a616d1ca5
Author:     Eric W. Biederman <[email protected]>
AuthorDate: Wed, 17 Feb 2010 18:49:54 -0800
Committer:  H. Peter Anvin <[email protected]>
CommitDate: Thu, 18 Feb 2010 17:17:58 -0800

xen: Remove unnecessary arch specific xen irq functions.

Right now xen's use of the x86 and ia64 handle_irq is just bizarre and very fragile as it is very non-obvious the function exists and is is used by code out in drivers/.... Luckily using handle_irq is completely unnecessary, and we can just use the generic irq apis instead.

This still leaves drivers/xen/events.c as a problematic user of the generic irq apis it has "static struct irq_info irq_info[NR_IRQS]" but that can be fixed some other time.

LKML-Reference: <[email protected]>

---
 arch/ia64/include/asm/xen/events.h |    4 ----
 drivers/xen/events.c               |    8 ++++++--
 2 files changed, 6 insertions(+), 6 deletions(-)
arch/ia64/include/asm/xen/events.h +0 -4
index b8370c8..baa74c8 100644
@@ -36,10 +36,6 @@ static inline int xen_irqs_disabled(struct pt_regs *regs)
 	return !(ia64_psr(regs)->i);
 }
 
-static inline void handle_irq(int irq, struct pt_regs *regs)
-{
-	__do_IRQ(irq);
-}
 #define irq_ctx_init(cpu)	do { } while (0)
 
 #endif /* _ASM_IA64_XEN_EVENTS_H */
drivers/xen/events.c +6 -2
index ce602dd..2f84137 100644
@@ -649,9 +649,13 @@ void xen_evtchn_do_upcall(struct pt_regs *regs)
 				int bit_idx = __ffs(pending_bits);
 				int port = (word_idx * BITS_PER_LONG) + bit_idx;
 				int irq = evtchn_to_irq[port];
+				struct irq_desc *desc;
 
-				if (irq != -1)
-					handle_irq(irq, regs);
+				if (irq != -1) {
+					desc = irq_to_desc(irq);
+					if (desc)
+						generic_handle_irq_desc(irq, desc);
+				}
 			}
 		}
 
author
#27 lore raw

PATCH 1/2 x86: use vector_desc instead of vector_irq

In reply to Eric W. Biederman

Eric pointed out that radix tree version of irq_to_desc will magnify delay on the path of handle_irq.

use vector_desc to reduce the calling of irq_to_desc.

next step: need to change all ack, mask, umask, eoi for all irq_chip to take irq_desc

-v2: irq should be unsigned in 32bit handle_irq according to Eric
also reset vector_desc for lguest in setup_irq
-v3: keep irq in x+execute_on_irq_stack() ...

---
 arch/x86/include/asm/desc.h    |    2 -
 arch/x86/include/asm/hw_irq.h  |   10 ++---
 arch/x86/include/asm/irq.h     |    3 +
 arch/x86/kernel/apic/io_apic.c |   75 ++++++++++++++++++++---------------------
 arch/x86/kernel/irq.c          |   15 +++-----
 arch/x86/kernel/irq_32.c       |   10 ++---
 arch/x86/kernel/irq_64.c       |    7 +--
 arch/x86/kernel/irqinit.c      |    8 +---
 arch/x86/kernel/smpboot.c      |    2 -
 arch/x86/kernel/vmiclock_32.c  |    2 -
 arch/x86/lguest/boot.c         |    7 +++
 11 files changed, 71 insertions(+), 70 deletions(-)
arch/x86/include/asm/desc.h +1 -1
Index: linux-2.6/arch/x86/include/asm/desc.h
===================================================================
@@ -334,7 +334,7 @@ static inline void set_intr_gate(unsigne
 }
 
 extern int first_system_vector;
-/* used_vectors is BITMAP for irq is not managed by percpu vector_irq */
+/* used_vectors is BITMAP for irq is not managed by percpu vector_desc */
 extern unsigned long used_vectors[];
 
 static inline void alloc_system_vector(int vector)
arch/x86/include/asm/hw_irq.h +5 -5
Index: linux-2.6/arch/x86/include/asm/hw_irq.h
===================================================================
@@ -99,7 +99,7 @@ struct irq_cfg {
 };
 
 extern struct irq_cfg *irq_cfg(unsigned int);
-extern int assign_irq_vector(int, struct irq_cfg *, const struct cpumask *);
+extern int assign_irq_vector(struct irq_desc *, struct irq_cfg *, const struct cpumask *);
 extern void send_cleanup_vector(struct irq_cfg *);
 
 struct irq_desc;
@@ -138,17 +138,17 @@ extern asmlinkage void smp_invalidate_in
 
 extern void (*__initconst interrupt[NR_VECTORS-FIRST_EXTERNAL_VECTOR])(void);
 
-typedef int vector_irq_t[NR_VECTORS];
-DECLARE_PER_CPU(vector_irq_t, vector_irq);
+typedef struct irq_desc *vector_desc_t[NR_VECTORS];
+DECLARE_PER_CPU(vector_desc_t, vector_desc);
 
 #ifdef CONFIG_X86_IO_APIC
 extern void lock_vector_lock(void);
 extern void unlock_vector_lock(void);
-extern void __setup_vector_irq(int cpu);
+extern void __setup_vector_desc(int cpu);
 #else
 static inline void lock_vector_lock(void) {}
 static inline void unlock_vector_lock(void) {}
-static inline void __setup_vector_irq(int cpu) {}
+static inline void __setup_vector_desc(int cpu) {}
 #endif
 
 #endif /* !ASSEMBLY_ */
arch/x86/include/asm/irq.h +2 -1
Index: linux-2.6/arch/x86/include/asm/irq.h
===================================================================
@@ -39,7 +39,8 @@ extern void irq_force_complete_move(int)
 
 extern void (*x86_platform_ipi_callback)(void);
 extern void native_init_IRQ(void);
-extern bool handle_irq(unsigned irq, struct pt_regs *regs);
+struct irq_desc;
+extern bool handle_irq(struct irq_desc *desc, struct pt_regs *regs);
 
 extern unsigned int do_IRQ(struct pt_regs *regs);
 
arch/x86/kernel/apic/io_apic.c +38 -37

235 lines not on this page · raw message

arch/x86/kernel/irq.c +7 -8
Index: linux-2.6/arch/x86/kernel/irq.c
===================================================================
@@ -229,19 +229,19 @@ unsigned int __irq_entry do_IRQ(struct p
 
 	/* high bit used in ret_from_ code  */
 	unsigned vector = ~regs->orig_ax;
-	unsigned irq;
+	struct irq_desc *desc;
 
 	exit_idle();
 	irq_enter();
 
-	irq = __get_cpu_var(vector_irq)[vector];
+	desc = __get_cpu_var(vector_desc)[vector];
 
-	if (!handle_irq(irq, regs)) {
+	if (!handle_irq(desc, regs)) {
 		ack_APIC_irq();
 
 		if (printk_ratelimit())
-			pr_emerg("%s: %d.%d No irq handler for vector (irq %d)\n",
-				__func__, smp_processor_id(), vector, irq);
+			pr_emerg("%s: %d.%d No irq handler for vector\n",
+				__func__, smp_processor_id(), vector);
 	}
 
 	irq_exit();
@@ -348,14 +348,13 @@ void fixup_irqs(void)
 	for (vector = FIRST_EXTERNAL_VECTOR; vector < NR_VECTORS; vector++) {
 		unsigned int irr;
 
-		if (__get_cpu_var(vector_irq)[vector] < 0)
+		if (__get_cpu_var(vector_desc)[vector] == NULL)
 			continue;
 
 		irr = apic_read(APIC_IRR + (vector / 32 * 0x10));
 		if (irr  & (1 << (vector % 32))) {
-			irq = __get_cpu_var(vector_irq)[vector];
+			desc = __get_cpu_var(vector_desc)[vector];
 
-			desc = irq_to_desc(irq);
 			raw_spin_lock(&desc->lock);
 			if (desc->chip->retrigger)
 				desc->chip->retrigger(irq);
arch/x86/kernel/irq_32.c +5 -5
Index: linux-2.6/arch/x86/kernel/irq_32.c
===================================================================
@@ -76,7 +76,7 @@ static void call_on_stack(void *func, vo
 }
 
 static inline int
-execute_on_irq_stack(int overflow, struct irq_desc *desc, int irq)
+execute_on_irq_stack(int overflow, struct irq_desc *desc, unsigned int irq)
 {
 	union irq_ctx *curctx, *irqctx;
 	u32 *isp, arg1, arg2;
@@ -189,20 +189,20 @@ asmlinkage void do_softirq(void)
 
 #else
 static inline int
-execute_on_irq_stack(int overflow, struct irq_desc *desc, int irq) { return 0; }
+execute_on_irq_stack(int overflow, struct irq_desc *desc, unsigned int irq) { return 0; }
 #endif
 
-bool handle_irq(unsigned irq, struct pt_regs *regs)
+bool handle_irq(struct irq_desc *desc, struct pt_regs *regs)
 {
-	struct irq_desc *desc;
 	int overflow;
+	unsigned int irq;
 
 	overflow = check_stack_overflow();
 
-	desc = irq_to_desc(irq);
 	if (unlikely(!desc))
 		return false;
 
+	irq = desc->irq;
 	if (!execute_on_irq_stack(overflow, desc, irq)) {
 		if (unlikely(overflow))
 			print_stack_overflow();
arch/x86/kernel/irq_64.c +2 -5
Index: linux-2.6/arch/x86/kernel/irq_64.c
===================================================================
@@ -48,17 +48,14 @@ static inline void stack_overflow_check(
 #endif
 }
 
-bool handle_irq(unsigned irq, struct pt_regs *regs)
+bool handle_irq(struct irq_desc *desc, struct pt_regs *regs)
 {
-	struct irq_desc *desc;
-
 	stack_overflow_check(regs);
 
-	desc = irq_to_desc(irq);
 	if (unlikely(!desc))
 		return false;
 
-	generic_handle_irq_desc(irq, desc);
+	generic_handle_irq_desc(desc->irq, desc);
 	return true;
 }
 
arch/x86/kernel/irqinit.c +3 -5
Index: linux-2.6/arch/x86/kernel/irqinit.c
===================================================================
@@ -83,16 +83,14 @@ static struct irqaction irq2 = {
 	.name = "cascade",
 };
 
-DEFINE_PER_CPU(vector_irq_t, vector_irq) = {
-	[0 ... NR_VECTORS - 1] = -1,
-};
+DEFINE_PER_CPU(vector_desc_t, vector_desc);
 
 int vector_used_by_percpu_irq(unsigned int vector)
 {
 	int cpu;
 
 	for_each_online_cpu(cpu) {
-		if (per_cpu(vector_irq, cpu)[vector] != -1)
+		if (per_cpu(vector_desc, cpu)[vector] != NULL)
 			return 1;
 	}
 
@@ -139,7 +137,7 @@ void __init init_IRQ(void)
 	 * irq's migrate etc.
 	 */
 	for (i = 0; i < nr_legacy_irqs; i++)
-		per_cpu(vector_irq, 0)[IRQ0_VECTOR + i] = i;
+		per_cpu(vector_desc, 0)[IRQ0_VECTOR + i] = irq_to_desc(i);
 
 	x86_init.irqs.intr_init();
 }
arch/x86/kernel/smpboot.c +1 -1
Index: linux-2.6/arch/x86/kernel/smpboot.c
===================================================================
@@ -245,7 +245,7 @@ static void __cpuinit smp_callin(void)
 	/*
 	 * Need to setup vector mappings before we enable interrupts.
 	 */
-	__setup_vector_irq(smp_processor_id());
+	__setup_vector_desc(smp_processor_id());
 	/*
 	 * Get our bogomips.
 	 *
arch/x86/kernel/vmiclock_32.c +1 -1
Index: linux-2.6/arch/x86/kernel/vmiclock_32.c
===================================================================
@@ -236,7 +236,7 @@ void __init vmi_time_init(void)
 	vmi_time_init_clockevent();
 	setup_irq(0, &vmi_clock_action);
 	for_each_possible_cpu(cpu)
-		per_cpu(vector_irq, cpu)[vmi_get_timer_vector()] = 0;
+		per_cpu(vector_desc, cpu)[vmi_get_timer_vector()] = irq_to_desc(0);
 }
 
 #ifdef CONFIG_X86_LOCAL_APIC
arch/x86/lguest/boot.c +6 -1
Index: linux-2.6/arch/x86/lguest/boot.c
===================================================================
@@ -819,7 +819,7 @@ static void __init lguest_init_IRQ(void)
 
 	for (i = FIRST_EXTERNAL_VECTOR; i < NR_VECTORS; i++) {
 		/* Some systems map "vectors" to interrupts weirdly.  Not us! */
-		__get_cpu_var(vector_irq)[i] = i - FIRST_EXTERNAL_VECTOR;
+		__get_cpu_var(vector_desc)[i] = irq_to_desc(i - FIRST_EXTERNAL_VECTOR);
 		if (i != SYSCALL_VECTOR)
 			set_intr_gate(i, interrupt[i - FIRST_EXTERNAL_VECTOR]);
 	}
@@ -842,6 +842,11 @@ static void __init lguest_init_IRQ(void)
 void lguest_setup_irq(unsigned int irq)
 {
 	irq_to_desc_alloc_node(irq, 0);
+	/*
+	 *  for sparseirq, we could get new desc other than legacy irq,
+	 *  so set vector_desc again for that irq
+	 */
+	__get_cpu_var(vector_desc)[irq + FIRST_EXTERNAL_VECTOR] = irq_to_desc(irq);
 	set_irq_chip_and_handler_name(irq, &lguest_irq_controller,
 				      handle_level_irq, "level");
 }
author
#31 lore raw

PATCH 2/2 genericirq: change ack/mask in irq_chip to take irq_desc instead of irq

will have

void            (*ack)(struct irq_desc *desc);
void            (*mask)(struct irq_desc *desc);
void            (*mask_ack)(struct irq_desc *desc);
void            (*unmask)(struct irq_desc *desc);
void            (*eoi)(struct irq_desc *desc);

so for sparseirq with raidix tree, we don't call extra irq_to_desc, and could use desc directly

-v2: change all member of irq_chip to use desc only.

---
 Documentation/DocBook/genericirq.tmpl            |   24 ++--
 arch/alpha/kernel/irq.c                          |    7 -
 arch/alpha/kernel/irq_alpha.c                    |    4 
 arch/alpha/kernel/irq_i8259.c                    |   22 ++--
 arch/alpha/kernel/irq_pyxis.c                    |   21 ++-
 arch/alpha/kernel/irq_srm.c                      |   18 +--
 arch/alpha/kernel/sys_alcor.c                    |   28 ++---
 arch/alpha/kernel/sys_cabriolet.c                |   18 ++-
 arch/alpha/kernel/sys_dp264.c                    |   50 +++++----
 arch/alpha/kernel/sys_eb64p.c                    |   18 ++-
 arch/alpha/kernel/sys_eiger.c                    |   18 ++-
 arch/alpha/kernel/sys_jensen.c                   |   40 +++----
 arch/alpha/kernel/sys_marvel.c                   |   26 ++--
 arch/alpha/kernel/sys_mikasa.c                   |   18 +--
 arch/alpha/kernel/sys_noritake.c                 |   18 ++-
 arch/alpha/kernel/sys_rawhide.c                  |   19 ++-
 arch/alpha/kernel/sys_rx164.c                    |   18 +--
 arch/alpha/kernel/sys_sable.c                    |   26 ++--
 arch/alpha/kernel/sys_takara.c                   |   18 ++-
 arch/alpha/kernel/sys_titan.c                    |   22 ++--
 arch/alpha/kernel/sys_wildfire.c                 |   32 +++--
 arch/arm/common/gic.c                            |   20 ++-
 arch/arm/common/it8152.c                         |    8 +
 arch/arm/common/locomo.c                         |  103 ++++++++++++------
 arch/arm/common/sa1111.c                         |   56 ++++++----
 arch/arm/common/vic.c                            |   21 ++-
 arch/arm/kernel/ecard.c                          |   12 +-
 arch/arm/kernel/irq.c                            |    2 
 arch/arm/mach-aaec2000/core.c                    |    6 -
 arch/arm/mach-at91/gpio.c                        |   15 +-
 arch/arm/mach-at91/irq.c                         |   15 ++
 arch/arm/mach-bcmring/irq.c                      |   24 +++-
 arch/arm/mach-clps711x/irq.c                     |   18 ++-
 arch/arm/mach-davinci/cp_intc.c                  |   14 +-
 arch/arm/mach-davinci/gpio.c                     |   32 ++---
 arch/arm/mach-davinci/irq.c                      |    9 +
 arch/arm/mach-dove/irq.c                         |    9 +
 arch/arm/mach-ebsa110/core.c                     |    6 -
 arch/arm/mach-ep93xx/core.c                      |   16 +-
 arch/arm/mach-footbridge/common.c                |    6 -
 arch/arm/mach-footbridge/isa-irq.c               |   18 ++-
 arch/arm/mach-gemini/gpio.c                      |   12 +-
 arch/arm/mach-gemini/irq.c                       |    9 +
 arch/arm/mach-h720x/common.c                     |   15 +-
 arch/arm/mach-h720x/cpu-h7202.c                  |    6 -
 arch/arm/mach-integrator/integrator_ap.c         |    6 -
 arch/arm/mach-integrator/integrator_cp.c         |   18 ++-
 arch/arm/mach-iop13xx/irq.c                      |   24 ++--
 arch/arm/mach-iop13xx/msi.c                      |    2 
 arch/arm/mach-iop32x/irq.c                       |    6 -
 arch/arm/mach-ixp2000/core.c                     |   30 +++--
 arch/arm/mach-ixp2000/ixdp2x00.c                 |   10 +
 arch/arm/mach-ixp2000/ixdp2x01.c                 |   10 +
 arch/arm/mach-ixp23xx/core.c                     |   25 ++--
 arch/arm/mach-ixp23xx/ixdp2351.c                 |   20 ++-
 arch/arm/mach-ixp4xx/common.c                    |   14 +-
 arch/arm/mach-ks8695/irq.c                       |   28 ++---
 arch/arm/mach-l7200/core.c                       |    6 -
 arch/arm/mach-lh7a40x/arch-kev7a400.c            |    9 +
 arch/arm/mach-lh7a40x/arch-lpd7a40x.c            |   13 +-
 arch/arm/mach-lh7a40x/irq-lh7a400.c              |    9 +
 arch/arm/mach-lh7a40x/irq-lh7a404.c              |   18 ++-
 arch/arm/mach-lh7a40x/irq-lpd7a40x.c             |   12 +-
 arch/arm/mach-mmp/irq.c                          |    8 -
 arch/arm/mach-mx3/mx31ads.c                      |    9 +
 arch/arm/mach-mx3/mx31pdk.c                      |    9 +
 arch/arm/mach-netx/generic.c                     |   12 +-
 arch/arm/mach-nomadik/gpio.c                     |   26 ++--
 arch/arm/mach-ns9xxx/board-a9m9750dev.c          |   15 +-
 arch/arm/mach-ns9xxx/irq.c                       |   15 +-
 arch/arm/mach-omap1/fpga.c                       |   13 +-
 arch/arm/mach-omap1/irq.c                        |   24 ++--
 arch/arm/mach-pnx4008/irq.c                      |   12 +-
 arch/arm/mach-pxa/balloon3.c                     |    8 -
 arch/arm/mach-pxa/irq.c                          |   18 ++-
 arch/arm/mach-pxa/lpd270.c                       |    6 -
 arch/arm/mach-pxa/lubbock.c                      |    6 -
 arch/arm/mach-pxa/mainstone.c                    |    6 -
 arch/arm/mach-pxa/pcm990-baseboard.c             |    6 -
 arch/arm/mach-pxa/pxa3xx.c                       |    9 +
 arch/arm/mach-pxa/viper.c                        |    9 +
 arch/arm/mach-pxa/zeus.c                         |   11 +-
 arch/arm/mach-rpc/irq.c                          |   27 +++-
 arch/arm/mach-s3c2410/bast-irq.c                 |   20 +--
 arch/arm/mach-s3c2412/irq.c                      |   35 +++---
 arch/arm/mach-s3c2440/irq.c                      |   15 +-
 arch/arm/mach-s3c2443/irq.c                      |   71 +++++++------
 arch/arm/mach-sa1100/irq.c                       |   36 ++++--
 arch/arm/mach-sa1100/neponset.c                  |    8 -
 arch/arm/mach-shark/irq.c                        |   10 +
 arch/arm/mach-stmp378x/stmp378x.c                |    9 +
 arch/arm/mach-stmp37xx/stmp37xx.c                |    9 +
 arch/arm/mach-versatile/core.c                   |    6 -
 arch/arm/mach-w90x900/irq.c                      |    8 -
 arch/arm/oprofile/op_model_mpcore.c              |    4 
 arch/arm/plat-mxc/gpio.c                         |   12 +-
 arch/arm/plat-mxc/irq.c                          |    6 -
 arch/arm/plat-omap/gpio.c                        |   36 ++++--
 arch/arm/plat-orion/gpio.c                       |   21 ++-
 arch/arm/plat-orion/irq.c                        |   10 +
 arch/arm/plat-pxa/gpio.c                         |   12 +-
 arch/arm/plat-s3c24xx/irq.c                      |  112 ++++++++++++--------
 arch/arm/plat-s3c24xx/s3c244x-irq.c              |   15 +-
 arch/arm/plat-s3c64xx/irq-eint.c                 |   19 ++-
 arch/arm/plat-s3c64xx/irq.c                      |   21 ++-
 arch/arm/plat-s5pc1xx/irq-eint.c                 |   42 ++++---
 arch/arm/plat-s5pc1xx/irq-gpio.c                 |   18 ++-
 arch/arm/plat-s5pc1xx/irq.c                      |   21 ++-
 arch/arm/plat-stmp3xxx/irq.c                     |    2 
 arch/arm/plat-stmp3xxx/pinmux.c                  |   12 +-
 arch/avr32/mach-at32ap/extint.c                  |   26 ++--
 arch/avr32/mach-at32ap/pio.c                     |    9 +
 arch/blackfin/include/asm/ipipe.h                |    4 
 arch/blackfin/mach-common/ints-priority.c        |   53 ++++++---
 arch/blackfin/mach-common/smp.c                  |    2 
 arch/cris/arch-v10/kernel/irq.c                  |   16 +-
 arch/frv/kernel/irq-mb93091.c                    |   12 +-
 arch/frv/kernel/irq-mb93093.c                    |   12 +-
 arch/frv/kernel/irq-mb93493.c                    |    8 -
 arch/frv/kernel/irq.c                            |   27 ++--
 arch/h8300/kernel/irq.c                          |   14 +-
 arch/ia64/hp/sim/hpsim_irq.c                     |    6 -
 arch/ia64/kernel/iosapic.c                       |   45 ++++----
 arch/ia64/kernel/irq.c                           |    6 -
 arch/ia64/kernel/irq_lsapic.c                    |    8 -
 arch/ia64/kernel/msi_ia64.c                      |   18 ++-
 arch/ia64/kernel/smpboot.c                       |    6 -
 arch/ia64/sn/kernel/irq.c                        |   25 ++--
 arch/ia64/sn/kernel/msi_sn.c                     |   10 +
 arch/m32r/platforms/m32104ut/setup.c             |   19 ++-
 arch/m32r/platforms/m32700ut/setup.c             |   92 +++++++++-------
 arch/m32r/platforms/mappi/setup.c                |   21 ++-
 arch/m32r/platforms/mappi2/setup.c               |   21 ++-
 arch/m32r/platforms/mappi3/setup.c               |   21 ++-
 arch/m32r/platforms/oaks32r/setup.c              |   21 ++-
 arch/m32r/platforms/opsput/setup.c               |   88 +++++++++-------
 arch/m32r/platforms/usrv/setup.c                 |   42 ++++---
 arch/m68knommu/platform/5249/intc2.c             |    9 +
 arch/m68knommu/platform/5272/intc.c              |   11 +-
 arch/m68knommu/platform/68328/ints.c             |    6 -
 arch/m68knommu/platform/68360/ints.c             |    9 +
 arch/m68knommu/platform/coldfire/intc-2.c        |    6 -
 arch/m68knommu/platform/coldfire/intc-simr.c     |    7 -
 arch/m68knommu/platform/coldfire/intc.c          |    8 -
 arch/microblaze/kernel/intc.c                    |   15 +-
 arch/mips/alchemy/common/irq.c                   |   43 ++++---
 arch/mips/alchemy/devboards/pb1200/irqmap.c      |   23 ++--
 arch/mips/ar7/irq.c                              |   18 ++-
 arch/mips/bcm63xx/irq.c                          |   42 ++++---
 arch/mips/cavium-octeon/octeon-irq.c             |   70 ++++++++----
 arch/mips/dec/ioasic-irq.c                       |   21 ++-
 arch/mips/dec/kn02-irq.c                         |   10 +
 arch/mips/emma/markeins/irq.c                    |   20 ++-
 arch/mips/jazz/irq.c                             |    6 -
 arch/mips/kernel/i8259.c                         |   15 +-
 arch/mips/kernel/irq-gic.c                       |   17 ++-
 arch/mips/kernel/irq-gt641xx.c                   |   11 +-
 arch/mips/kernel/irq-msc01.c                     |   22 ++--
 arch/mips/kernel/irq-rm7000.c                    |    6 -
 arch/mips/kernel/irq-rm9000.c                    |   24 ++--
 arch/mips/kernel/irq_cpu.c                       |   14 +-
 arch/mips/kernel/irq_txx9.c                      |   14 +-
 arch/mips/lasat/interrupt.c                      |   14 +-
 arch/mips/loongson/common/bonito-irq.c           |    6 -
 arch/mips/nxp/pnx833x/common/interrupts.c        |   33 +++---
 arch/mips/nxp/pnx8550/common/int.c               |   10 +
 arch/mips/pmc-sierra/msp71xx/msp_irq_cic.c       |   10 +
 arch/mips/pmc-sierra/msp71xx/msp_irq_slp.c       |    9 +
 arch/mips/powertv/asic/irq_asic.c                |    6 -
 arch/mips/rb532/irq.c                            |   32 +++--
 arch/mips/sgi-ip22/ip22-int.c                    |   24 ++--
 arch/mips/sgi-ip27/ip27-irq.c                    |   12 +-
 arch/mips/sgi-ip27/ip27-timer.c                  |    4 
 arch/mips/sgi-ip32/ip32-irq.c                    |   68 +++++++-----
 arch/mips/sibyte/bcm1480/irq.c                   |   28 ++---
 arch/mips/sibyte/sb1250/irq.c                    |   28 ++---
 arch/mips/sni/a20r.c                             |   12 +-
 arch/mips/sni/pcimt.c                            |   14 +-
 arch/mips/sni/pcit.c                             |   12 +-
 arch/mips/sni/rm200.c                            |   21 ++-
 arch/mips/txx9/generic/irq_tx4939.c              |   14 +-
 arch/mips/txx9/jmr3927/irq.c                     |    6 -
 arch/mips/txx9/rbtx4927/irq.c                    |   10 +
 arch/mips/txx9/rbtx4938/irq.c                    |   10 +
 arch/mips/txx9/rbtx4939/irq.c                    |    6 -
 arch/mips/vr41xx/common/icu.c                    |   12 +-
 arch/mips/vr41xx/common/irq.c                    |    8 -
 arch/mn10300/kernel/irq.c                        |   19 ++-
 arch/mn10300/kernel/mn10300-serial.c             |    5 
 arch/parisc/include/asm/irq.h                    |    4 
 arch/parisc/kernel/irq.c                         |   31 +++--
 arch/powerpc/include/asm/mpic.h                  |    6 -
 arch/powerpc/include/asm/qe_ic.h                 |    6 -
 arch/powerpc/kernel/crash.c                      |    4 
 arch/powerpc/kernel/irq.c                        |    2 
 arch/powerpc/platforms/512x/mpc5121_ads_cpld.c   |    6 -
 arch/powerpc/platforms/52xx/media5200.c          |   16 +-
 arch/powerpc/platforms/52xx/mpc52xx_pic.c        |   35 ++++--
 arch/powerpc/platforms/82xx/pq2ads-pci-pic.c     |    6 -
 arch/powerpc/platforms/85xx/ksi8560.c            |    2 
 arch/powerpc/platforms/85xx/mpc85xx_ads.c        |    2 
 arch/powerpc/platforms/85xx/mpc85xx_ds.c         |    2 
 arch/powerpc/platforms/85xx/sbc8560.c            |    2 
 arch/powerpc/platforms/85xx/socrates_fpga_pic.c  |   20 ++-
 arch/powerpc/platforms/85xx/stx_gp3.c            |    2 
 arch/powerpc/platforms/85xx/tqm85xx.c            |    2 
 arch/powerpc/platforms/86xx/gef_pic.c            |   11 +-
 arch/powerpc/platforms/86xx/pic.c                |    2 
 arch/powerpc/platforms/8xx/m8xx_setup.c          |    4 
 arch/powerpc/platforms/cell/axon_msi.c           |    9 +
 arch/powerpc/platforms/cell/beat_interrupt.c     |   12 +-
 arch/powerpc/platforms/cell/interrupt.c          |   12 +-
 arch/powerpc/platforms/cell/setup.c              |    2 
 arch/powerpc/platforms/cell/spider-pic.c         |   15 +-
 arch/powerpc/platforms/chrp/setup.c              |    2 
 arch/powerpc/platforms/embedded6xx/flipper-pic.c |   12 +-
 arch/powerpc/platforms/embedded6xx/hlwd-pic.c    |   26 ++--
 arch/powerpc/platforms/iseries/irq.c             |   19 ++-
 arch/powerpc/platforms/powermac/pic.c            |   20 ++-
 arch/powerpc/platforms/ps3/interrupt.c           |   15 +-
 arch/powerpc/platforms/pseries/setup.c           |    2 
 arch/powerpc/platforms/pseries/xics.c            |   28 +++--
 arch/powerpc/sysdev/cpm1.c                       |    9 +
 arch/powerpc/sysdev/cpm2_pic.c                   |   18 +--
 arch/powerpc/sysdev/fsl_msi.c                    |   12 +-
 arch/powerpc/sysdev/i8259.c                      |   35 +++---
 arch/powerpc/sysdev/ipic.c                       |   15 +-
 arch/powerpc/sysdev/mpc8xx_pic.c                 |   16 +-
 arch/powerpc/sysdev/mpic.c                       |   35 ++++--
 arch/powerpc/sysdev/mpic.h                       |    4 
 arch/powerpc/sysdev/mpic_pasemi_msi.c            |   14 +-
 arch/powerpc/sysdev/mpic_u3msi.c                 |   19 ++-
 arch/powerpc/sysdev/mv64x60_pic.c                |   21 ++-
 arch/powerpc/sysdev/qe_lib/qe_ic.c               |    6 -
 arch/powerpc/sysdev/tsi108_pci.c                 |   14 +-
 arch/powerpc/sysdev/uic.c                        |   36 +++---
 arch/powerpc/sysdev/xilinx_intc.c                |   26 ++--
 arch/score/kernel/irq.c                          |   10 +
 arch/sh/boards/mach-cayman/irq.c                 |   10 +
 arch/sh/boards/mach-dreamcast/irq.c              |    9 +
 arch/sh/boards/mach-landisk/irq.c                |    6 -
 arch/sh/boards/mach-microdev/irq.c               |   19 ++-
 arch/sh/boards/mach-se/7206/irq.c                |    9 +
 arch/sh/boards/mach-se/7343/irq.c                |    6 -
 arch/sh/boards/mach-se/7722/irq.c                |    8 -
 arch/sh/boards/mach-se/7724/irq.c                |    6 -
 arch/sh/boards/mach-systemh/irq.c                |   16 +-
 arch/sh/cchips/hd6446x/hd64461.c                 |   11 +-
 arch/sh/kernel/cpu/irq/imask.c                   |    6 -
 arch/sh/kernel/cpu/irq/intc-sh5.c                |   34 +++---
 arch/sparc/kernel/irq_64.c                       |   62 ++++++-----
 arch/sparc/kernel/pci_msi.c                      |   13 ++
 arch/um/kernel/irq.c                             |    2 
 arch/x86/include/asm/hardirq.h                   |    2 
 arch/x86/include/asm/hpet.h                      |    8 -
 arch/x86/include/asm/hw_irq.h                    |    6 -
 arch/x86/include/asm/i8259.h                     |    6 -
 arch/x86/kernel/apic/io_apic.c                   |  125 +++++++++--------------
 arch/x86/kernel/hpet.c                           |   16 +-
 arch/x86/kernel/i8259.c                          |   14 +-
 arch/x86/kernel/irq.c                            |   12 +-
 arch/x86/kernel/uv_irq.c                         |   12 +-
 arch/x86/kernel/visws_quirks.c                   |   29 ++---
 arch/x86/kernel/vmiclock_32.c                    |    8 -
 arch/x86/lguest/boot.c                           |    8 -
 arch/xtensa/kernel/irq.c                         |   22 ++--
 arch/xtensa/variants/s6000/gpio.c                |   18 ++-
 drivers/dma/ipu/ipu_irq.c                        |   18 +--
 drivers/gpio/langwell_gpio.c                     |   11 +-
 drivers/gpio/pl061.c                             |   19 ++-
 drivers/gpio/timbgpio.c                          |   17 +--
 drivers/gpio/vr41xx_giu.c                        |   32 ++---
 drivers/mfd/asic3.c                              |   27 ++--
 drivers/mfd/ezx-pcap.c                           |   12 +-
 drivers/mfd/htc-egpio.c                          |   12 +-
 drivers/mfd/t7l66xb.c                            |    8 -
 drivers/mfd/tc6393xb.c                           |   15 +-
 drivers/mfd/twl4030-irq.c                        |   16 +-
 drivers/mfd/wm831x-irq.c                         |   18 +--
 drivers/misc/sgi-gru/grufile.c                   |    2 
 drivers/parisc/dino.c                            |   12 +-
 drivers/parisc/eisa.c                            |   10 +
 drivers/parisc/gsc.c                             |   12 +-
 drivers/parisc/iosapic.c                         |   16 +-
 drivers/parisc/superio.c                         |   10 +
 drivers/pci/dmar.c                               |   16 +-
 drivers/pci/htirq.c                              |   22 ++--
 drivers/pci/msi.c                                |   13 +-
 drivers/vlynq/vlynq.c                            |   23 ++--
 drivers/xen/events.c                             |   38 ++++--
 include/linux/dmar.h                             |    8 -
 include/linux/htirq.h                            |   11 +-
 include/linux/irq.h                              |   47 ++++----
 include/linux/msi.h                              |    4 
 kernel/irq/autoprobe.c                           |   12 +-
 kernel/irq/chip.c                                |   60 ++++-------
 kernel/irq/handle.c                              |   24 ++--
 kernel/irq/internals.h                           |   16 +-
 kernel/irq/manage.c                              |   65 +++++------

5 lines not shown · raw message

Documentation/DocBook/genericirq.tmpl +12 -12
Index: linux-2.6/Documentation/DocBook/genericirq.tmpl
===================================================================
@@ -233,33 +233,33 @@
 		are used by the default flow implementations.
 		The following helper functions are implemented (simplified excerpt):
 		<programlisting>
-default_enable(irq)
+default_enable(desc)
 {
-	desc->chip->unmask(irq);
+	desc->chip->unmask(desc);
 }
 
-default_disable(irq)
+default_disable(desc)
 {
-	if (!delay_disable(irq))
-		desc->chip->mask(irq);
+	if (!delay_disable(desc->irq))
+		desc->chip->mask(desc);
 }
 
-default_ack(irq)
+default_ack(desc)
 {
-	chip->ack(irq);
+	chip->ack(desc);
 }
 
-default_mask_ack(irq)
+default_mask_ack(desc)
 {
 	if (chip->mask_ack) {
-		chip->mask_ack(irq);
+		chip->mask_ack(desc);
 	} else {
-		chip->mask(irq);
-		chip->ack(irq);
+		chip->mask(desc);
+		chip->ack(desc);
 	}
 }
 
-noop(irq)
+noop(desc)
 {
 }
 
arch/alpha/kernel/irq.c +4 -3
Index: linux-2.6/arch/alpha/kernel/irq.c
===================================================================
@@ -46,8 +46,9 @@ int irq_select_affinity(unsigned int irq
 {
 	static int last_cpu;
 	int cpu = last_cpu + 1;
+	struct irq_desc *desc = irq_to_desc(irq);
 
-	if (!irq_desc[irq].chip->set_affinity || irq_user_affinity[irq])
+	if (!desc->chip->set_affinity || irq_user_affinity[irq])
 		return 1;
 
 	while (!cpu_possible(cpu) ||
@@ -55,8 +56,8 @@ int irq_select_affinity(unsigned int irq
 		cpu = (cpu < (NR_CPUS-1) ? cpu + 1 : 0);
 	last_cpu = cpu;
 
-	cpumask_copy(irq_desc[irq].affinity, cpumask_of(cpu));
-	irq_desc[irq].chip->set_affinity(irq, cpumask_of(cpu));
+	cpumask_copy(desc->affinity, cpumask_of(cpu));
+	desc->chip->set_affinity(irq, cpumask_of(cpu));
 	return 0;
 }
 #endif /* CONFIG_SMP */
arch/alpha/kernel/irq_alpha.c +2 -2
Index: linux-2.6/arch/alpha/kernel/irq_alpha.c
===================================================================
@@ -218,8 +218,8 @@ process_mcheck_info(unsigned long vector
  * processed by PALcode, and comes in via entInt vector 1.
  */
 
-static void rtc_enable_disable(unsigned int irq) { }
-static unsigned int rtc_startup(unsigned int irq) { return 0; }
+static void rtc_enable_disable(struct irq_desc *desc) { }
+static unsigned int rtc_startup(struct irq_desc *desc) { return 0; }
 
 struct irqaction timer_irqaction = {
 	.handler	= timer_interrupt,
arch/alpha/kernel/irq_i8259.c +13 -9
Index: linux-2.6/arch/alpha/kernel/irq_i8259.c
===================================================================
@@ -33,8 +33,10 @@ i8259_update_irq_hw(unsigned int irq, un
 }
 
 inline void
-i8259a_enable_irq(unsigned int irq)
+i8259a_enable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	spin_lock(&i8259_irq_lock);
 	i8259_update_irq_hw(irq, cached_irq_mask &= ~(1 << irq));
 	spin_unlock(&i8259_irq_lock);
@@ -47,16 +49,18 @@ __i8259a_disable_irq(unsigned int irq)
 }
 
 void
-i8259a_disable_irq(unsigned int irq)
+i8259a_disable_irq(struct irq_desc *desc)
 {
 	spin_lock(&i8259_irq_lock);
-	__i8259a_disable_irq(irq);
+	__i8259a_disable_irq(desc->irq);
 	spin_unlock(&i8259_irq_lock);
 }
 
 void
-i8259a_mask_and_ack_irq(unsigned int irq)
+i8259a_mask_and_ack_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	spin_lock(&i8259_irq_lock);
 	__i8259a_disable_irq(irq);
 
@@ -70,17 +74,17 @@ i8259a_mask_and_ack_irq(unsigned int irq
 }
 
 unsigned int
-i8259a_startup_irq(unsigned int irq)
+i8259a_startup_irq(struct irq_desc *desc)
 {
-	i8259a_enable_irq(irq);
+	i8259a_enable_irq(desc);
 	return 0; /* never anything pending */
 }
 
 void
-i8259a_end_irq(unsigned int irq)
+i8259a_end_irq(struct irq_desc *desc)
 {
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		i8259a_enable_irq(irq);
+	if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		i8259a_enable_irq(desc);
 }
 
 struct irq_chip i8259a_irq_type = {
arch/alpha/kernel/irq_pyxis.c +11 -10
Index: linux-2.6/arch/alpha/kernel/irq_pyxis.c
===================================================================
@@ -29,34 +29,35 @@ pyxis_update_irq_hw(unsigned long mask)
 }
 
 static inline void
-pyxis_enable_irq(unsigned int irq)
+pyxis_enable_irq(struct irq_desc *desc)
 {
-	pyxis_update_irq_hw(cached_irq_mask |= 1UL << (irq - 16));
+	pyxis_update_irq_hw(cached_irq_mask |= 1UL << (desc->irq - 16));
 }
 
 static void
-pyxis_disable_irq(unsigned int irq)
+pyxis_disable_irq(struct irq_desc *desc)
 {
-	pyxis_update_irq_hw(cached_irq_mask &= ~(1UL << (irq - 16)));
+	pyxis_update_irq_hw(cached_irq_mask &= ~(1UL << (desc->irq - 16)));
 }
 
 static unsigned int
-pyxis_startup_irq(unsigned int irq)
+pyxis_startup_irq(struct irq_desc *desc)
 {
-	pyxis_enable_irq(irq);
+	pyxis_enable_irq(desc);
 	return 0;
 }
 
 static void
-pyxis_end_irq(unsigned int irq)
+pyxis_end_irq(struct irq_desc *desc)
 {
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		pyxis_enable_irq(irq);
+	if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		pyxis_enable_irq(desc);
 }
 
 static void
-pyxis_mask_and_ack_irq(unsigned int irq)
+pyxis_mask_and_ack_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned long bit = 1UL << (irq - 16);
 	unsigned long mask = cached_irq_mask &= ~bit;
 
arch/alpha/kernel/irq_srm.c +9 -9
Index: linux-2.6/arch/alpha/kernel/irq_srm.c
===================================================================
@@ -18,33 +18,33 @@
 DEFINE_SPINLOCK(srm_irq_lock);
 
 static inline void
-srm_enable_irq(unsigned int irq)
+srm_enable_irq(struct irq_desc *desc)
 {
 	spin_lock(&srm_irq_lock);
-	cserve_ena(irq - 16);
+	cserve_ena(desc->irq - 16);
 	spin_unlock(&srm_irq_lock);
 }
 
 static void
-srm_disable_irq(unsigned int irq)
+srm_disable_irq(struct irq_desc *desc)
 {
 	spin_lock(&srm_irq_lock);
-	cserve_dis(irq - 16);
+	cserve_dis(desc->irq - 16);
 	spin_unlock(&srm_irq_lock);
 }
 
 static unsigned int
-srm_startup_irq(unsigned int irq)
+srm_startup_irq(struct irq_desc *desc)
 {
-	srm_enable_irq(irq);
+	srm_enable_irq(desc);
 	return 0;
 }
 
 static void
-srm_end_irq(unsigned int irq)
+srm_end_irq(struct irq_desc *desc)
 {
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		srm_enable_irq(irq);
+	if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		srm_enable_irq(desc);
 }
 
 /* Handle interrupts from the SRM, assuming no additional weirdness.  */
arch/alpha/kernel/sys_alcor.c +14 -14
Index: linux-2.6/arch/alpha/kernel/sys_alcor.c
===================================================================
@@ -44,38 +44,38 @@ alcor_update_irq_hw(unsigned long mask)
 }
 
 static inline void
-alcor_enable_irq(unsigned int irq)
+alcor_enable_irq(struct irq_desc *desc)
 {
-	alcor_update_irq_hw(cached_irq_mask |= 1UL << (irq - 16));
+	alcor_update_irq_hw(cached_irq_mask |= 1UL << (desc->irq - 16));
 }
 
 static void
-alcor_disable_irq(unsigned int irq)
+alcor_disable_irq(struct irq_desc *desc)
 {
-	alcor_update_irq_hw(cached_irq_mask &= ~(1UL << (irq - 16)));
+	alcor_update_irq_hw(cached_irq_mask &= ~(1UL << (desc->irq - 16)));
 }
 
 static void
-alcor_mask_and_ack_irq(unsigned int irq)
+alcor_mask_and_ack_irq(struct irq_desc *desc)
 {
-	alcor_disable_irq(irq);
+	alcor_disable_irq(desc);
 
 	/* On ALCOR/XLT, need to dismiss interrupt via GRU. */
-	*(vuip)GRU_INT_CLEAR = 1 << (irq - 16); mb();
+	*(vuip)GRU_INT_CLEAR = 1 << (desc->irq - 16); mb();
 	*(vuip)GRU_INT_CLEAR = 0; mb();
 }
 
 static unsigned int
-alcor_startup_irq(unsigned int irq)
+alcor_startup_irq(struct irq_desc *desc)
 {
-	alcor_enable_irq(irq);
+	alcor_enable_irq(desc);
 	return 0;
 }
 
 static void
-alcor_isa_mask_and_ack_irq(unsigned int irq)
+alcor_isa_mask_and_ack_irq(struct irq_desc *desc)
 {
-	i8259a_mask_and_ack_irq(irq);
+	i8259a_mask_and_ack_irq(desc);
 
 	/* On ALCOR/XLT, need to dismiss interrupt via GRU. */
 	*(vuip)GRU_INT_CLEAR = 0x80000000; mb();
@@ -83,10 +83,10 @@ alcor_isa_mask_and_ack_irq(unsigned int
 }
 
 static void
-alcor_end_irq(unsigned int irq)
+alcor_end_irq(struct irq_desc *desc)
 {
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		alcor_enable_irq(irq);
+	if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		alcor_enable_irq(desc);
 }
 
 static struct irq_chip alcor_irq_type = {
arch/alpha/kernel/sys_cabriolet.c +11 -7
Index: linux-2.6/arch/alpha/kernel/sys_cabriolet.c
===================================================================
@@ -46,29 +46,33 @@ cabriolet_update_irq_hw(unsigned int irq
 }
 
 static inline void
-cabriolet_enable_irq(unsigned int irq)
+cabriolet_enable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	cabriolet_update_irq_hw(irq, cached_irq_mask &= ~(1UL << irq));
 }
 
 static void
-cabriolet_disable_irq(unsigned int irq)
+cabriolet_disable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	cabriolet_update_irq_hw(irq, cached_irq_mask |= 1UL << irq);
 }
 
 static unsigned int
-cabriolet_startup_irq(unsigned int irq)
+cabriolet_startup_irq(struct irq_desc *desc)
 { 
-	cabriolet_enable_irq(irq);
+	cabriolet_enable_irq(desc);
 	return 0; /* never anything pending */
 }
 
 static void
-cabriolet_end_irq(unsigned int irq)
+cabriolet_end_irq(struct irq_desc *desc)
 { 
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		cabriolet_enable_irq(irq);
+	if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		cabriolet_enable_irq(desc);
 }
 
 static struct irq_chip cabriolet_irq_type = {
arch/alpha/kernel/sys_dp264.c +28 -22

115 lines not on this page · raw message

arch/alpha/kernel/sys_eb64p.c +11 -7
Index: linux-2.6/arch/alpha/kernel/sys_eb64p.c
===================================================================
@@ -44,29 +44,33 @@ eb64p_update_irq_hw(unsigned int irq, un
 }
 
 static inline void
-eb64p_enable_irq(unsigned int irq)
+eb64p_enable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	eb64p_update_irq_hw(irq, cached_irq_mask &= ~(1 << irq));
 }
 
 static void
-eb64p_disable_irq(unsigned int irq)
+eb64p_disable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	eb64p_update_irq_hw(irq, cached_irq_mask |= 1 << irq);
 }
 
 static unsigned int
-eb64p_startup_irq(unsigned int irq)
+eb64p_startup_irq(struct irq_desc *desc)
 {
-	eb64p_enable_irq(irq);
+	eb64p_enable_irq(desc);
 	return 0; /* never anything pending */
 }
 
 static void
-eb64p_end_irq(unsigned int irq)
+eb64p_end_irq(struct irq_desc *desc)
 {
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		eb64p_enable_irq(irq);
+	if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		eb64p_enable_irq(desc);
 }
 
 static struct irq_chip eb64p_irq_type = {
arch/alpha/kernel/sys_eiger.c +11 -7
Index: linux-2.6/arch/alpha/kernel/sys_eiger.c
===================================================================
@@ -51,33 +51,37 @@ eiger_update_irq_hw(unsigned long irq, u
 }
 
 static inline void
-eiger_enable_irq(unsigned int irq)
+eiger_enable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned long mask;
+
 	mask = (cached_irq_mask[irq >= 64] &= ~(1UL << (irq & 63)));
 	eiger_update_irq_hw(irq, mask);
 }
 
 static void
-eiger_disable_irq(unsigned int irq)
+eiger_disable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned long mask;
+
 	mask = (cached_irq_mask[irq >= 64] |= 1UL << (irq & 63));
 	eiger_update_irq_hw(irq, mask);
 }
 
 static unsigned int
-eiger_startup_irq(unsigned int irq)
+eiger_startup_irq(struct irq_desc *desc)
 {
-	eiger_enable_irq(irq);
+	eiger_enable_irq(desc);
 	return 0; /* never anything pending */
 }
 
 static void
-eiger_end_irq(unsigned int irq)
+eiger_end_irq(struct irq_desc *desc)
 {
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		eiger_enable_irq(irq);
+	if (!(irq_desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		eiger_enable_irq(desc);
 }
 
 static struct irq_chip eiger_irq_type = {
arch/alpha/kernel/sys_jensen.c +20 -20
Index: linux-2.6/arch/alpha/kernel/sys_jensen.c
===================================================================
@@ -63,59 +63,59 @@
  */
 
 static unsigned int
-jensen_local_startup(unsigned int irq)
+jensen_local_startup(struct irq_desc *desc)
 {
 	/* the parport is really hw IRQ 1, silly Jensen.  */
-	if (irq == 7)
-		i8259a_startup_irq(1);
+	if (desc->irq == 7)
+		i8259a_startup_irq(irq_to_desc(1));
 	else
 		/*
 		 * For all true local interrupts, set the flag that prevents
 		 * the IPL from being dropped during handler processing.
 		 */
-		if (irq_desc[irq].action)
-			irq_desc[irq].action->flags |= IRQF_DISABLED;
+		if (desc->action)
+			desc->action->flags |= IRQF_DISABLED;
 	return 0;
 }
 
 static void
-jensen_local_shutdown(unsigned int irq)
+jensen_local_shutdown(struct irq_desc *desc)
 {
 	/* the parport is really hw IRQ 1, silly Jensen.  */
-	if (irq == 7)
-		i8259a_disable_irq(1);
+	if (desc->irq == 7)
+		i8259a_disable_irq(irq_to_desc(1));
 }
 
 static void
-jensen_local_enable(unsigned int irq)
+jensen_local_enable(struct irq_desc *desc)
 {
 	/* the parport is really hw IRQ 1, silly Jensen.  */
-	if (irq == 7)
-		i8259a_enable_irq(1);
+	if (desc->irq == 7)
+		i8259a_enable_irq(irq_to_desc(1));
 }
 
 static void
-jensen_local_disable(unsigned int irq)
+jensen_local_disable(struct irq_desc *desc)
 {
 	/* the parport is really hw IRQ 1, silly Jensen.  */
-	if (irq == 7)
-		i8259a_disable_irq(1);
+	if (desc->irq == 7)
+		i8259a_disable_irq(irq_to_desc(1));
 }
 
 static void
-jensen_local_ack(unsigned int irq)
+jensen_local_ack(struct irq_desc *desc)
 {
 	/* the parport is really hw IRQ 1, silly Jensen.  */
-	if (irq == 7)
-		i8259a_mask_and_ack_irq(1);
+	if (desc->irq == 7)
+		i8259a_mask_and_ack_irq(irq_to_desc(1));
 }
 
 static void
-jensen_local_end(unsigned int irq)
+jensen_local_end(struct irq_desc *desc)
 {
 	/* the parport is really hw IRQ 1, silly Jensen.  */
-	if (irq == 7)
-		i8259a_end_irq(1);
+	if (desc->irq == 7)
+		i8259a_end_irq(irq_to_desc(1));
 }
 
 static struct irq_chip jensen_local_irq_type = {
arch/alpha/kernel/sys_marvel.c +13 -13
Index: linux-2.6/arch/alpha/kernel/sys_marvel.c
===================================================================
@@ -104,15 +104,15 @@ io7_get_irq_ctl(unsigned int irq, struct
 }
 
 static void
-io7_enable_irq(unsigned int irq)
+io7_enable_irq(struct irq_desc *desc)
 {
 	volatile unsigned long *ctl;
 	struct io7 *io7;
 
-	ctl = io7_get_irq_ctl(irq, &io7);
+	ctl = io7_get_irq_ctl(desc->irq, &io7);
 	if (!ctl || !io7) {
 		printk(KERN_ERR "%s: get_ctl failed for irq %x\n",
-		       __func__, irq);
+		       __func__, desc->irq);
 		return;
 	}
 		
@@ -124,15 +124,15 @@ io7_enable_irq(unsigned int irq)
 }
 
 static void
-io7_disable_irq(unsigned int irq)
+io7_disable_irq(struct irq_desc *desc)
 {
 	volatile unsigned long *ctl;
 	struct io7 *io7;
 
-	ctl = io7_get_irq_ctl(irq, &io7);
+	ctl = io7_get_irq_ctl(desc->irq, &io7);
 	if (!ctl || !io7) {
 		printk(KERN_ERR "%s: get_ctl failed for irq %x\n",
-		       __func__, irq);
+		       __func__, desc->irq);
 		return;
 	}
 		
@@ -144,27 +144,27 @@ io7_disable_irq(unsigned int irq)
 }
 
 static unsigned int
-io7_startup_irq(unsigned int irq)
+io7_startup_irq(struct irq_desc *desc)
 {
-	io7_enable_irq(irq);
+	io7_enable_irq(desc);
 	return 0;	/* never anything pending */
 }
 
 static void
-io7_end_irq(unsigned int irq)
+io7_end_irq(struct irq_desc *desc)
 {
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		io7_enable_irq(irq);
+	if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		io7_enable_irq(desc);
 }
 
 static void
-marvel_irq_noop(unsigned int irq) 
+marvel_irq_noop(struct irq_desc *desc)
 { 
 	return; 
 }
 
 static unsigned int
-marvel_irq_noop_return(unsigned int irq) 
+marvel_irq_noop_return(struct irq_desc *desc)
 { 
 	return 0; 
 }
arch/alpha/kernel/sys_mikasa.c +9 -9
Index: linux-2.6/arch/alpha/kernel/sys_mikasa.c
===================================================================
@@ -43,29 +43,29 @@ mikasa_update_irq_hw(int mask)
 }
 
 static inline void
-mikasa_enable_irq(unsigned int irq)
+mikasa_enable_irq(struct irq_desc *desc)
 {
-	mikasa_update_irq_hw(cached_irq_mask |= 1 << (irq - 16));
+	mikasa_update_irq_hw(cached_irq_mask |= 1 << (desc->irq - 16));
 }
 
 static void
-mikasa_disable_irq(unsigned int irq)
+mikasa_disable_irq(struct irq_desc *desc)
 {
-	mikasa_update_irq_hw(cached_irq_mask &= ~(1 << (irq - 16)));
+	mikasa_update_irq_hw(cached_irq_mask &= ~(1 << (desc->irq - 16)));
 }
 
 static unsigned int
-mikasa_startup_irq(unsigned int irq)
+mikasa_startup_irq(struct irq_desc *desc)
 {
-	mikasa_enable_irq(irq);
+	mikasa_enable_irq(desc);
 	return 0;
 }
 
 static void
-mikasa_end_irq(unsigned int irq)
+mikasa_end_irq(struct irq_desc *desc)
 {
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		mikasa_enable_irq(irq);
+	if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		mikasa_enable_irq(desc);
 }
 
 static struct irq_chip mikasa_irq_type = {
arch/alpha/kernel/sys_noritake.c +11 -7
Index: linux-2.6/arch/alpha/kernel/sys_noritake.c
===================================================================
@@ -48,29 +48,33 @@ noritake_update_irq_hw(int irq, int mask
 }
 
 static void
-noritake_enable_irq(unsigned int irq)
+noritake_enable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	noritake_update_irq_hw(irq, cached_irq_mask |= 1 << (irq - 16));
 }
 
 static void
-noritake_disable_irq(unsigned int irq)
+noritake_disable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	noritake_update_irq_hw(irq, cached_irq_mask &= ~(1 << (irq - 16)));
 }
 
 static unsigned int
-noritake_startup_irq(unsigned int irq)
+noritake_startup_irq(struct irq_desc *desc)
 {
-	noritake_enable_irq(irq);
+	noritake_enable_irq(desc);
 	return 0;
 }
 
 static void
-noritake_end_irq(unsigned int irq)
+noritake_end_irq(struct irq_desc *desc)
 {
-        if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-                noritake_enable_irq(irq);
+	if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		noritake_enable_irq(desc);
 }
 
 static struct irq_chip noritake_irq_type = {
arch/alpha/kernel/sys_rawhide.c +11 -8
Index: linux-2.6/arch/alpha/kernel/sys_rawhide.c
===================================================================
@@ -56,8 +56,9 @@ rawhide_update_irq_hw(int hose, int mask
   (((h) < MCPCIA_MAX_HOSES) && (cached_irq_masks[(h)] != 0))
 
 static inline void 
-rawhide_enable_irq(unsigned int irq)
+rawhide_enable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int mask, hose;
 
 	irq -= 16;
@@ -76,8 +77,9 @@ rawhide_enable_irq(unsigned int irq)
 }
 
 static void 
-rawhide_disable_irq(unsigned int irq)
+rawhide_disable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int mask, hose;
 
 	irq -= 16;
@@ -96,8 +98,9 @@ rawhide_disable_irq(unsigned int irq)
 }
 
 static void
-rawhide_mask_and_ack_irq(unsigned int irq)
+rawhide_mask_and_ack_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int mask, mask1, hose;
 
 	irq -= 16;
@@ -122,17 +125,17 @@ rawhide_mask_and_ack_irq(unsigned int ir
 }
 
 static unsigned int
-rawhide_startup_irq(unsigned int irq)
+rawhide_startup_irq(struct irq_desc *desc)
 {
-	rawhide_enable_irq(irq);
+	rawhide_enable_irq(desc);
 	return 0;
 }
 
 static void
-rawhide_end_irq(unsigned int irq)
+rawhide_end_irq(struct irq_desc *desc)
 {
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		rawhide_enable_irq(irq);
+	if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		rawhide_enable_irq(desc);
 }
 
 static struct irq_chip rawhide_irq_type = {
arch/alpha/kernel/sys_rx164.c +9 -9
Index: linux-2.6/arch/alpha/kernel/sys_rx164.c
===================================================================
@@ -47,29 +47,29 @@ rx164_update_irq_hw(unsigned long mask)
 }
 
 static inline void
-rx164_enable_irq(unsigned int irq)
+rx164_enable_irq(struct irq_desc *desc)
 {
-	rx164_update_irq_hw(cached_irq_mask |= 1UL << (irq - 16));
+	rx164_update_irq_hw(cached_irq_mask |= 1UL << (desc->irq - 16));
 }
 
 static void
-rx164_disable_irq(unsigned int irq)
+rx164_disable_irq(struct irq_desc *desc)
 {
-	rx164_update_irq_hw(cached_irq_mask &= ~(1UL << (irq - 16)));
+	rx164_update_irq_hw(cached_irq_mask &= ~(1UL << (desc->irq - 16)));
 }
 
 static unsigned int
-rx164_startup_irq(unsigned int irq)
+rx164_startup_irq(struct irq_desc *desc)
 {
-	rx164_enable_irq(irq);
+	rx164_enable_irq(desc);
 	return 0;
 }
 
 static void
-rx164_end_irq(unsigned int irq)
+rx164_end_irq(struct irq_desc *desc)
 {
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		rx164_enable_irq(irq);
+	if (!(desc_.status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		rx164_enable_irq(desc);
 }
 
 static struct irq_chip rx164_irq_type = {
arch/alpha/kernel/sys_sable.c +13 -13
Index: linux-2.6/arch/alpha/kernel/sys_sable.c
===================================================================
@@ -443,57 +443,57 @@ lynx_swizzle(struct pci_dev *dev, u8 *pi
 /* GENERIC irq routines */
 
 static inline void
-sable_lynx_enable_irq(unsigned int irq)
+sable_lynx_enable_irq(struct irq_desc *desc)
 {
 	unsigned long bit, mask;
 
-	bit = sable_lynx_irq_swizzle->irq_to_mask[irq];
+	bit = sable_lynx_irq_swizzle->irq_to_mask[desc->irq];
 	spin_lock(&sable_lynx_irq_lock);
 	mask = sable_lynx_irq_swizzle->shadow_mask &= ~(1UL << bit);
 	sable_lynx_irq_swizzle->update_irq_hw(bit, mask);
 	spin_unlock(&sable_lynx_irq_lock);
 #if 0
 	printk("%s: mask 0x%lx bit 0x%lx irq 0x%x\n",
-	       __func__, mask, bit, irq);
+	       __func__, mask, bit, desc->irq);
 #endif
 }
 
 static void
-sable_lynx_disable_irq(unsigned int irq)
+sable_lynx_disable_irq(struct irq_desc *desc)
 {
 	unsigned long bit, mask;
 
-	bit = sable_lynx_irq_swizzle->irq_to_mask[irq];
+	bit = sable_lynx_irq_swizzle->irq_to_mask[desc->irq];
 	spin_lock(&sable_lynx_irq_lock);
 	mask = sable_lynx_irq_swizzle->shadow_mask |= 1UL << bit;
 	sable_lynx_irq_swizzle->update_irq_hw(bit, mask);
 	spin_unlock(&sable_lynx_irq_lock);
 #if 0
 	printk("%s: mask 0x%lx bit 0x%lx irq 0x%x\n",
-	       __func__, mask, bit, irq);
+	       __func__, mask, bit, desc->irq);
 #endif
 }
 
 static unsigned int
-sable_lynx_startup_irq(unsigned int irq)
+sable_lynx_startup_irq(struct irq_desc *desc)
 {
-	sable_lynx_enable_irq(irq);
+	sable_lynx_enable_irq(desc);
 	return 0;
 }
 
 static void
-sable_lynx_end_irq(unsigned int irq)
+sable_lynx_end_irq(struct irq_desc *desc)
 {
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		sable_lynx_enable_irq(irq);
+	if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		sable_lynx_enable_irq(desc);
 }
 
 static void
-sable_lynx_mask_and_ack_irq(unsigned int irq)
+sable_lynx_mask_and_ack_irq(struct irq_desc *desc)
 {
 	unsigned long bit, mask;
 
-	bit = sable_lynx_irq_swizzle->irq_to_mask[irq];
+	bit = sable_lynx_irq_swizzle->irq_to_mask[desc->irq];
 	spin_lock(&sable_lynx_irq_lock);
 	mask = sable_lynx_irq_swizzle->shadow_mask |= 1UL << bit;
 	sable_lynx_irq_swizzle->update_irq_hw(bit, mask);
arch/alpha/kernel/sys_takara.c +11 -7
Index: linux-2.6/arch/alpha/kernel/sys_takara.c
===================================================================
@@ -45,33 +45,37 @@ takara_update_irq_hw(unsigned long irq,
 }
 
 static inline void
-takara_enable_irq(unsigned int irq)
+takara_enable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned long mask;
+
 	mask = (cached_irq_mask[irq >= 64] &= ~(1UL << (irq & 63)));
 	takara_update_irq_hw(irq, mask);
 }
 
 static void
-takara_disable_irq(unsigned int irq)
+takara_disable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned long mask;
+
 	mask = (cached_irq_mask[irq >= 64] |= 1UL << (irq & 63));
 	takara_update_irq_hw(irq, mask);
 }
 
 static unsigned int
-takara_startup_irq(unsigned int irq)
+takara_startup_irq(struct irq_desc *desc)
 {
-	takara_enable_irq(irq);
+	takara_enable_irq(desc);
 	return 0; /* never anything pending */
 }
 
 static void
-takara_end_irq(unsigned int irq)
+takara_end_irq(struct irq_desc *desc)
 {
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		takara_enable_irq(irq);
+	if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		takara_enable_irq(desc);
 }
 
 static struct irq_chip takara_irq_type = {
arch/alpha/kernel/sys_titan.c +11 -11
Index: linux-2.6/arch/alpha/kernel/sys_titan.c
===================================================================
@@ -112,35 +112,35 @@ titan_update_irq_hw(unsigned long mask)
 }
 
 static inline void
-titan_enable_irq(unsigned int irq)
+titan_enable_irq(struct irq_desc *desc)
 {
 	spin_lock(&titan_irq_lock);
-	titan_cached_irq_mask |= 1UL << (irq - 16);
+	titan_cached_irq_mask |= 1UL << (desc->irq - 16);
 	titan_update_irq_hw(titan_cached_irq_mask);
 	spin_unlock(&titan_irq_lock);
 }
 
 static inline void
-titan_disable_irq(unsigned int irq)
+titan_disable_irq(struct irq_desc *desc)
 {
 	spin_lock(&titan_irq_lock);
-	titan_cached_irq_mask &= ~(1UL << (irq - 16));
+	titan_cached_irq_mask &= ~(1UL << (desc->irq - 16));
 	titan_update_irq_hw(titan_cached_irq_mask);
 	spin_unlock(&titan_irq_lock);
 }
 
 static unsigned int
-titan_startup_irq(unsigned int irq)
+titan_startup_irq(struct irq_desc *desc)
 {
-	titan_enable_irq(irq);
+	titan_enable_irq(desc);
 	return 0;	/* never anything pending */
 }
 
 static void
-titan_end_irq(unsigned int irq)
+titan_end_irq(struct irq_desc *desc)
 {
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		titan_enable_irq(irq);
+	if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		titan_enable_irq(desc);
 }
 
 static void
@@ -158,10 +158,10 @@ titan_cpu_set_irq_affinity(unsigned int
 }
 
 static int
-titan_set_irq_affinity(unsigned int irq, const struct cpumask *affinity)
+titan_set_irq_affinity(struct irq_desc *desc, const struct cpumask *affinity)
 { 
 	spin_lock(&titan_irq_lock);
-	titan_cpu_set_irq_affinity(irq - 16, *affinity);
+	titan_cpu_set_irq_affinity(desc->irq - 16, *affinity);
 	titan_update_irq_hw(titan_cached_irq_mask);
 	spin_unlock(&titan_irq_lock);
 
arch/alpha/kernel/sys_wildfire.c +19 -13
Index: linux-2.6/arch/alpha/kernel/sys_wildfire.c
===================================================================
@@ -104,10 +104,12 @@ wildfire_init_irq_hw(void)
 }
 
 static void
-wildfire_enable_irq(unsigned int irq)
+wildfire_enable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	if (irq < 16)
-		i8259a_enable_irq(irq);
+		i8259a_enable_irq(desc);
 
 	spin_lock(&wildfire_irq_lock);
 	set_bit(irq, &cached_irq_mask);
@@ -116,10 +118,12 @@ wildfire_enable_irq(unsigned int irq)
 }
 
 static void
-wildfire_disable_irq(unsigned int irq)
+wildfire_disable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	if (irq < 16)
-		i8259a_disable_irq(irq);
+		i8259a_disable_irq(desc);
 
 	spin_lock(&wildfire_irq_lock);
 	clear_bit(irq, &cached_irq_mask);
@@ -128,10 +132,12 @@ wildfire_disable_irq(unsigned int irq)
 }
 
 static void
-wildfire_mask_and_ack_irq(unsigned int irq)
+wildfire_mask_and_ack_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	if (irq < 16)
-		i8259a_mask_and_ack_irq(irq);
+		i8259a_mask_and_ack_irq(desc);
 
 	spin_lock(&wildfire_irq_lock);
 	clear_bit(irq, &cached_irq_mask);
@@ -140,21 +146,21 @@ wildfire_mask_and_ack_irq(unsigned int i
 }
 
 static unsigned int
-wildfire_startup_irq(unsigned int irq)
+wildfire_startup_irq(struct irq_desc *desc)
 { 
-	wildfire_enable_irq(irq);
+	wildfire_enable_irq(desc);
 	return 0; /* never anything pending */
 }
 
 static void
-wildfire_end_irq(unsigned int irq)
+wildfire_end_irq(struct irq_desc *desc)
 { 
 #if 0
-	if (!irq_desc[irq].action)
-		printk("got irq %d\n", irq);
+	if (!desc->action)
+		printk("got irq %d\n", desc->irq);
 #endif
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		wildfire_enable_irq(irq);
+	if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		wildfire_enable_irq(desc);
 }
 
 static struct irq_chip wildfire_irq_type = {
arch/arm/common/gic.c +12 -8
Index: linux-2.6/arch/arm/common/gic.c
===================================================================
@@ -80,8 +80,9 @@ static inline unsigned int gic_irq(unsig
  * our "acknowledge" routine disable the interrupt, then mark it as
  * complete.
  */
-static void gic_ack_irq(unsigned int irq)
+static void gic_ack_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	u32 mask = 1 << (irq % 32);
 
 	spin_lock(&irq_controller_lock);
@@ -90,8 +91,9 @@ static void gic_ack_irq(unsigned int irq
 	spin_unlock(&irq_controller_lock);
 }
 
-static void gic_mask_irq(unsigned int irq)
+static void gic_mask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	u32 mask = 1 << (irq % 32);
 
 	spin_lock(&irq_controller_lock);
@@ -99,8 +101,9 @@ static void gic_mask_irq(unsigned int ir
 	spin_unlock(&irq_controller_lock);
 }
 
-static void gic_unmask_irq(unsigned int irq)
+static void gic_unmask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	u32 mask = 1 << (irq % 32);
 
 	spin_lock(&irq_controller_lock);
@@ -109,8 +112,9 @@ static void gic_unmask_irq(unsigned int
 }
 
 #ifdef CONFIG_SMP
-static int gic_set_cpu(unsigned int irq, const struct cpumask *mask_val)
+static int gic_set_cpu(struct irq_desc *desc, const struct cpumask *mask_val)
 {
+	unsigned int irq = desc->irq;
 	void __iomem *reg = gic_dist_base(irq) + GIC_DIST_TARGET + (gic_irq(irq) & ~3);
 	unsigned int shift = (irq % 4) * 8;
 	unsigned int cpu = cpumask_first(mask_val);
@@ -129,13 +133,13 @@ static int gic_set_cpu(unsigned int irq,
 
 static void gic_handle_cascade_irq(unsigned int irq, struct irq_desc *desc)
 {
-	struct gic_chip_data *chip_data = get_irq_data(irq);
-	struct irq_chip *chip = get_irq_chip(irq);
+	struct gic_chip_data *chip_data = get_irq_desc_data(desc);
+	struct irq_chip *chip = get_irq_desc_chip(desc);
 	unsigned int cascade_irq, gic_irq;
 	unsigned long status;
 
 	/* primary controller ack'ing */
-	chip->ack(irq);
+	chip->ack(desc);
 
 	spin_lock(&irq_controller_lock);
 	status = readl(chip_data->cpu_base + GIC_CPU_INTACK);
@@ -153,7 +157,7 @@ static void gic_handle_cascade_irq(unsig
 
  out:
 	/* primary controller unmasking */
-	chip->unmask(irq);
+	chip->unmask(desc);
 }
 
 static struct irq_chip gic_chip = {
arch/arm/common/it8152.c +6 -2
Index: linux-2.6/arch/arm/common/it8152.c
===================================================================
@@ -32,8 +32,10 @@
 
 #define MAX_SLOTS		21
 
-static void it8152_mask_irq(unsigned int irq)
+static void it8152_mask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
        if (irq >= IT8152_LD_IRQ(0)) {
 	       __raw_writel((__raw_readl(IT8152_INTC_LDCNIMR) |
 			    (1 << (irq - IT8152_LD_IRQ(0)))),
@@ -49,8 +51,10 @@ static void it8152_mask_irq(unsigned int
        }
 }
 
-static void it8152_unmask_irq(unsigned int irq)
+static void it8152_unmask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
        if (irq >= IT8152_LD_IRQ(0)) {
 	       __raw_writel((__raw_readl(IT8152_INTC_LDCNIMR) &
 			     ~(1 << (irq - IT8152_LD_IRQ(0)))),
arch/arm/common/locomo.c +66 -37

251 lines not on this page · raw message

arch/arm/common/sa1111.c +33 -23

146 lines not on this page · raw message

arch/arm/common/vic.c +14 -7
Index: linux-2.6/arch/arm/common/vic.c
===================================================================
@@ -28,25 +28,31 @@
 #include <asm/mach/irq.h>
 #include <asm/hardware/vic.h>
 
-static void vic_ack_irq(unsigned int irq)
+static void vic_ack_irq(struct irq_desc *desc)
 {
-	void __iomem *base = get_irq_chip_data(irq);
+	unsigned int irq = desc->irq;
+	void __iomem *base = get_irq_desc_chip_data(desc);
+
 	irq &= 31;
 	writel(1 << irq, base + VIC_INT_ENABLE_CLEAR);
 	/* moreover, clear the soft-triggered, in case it was the reason */
 	writel(1 << irq, base + VIC_INT_SOFT_CLEAR);
 }
 
-static void vic_mask_irq(unsigned int irq)
+static void vic_mask_irq(struct irq_desc *desc)
 {
-	void __iomem *base = get_irq_chip_data(irq);
+	unsigned int irq = desc->irq;
+	void __iomem *base = get_irq_desc_chip_data(desc);
+
 	irq &= 31;
 	writel(1 << irq, base + VIC_INT_ENABLE_CLEAR);
 }
 
-static void vic_unmask_irq(unsigned int irq)
+static void vic_unmask_irq(struct irq_desc *desc)
 {
-	void __iomem *base = get_irq_chip_data(irq);
+	unsigned int irq = desc->irq;
+	void __iomem *base = get_irq_desc_chip_data(irq);
+
 	irq &= 31;
 	writel(1 << irq, base + VIC_INT_ENABLE);
 }
@@ -236,8 +242,9 @@ static struct vic_device *vic_from_irq(u
 	return NULL;
 }
 
-static int vic_set_wake(unsigned int irq, unsigned int on)
+static int vic_set_wake(struct irq_desc *desc, unsigned int on)
 {
+	unsigned int irq = desc->irq;
 	struct vic_device *v = vic_from_irq(irq);
 	unsigned int off = irq & 31;
 	u32 bit = 1 << off;
arch/arm/kernel/ecard.c +7 -5
Index: linux-2.6/arch/arm/kernel/ecard.c
===================================================================
@@ -443,8 +443,9 @@ static expansioncard_ops_t ecard_default
  *
  * They are not meant to be called directly, but via enable/disable_irq.
  */
-static void ecard_irq_unmask(unsigned int irqnr)
+static void ecard_irq_unmask(struct irq_desc *desc)
 {
+	unsigned int irqnr = desc->irq;
 	ecard_t *ec = slot_to_ecard(irqnr - 32);
 
 	if (ec) {
@@ -459,8 +460,9 @@ static void ecard_irq_unmask(unsigned in
 	}
 }
 
-static void ecard_irq_mask(unsigned int irqnr)
+static void ecard_irq_mask(struct irq_desc *desc)
 {
+	unsigned int irqnr = desc->irq;
 	ecard_t *ec = slot_to_ecard(irqnr - 32);
 
 	if (ec) {
@@ -551,7 +553,7 @@ static void ecard_check_lockup(struct ir
 			printk(KERN_ERR "\nInterrupt lockup detected - "
 			       "disabling all expansion card interrupts\n");
 
-			desc->chip->mask(IRQ_EXPANSIONCARD);
+			desc->chip->mask(irq_to_desc(IRQ_EXPANSIONCARD));
 			ecard_dump_irq_state();
 		}
 	} else
@@ -574,7 +576,7 @@ ecard_irq_handler(unsigned int irq, stru
 	ecard_t *ec;
 	int called = 0;
 
-	desc->chip->mask(irq);
+	desc->chip->mask(desc);
 	for (ec = cards; ec; ec = ec->next) {
 		int pending;
 
@@ -591,7 +593,7 @@ ecard_irq_handler(unsigned int irq, stru
 			called ++;
 		}
 	}
-	desc->chip->unmask(irq);
+	desc->chip->unmask(desc);
 
 	if (called == 0)
 		ecard_check_lockup(desc);
arch/arm/kernel/irq.c +1 -1
Index: linux-2.6/arch/arm/kernel/irq.c
===================================================================
@@ -167,7 +167,7 @@ static void route_irq(struct irq_desc *d
 	pr_debug("IRQ%u: moving from cpu%u to cpu%u\n", irq, desc->node, cpu);
 
 	raw_spin_lock_irq(&desc->lock);
-	desc->chip->set_affinity(irq, cpumask_of(cpu));
+	desc->chip->set_affinity(desc, cpumask_of(cpu));
 	raw_spin_unlock_irq(&desc->lock);
 }
 
arch/arm/mach-aaec2000/core.c +3 -3
Index: linux-2.6/arch/arm/mach-aaec2000/core.c
===================================================================
@@ -67,17 +67,17 @@ void __init aaec2000_map_io(void)
 /*
  * Interrupt handling routines
  */
-static void aaec2000_int_ack(unsigned int irq)
+static void aaec2000_int_ack(struct irq_desc *desc)
 {
 	IRQ_INTSR = 1 << irq;
 }
 
-static void aaec2000_int_mask(unsigned int irq)
+static void aaec2000_int_mask(struct irq_desc *desc)
 {
 	IRQ_INTENC |= (1 << irq);
 }
 
-static void aaec2000_int_unmask(unsigned int irq)
+static void aaec2000_int_unmask(struct irq_desc *desc)
 {
 	IRQ_INTENS |= (1 << irq);
 }
arch/arm/mach-at91/gpio.c +9 -6
Index: linux-2.6/arch/arm/mach-at91/gpio.c
===================================================================
@@ -274,8 +274,9 @@ EXPORT_SYMBOL(at91_get_gpio_value);
 static u32 wakeups[MAX_GPIO_BANKS];
 static u32 backups[MAX_GPIO_BANKS];
 
-static int gpio_irq_set_wake(unsigned pin, unsigned state)
+static int gpio_irq_set_wake(struct irq_desc *desc, unsigned state)
 {
+	unsigned int pin = desc->irq;
 	unsigned	mask = pin_to_mask(pin);
 	unsigned	bank = (pin - PIN_BASE) / 32;
 
@@ -344,8 +345,9 @@ void at91_gpio_resume(void)
  * IRQ0..IRQ6 should be configurable, e.g. level vs edge triggering.
  */
 
-static void gpio_irq_mask(unsigned pin)
+static void gpio_irq_mask(struct irq_desc *desc)
 {
+	unsigned int pin = desc->irq;
 	void __iomem	*pio = pin_to_controller(pin);
 	unsigned	mask = pin_to_mask(pin);
 
@@ -353,8 +355,9 @@ static void gpio_irq_mask(unsigned pin)
 		__raw_writel(mask, pio + PIO_IDR);
 }
 
-static void gpio_irq_unmask(unsigned pin)
+static void gpio_irq_unmask(struct irq_desc *desc)
 {
+	unsigned int pin = desc->irq;
 	void __iomem	*pio = pin_to_controller(pin);
 	unsigned	mask = pin_to_mask(pin);
 
@@ -362,7 +365,7 @@ static void gpio_irq_unmask(unsigned pin
 		__raw_writel(mask, pio + PIO_IER);
 }
 
-static int gpio_irq_type(unsigned pin, unsigned type)
+static int gpio_irq_type(struct irq_desc *desc, unsigned type)
 {
 	switch (type) {
 	case IRQ_TYPE_NONE:
@@ -393,7 +396,7 @@ static void gpio_irq_handler(unsigned ir
 	pio = at91_gpio->regbase;
 
 	/* temporarily mask (level sensitive) parent IRQ */
-	desc->chip->ack(irq);
+	desc->chip->ack(desc);
 	for (;;) {
 		/* Reading ISR acks pending (edge triggered) GPIO interrupts.
 		 * When there none are pending, we're finished unless we need
@@ -429,7 +432,7 @@ static void gpio_irq_handler(unsigned ir
 			isr >>= 1;
 		}
 	}
-	desc->chip->unmask(irq);
+	desc->chip->unmask(desc);
 	/* now it may re-trigger */
 }
 
arch/arm/mach-at91/irq.c +11 -4
Index: linux-2.6/arch/arm/mach-at91/irq.c
===================================================================
@@ -34,14 +34,18 @@
 #include <asm/mach/map.h>
 
 
-static void at91_aic_mask_irq(unsigned int irq)
+static void at91_aic_mask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	/* Disable interrupt on AIC */
 	at91_sys_write(AT91_AIC_IDCR, 1 << irq);
 }
 
-static void at91_aic_unmask_irq(unsigned int irq)
+static void at91_aic_unmask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	/* Enable interrupt on AIC */
 	at91_sys_write(AT91_AIC_IECR, 1 << irq);
 }
@@ -50,8 +54,9 @@ unsigned int at91_extern_irq;
 
 #define is_extern_irq(irq) ((1 << (irq)) & at91_extern_irq)
 
-static int at91_aic_set_type(unsigned irq, unsigned type)
+static int at91_aic_set_type(struct irq_desc *desc, unsigned type)
 {
+	unsigned int irq = desc->irq;
 	unsigned int smr, srctype;
 
 	switch (type) {
@@ -87,8 +92,10 @@ static int at91_aic_set_type(unsigned ir
 static u32 wakeups;
 static u32 backups;
 
-static int at91_aic_set_wake(unsigned irq, unsigned value)
+static int at91_aic_set_wake(struct irq_desc *desc, unsigned value)
 {
+	unsigned int irq = desc->irq;
+
 	if (unlikely(irq >= 32))
 		return -EINVAL;
 
arch/arm/mach-bcmring/irq.c +18 -6
Index: linux-2.6/arch/arm/mach-bcmring/irq.c
===================================================================
@@ -30,38 +30,50 @@
 #include <mach/csp/intcHw_reg.h>
 #include <mach/csp/mm_io.h>
 
-static void bcmring_mask_irq0(unsigned int irq)
+static void bcmring_mask_irq0(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	writel(1 << (irq - IRQ_INTC0_START),
 	       MM_IO_BASE_INTC0 + INTCHW_INTENCLEAR);
 }
 
-static void bcmring_unmask_irq0(unsigned int irq)
+static void bcmring_unmask_irq0(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	writel(1 << (irq - IRQ_INTC0_START),
 	       MM_IO_BASE_INTC0 + INTCHW_INTENABLE);
 }
 
-static void bcmring_mask_irq1(unsigned int irq)
+static void bcmring_mask_irq1(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	writel(1 << (irq - IRQ_INTC1_START),
 	       MM_IO_BASE_INTC1 + INTCHW_INTENCLEAR);
 }
 
-static void bcmring_unmask_irq1(unsigned int irq)
+static void bcmring_unmask_irq1(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	writel(1 << (irq - IRQ_INTC1_START),
 	       MM_IO_BASE_INTC1 + INTCHW_INTENABLE);
 }
 
-static void bcmring_mask_irq2(unsigned int irq)
+static void bcmring_mask_irq2(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	writel(1 << (irq - IRQ_SINTC_START),
 	       MM_IO_BASE_SINTC + INTCHW_INTENCLEAR);
 }
 
-static void bcmring_unmask_irq2(unsigned int irq)
+static void bcmring_unmask_irq2(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	writel(1 << (irq - IRQ_SINTC_START),
 	       MM_IO_BASE_SINTC + INTCHW_INTENABLE);
 }
arch/arm/mach-clps711x/irq.c +12 -6
Index: linux-2.6/arch/arm/mach-clps711x/irq.c
===================================================================
@@ -27,8 +27,9 @@
 
 #include <asm/hardware/clps7111.h>
 
-static void int1_mask(unsigned int irq)
+static void int1_mask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	u32 intmr1;
 
 	intmr1 = clps_readl(INTMR1);
@@ -36,8 +37,9 @@ static void int1_mask(unsigned int irq)
 	clps_writel(intmr1, INTMR1);
 }
 
-static void int1_ack(unsigned int irq)
+static void int1_ack(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	u32 intmr1;
 
 	intmr1 = clps_readl(INTMR1);
@@ -54,8 +56,9 @@ static void int1_ack(unsigned int irq)
 	}
 }
 
-static void int1_unmask(unsigned int irq)
+static void int1_unmask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	u32 intmr1;
 
 	intmr1 = clps_readl(INTMR1);
@@ -69,8 +72,9 @@ static struct irq_chip int1_chip = {
 	.unmask = int1_unmask,
 };
 
-static void int2_mask(unsigned int irq)
+static void int2_mask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	u32 intmr2;
 
 	intmr2 = clps_readl(INTMR2);
@@ -78,8 +82,9 @@ static void int2_mask(unsigned int irq)
 	clps_writel(intmr2, INTMR2);
 }
 
-static void int2_ack(unsigned int irq)
+static void int2_ack(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	u32 intmr2;
 
 	intmr2 = clps_readl(INTMR2);
@@ -91,8 +96,9 @@ static void int2_ack(unsigned int irq)
 	}
 }
 
-static void int2_unmask(unsigned int irq)
+static void int2_unmask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	u32 intmr2;
 
 	intmr2 = clps_readl(INTMR2);
arch/arm/mach-davinci/cp_intc.c +9 -5
Index: linux-2.6/arch/arm/mach-davinci/cp_intc.c
===================================================================
@@ -27,14 +27,16 @@ static inline void cp_intc_write(unsigne
 	__raw_writel(value, cp_intc_base + offset);
 }
 
-static void cp_intc_ack_irq(unsigned int irq)
+static void cp_intc_ack_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	cp_intc_write(irq, CP_INTC_SYS_STAT_IDX_CLR);
 }
 
 /* Disable interrupt */
-static void cp_intc_mask_irq(unsigned int irq)
+static void cp_intc_mask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	/* XXX don't know why we need to disable nIRQ here... */
 	cp_intc_write(1, CP_INTC_HOST_ENABLE_IDX_CLR);
 	cp_intc_write(irq, CP_INTC_SYS_ENABLE_IDX_CLR);
@@ -42,13 +44,15 @@ static void cp_intc_mask_irq(unsigned in
 }
 
 /* Enable interrupt */
-static void cp_intc_unmask_irq(unsigned int irq)
+static void cp_intc_unmask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	cp_intc_write(irq, CP_INTC_SYS_ENABLE_IDX_SET);
 }
 
-static int cp_intc_set_irq_type(unsigned int irq, unsigned int flow_type)
+static int cp_intc_set_irq_type(struct irq_desc *desc, unsigned int flow_type)
 {
+	unsigned int irq = desc->irq;
 	unsigned reg		= BIT_WORD(irq);
 	unsigned mask		= BIT_MASK(irq);
 	unsigned polarity	= cp_intc_read(CP_INTC_SYS_POLARITY(reg));
@@ -86,7 +90,7 @@ static int cp_intc_set_irq_type(unsigned
  * generic drivers which call {enable|disable}_irq_wake for
  * wake up interrupt sources (eg RTC on DA850).
  */
-static int cp_intc_set_wake(unsigned int irq, unsigned int on)
+static int cp_intc_set_wake(struct irq_desc *desc, unsigned int on)
 {
 	return 0;
 }
arch/arm/mach-davinci/gpio.c +16 -16
Index: linux-2.6/arch/arm/mach-davinci/gpio.c
===================================================================
@@ -159,20 +159,20 @@ pure_initcall(davinci_gpio_setup);
  * serve as EDMA event triggers.
  */
 
-static void gpio_irq_disable(unsigned irq)
+static void gpio_irq_disable(struct irq_desc *desc)
 {
-	struct gpio_controller *__iomem g = get_irq_chip_data(irq);
-	u32 mask = (u32) get_irq_data(irq);
+	struct gpio_controller *__iomem g = get_irq_desc_chip_data(desc);
+	u32 mask = (u32) get_irq_desc_data(desc);
 
 	__raw_writel(mask, &g->clr_falling);
 	__raw_writel(mask, &g->clr_rising);
 }
 
-static void gpio_irq_enable(unsigned irq)
+static void gpio_irq_enable(struct irq_desc *desc)
 {
-	struct gpio_controller *__iomem g = get_irq_chip_data(irq);
-	u32 mask = (u32) get_irq_data(irq);
-	unsigned status = irq_desc[irq].status;
+	struct gpio_controller *__iomem g = get_irq_desc_chip_data(desc);
+	u32 mask = (u32) get_irq_desc_data(desc);
+	unsigned status = desc->status;
 
 	status &= IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING;
 	if (!status)
@@ -184,19 +184,19 @@ static void gpio_irq_enable(unsigned irq
 		__raw_writel(mask, &g->set_rising);
 }
 
-static int gpio_irq_type(unsigned irq, unsigned trigger)
+static int gpio_irq_type(struct irq_desc *desc, unsigned trigger)
 {
-	struct gpio_controller *__iomem g = get_irq_chip_data(irq);
-	u32 mask = (u32) get_irq_data(irq);
+	struct gpio_controller *__iomem g = get_irq_desc_chip_data(desc);
+	u32 mask = (u32) get_irq_desc_data(desc);
 
 	if (trigger & ~(IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING))
 		return -EINVAL;
 
-	irq_desc[irq].status &= ~IRQ_TYPE_SENSE_MASK;
-	irq_desc[irq].status |= trigger;
+	desc->status &= ~IRQ_TYPE_SENSE_MASK;
+	desc->status |= trigger;
 
 	/* don't enable the IRQ if it's currently disabled */
-	if (irq_desc[irq].depth == 0) {
+	if (desc->depth == 0) {
 		__raw_writel(mask, (trigger & IRQ_TYPE_EDGE_FALLING)
 			     ? &g->set_falling : &g->clr_falling);
 		__raw_writel(mask, (trigger & IRQ_TYPE_EDGE_RISING)
@@ -223,8 +223,8 @@ gpio_irq_handler(unsigned irq, struct ir
 		mask <<= 16;
 
 	/* temporarily mask (level sensitive) parent IRQ */
-	desc->chip->mask(irq);
-	desc->chip->ack(irq);
+	desc->chip->mask(desc);
+	desc->chip->ack(desc);
 	while (1) {
 		u32		status;
 		int		n;
@@ -247,7 +247,7 @@ gpio_irq_handler(unsigned irq, struct ir
 			status >>= res;
 		}
 	}
-	desc->chip->unmask(irq);
+	desc->chip->unmask(desc);
 	/* now it may re-trigger */
 }
 
arch/arm/mach-davinci/irq.c +6 -3
Index: linux-2.6/arch/arm/mach-davinci/irq.c
===================================================================
@@ -53,8 +53,9 @@ static inline void davinci_irq_writel(un
 }
 
 /* Disable interrupt */
-static void davinci_mask_irq(unsigned int irq)
+static void davinci_mask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int mask;
 	u32 l;
 
@@ -72,8 +73,9 @@ static void davinci_mask_irq(unsigned in
 }
 
 /* Enable interrupt */
-static void davinci_unmask_irq(unsigned int irq)
+static void davinci_unmask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int mask;
 	u32 l;
 
@@ -91,8 +93,9 @@ static void davinci_unmask_irq(unsigned
 }
 
 /* EOI interrupt */
-static void davinci_ack_irq(unsigned int irq)
+static void davinci_ack_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int mask;
 
 	mask = 1 << IRQ_BIT(irq);
arch/arm/mach-dove/irq.c +6 -3
Index: linux-2.6/arch/arm/mach-dove/irq.c
===================================================================
@@ -36,8 +36,9 @@ static void gpio_irq_handler(unsigned in
 	}
 }
 
-static void pmu_irq_mask(unsigned int irq)
+static void pmu_irq_mask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	int pin = irq_to_pmu(irq);
 	u32 u;
 
@@ -46,8 +47,9 @@ static void pmu_irq_mask(unsigned int ir
 	writel(u, PMU_INTERRUPT_MASK);
 }
 
-static void pmu_irq_unmask(unsigned int irq)
+static void pmu_irq_unmask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	int pin = irq_to_pmu(irq);
 	u32 u;
 
@@ -56,8 +58,9 @@ static void pmu_irq_unmask(unsigned int
 	writel(u, PMU_INTERRUPT_MASK);
 }
 
-static void pmu_irq_ack(unsigned int irq)
+static void pmu_irq_ack(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	int pin = irq_to_pmu(irq);
 	u32 u;
 
arch/arm/mach-ebsa110/core.c +4 -2
Index: linux-2.6/arch/arm/mach-ebsa110/core.c
===================================================================
@@ -35,13 +35,15 @@
 #define IRQ_STAT		0xff000000	/* read */
 #define IRQ_MCLR		0xff000000	/* write */
 
-static void ebsa110_mask_irq(unsigned int irq)
+static void ebsa110_mask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	__raw_writeb(1 << irq, IRQ_MCLR);
 }
 
-static void ebsa110_unmask_irq(unsigned int irq)
+static void ebsa110_unmask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	__raw_writeb(1 << irq, IRQ_MSET);
 }
 
arch/arm/mach-ep93xx/core.c +10 -6
Index: linux-2.6/arch/arm/mach-ep93xx/core.c
===================================================================
@@ -225,8 +225,9 @@ static void ep93xx_gpio_f_irq_handler(un
 	generic_handle_irq(gpio_irq);
 }
 
-static void ep93xx_gpio_irq_ack(unsigned int irq)
+static void ep93xx_gpio_irq_ack(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	int line = irq_to_gpio(irq);
 	int port = line >> 3;
 	int port_mask = 1 << (line & 7);
@@ -239,8 +240,9 @@ static void ep93xx_gpio_irq_ack(unsigned
 	__raw_writeb(port_mask, EP93XX_GPIO_REG(eoi_register_offset[port]));
 }
 
-static void ep93xx_gpio_irq_mask_ack(unsigned int irq)
+static void ep93xx_gpio_irq_mask_ack(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	int line = irq_to_gpio(irq);
 	int port = line >> 3;
 	int port_mask = 1 << (line & 7);
@@ -254,8 +256,9 @@ static void ep93xx_gpio_irq_mask_ack(uns
 	__raw_writeb(port_mask, EP93XX_GPIO_REG(eoi_register_offset[port]));
 }
 
-static void ep93xx_gpio_irq_mask(unsigned int irq)
+static void ep93xx_gpio_irq_mask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	int line = irq_to_gpio(irq);
 	int port = line >> 3;
 
@@ -263,8 +266,9 @@ static void ep93xx_gpio_irq_mask(unsigne
 	ep93xx_gpio_update_int_params(port);
 }
 
-static void ep93xx_gpio_irq_unmask(unsigned int irq)
+static void ep93xx_gpio_irq_unmask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	int line = irq_to_gpio(irq);
 	int port = line >> 3;
 
@@ -278,9 +282,9 @@ static void ep93xx_gpio_irq_unmask(unsig
  * edge (1) triggered, while gpio_int_type2 controls whether it
  * triggers on low/falling (0) or high/rising (1).
  */
-static int ep93xx_gpio_irq_type(unsigned int irq, unsigned int type)
+static int ep93xx_gpio_irq_type(struct irq_desc *desc, unsigned int type)
 {
-	struct irq_desc *desc = irq_desc + irq;
+	unsigned int irq = desc->irq;
 	const int gpio = irq_to_gpio(irq);
 	const int port = gpio >> 3;
 	const int port_mask = 1 << (gpio & 7);
arch/arm/mach-footbridge/common.c +4 -2
Index: linux-2.6/arch/arm/mach-footbridge/common.c
===================================================================
@@ -74,13 +74,15 @@ static const int fb_irq_mask[] = {
 	IRQ_MASK_PCI_PERR,	/* 19 */
 };
 
-static void fb_mask_irq(unsigned int irq)
+static void fb_mask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	*CSR_IRQ_DISABLE = fb_irq_mask[_DC21285_INR(irq)];
 }
 
-static void fb_unmask_irq(unsigned int irq)
+static void fb_unmask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	*CSR_IRQ_ENABLE = fb_irq_mask[_DC21285_INR(irq)];
 }
 
arch/arm/mach-footbridge/isa-irq.c +12 -6
Index: linux-2.6/arch/arm/mach-footbridge/isa-irq.c
===================================================================
@@ -30,23 +30,26 @@
 
 #include "common.h"
 
-static void isa_mask_pic_lo_irq(unsigned int irq)
+static void isa_mask_pic_lo_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int mask = 1 << (irq & 7);
 
 	outb(inb(PIC_MASK_LO) | mask, PIC_MASK_LO);
 }
 
-static void isa_ack_pic_lo_irq(unsigned int irq)
+static void isa_ack_pic_lo_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int mask = 1 << (irq & 7);
 
 	outb(inb(PIC_MASK_LO) | mask, PIC_MASK_LO);
 	outb(0x20, PIC_LO);
 }
 
-static void isa_unmask_pic_lo_irq(unsigned int irq)
+static void isa_unmask_pic_lo_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int mask = 1 << (irq & 7);
 
 	outb(inb(PIC_MASK_LO) & ~mask, PIC_MASK_LO);
@@ -58,15 +61,17 @@ static struct irq_chip isa_lo_chip = {
 	.unmask = isa_unmask_pic_lo_irq,
 };
 
-static void isa_mask_pic_hi_irq(unsigned int irq)
+static void isa_mask_pic_hi_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int mask = 1 << (irq & 7);
 
 	outb(inb(PIC_MASK_HI) | mask, PIC_MASK_HI);
 }
 
-static void isa_ack_pic_hi_irq(unsigned int irq)
+static void isa_ack_pic_hi_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int mask = 1 << (irq & 7);
 
 	outb(inb(PIC_MASK_HI) | mask, PIC_MASK_HI);
@@ -74,8 +79,9 @@ static void isa_ack_pic_hi_irq(unsigned
 	outb(0x20, PIC_HI);
 }
 
-static void isa_unmask_pic_hi_irq(unsigned int irq)
+static void isa_unmask_pic_hi_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int mask = 1 << (irq & 7);
 
 	outb(inb(PIC_MASK_HI) & ~mask, PIC_MASK_HI);
arch/arm/mach-gemini/gpio.c +8 -4
Index: linux-2.6/arch/arm/mach-gemini/gpio.c
===================================================================
@@ -54,24 +54,27 @@ static void _set_gpio_irqenable(unsigned
 	__raw_writel(reg, base + GPIO_INT_EN);
 }
 
-static void gpio_ack_irq(unsigned int irq)
+static void gpio_ack_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int gpio = irq_to_gpio(irq);
 	unsigned int base = GPIO_BASE(gpio / 32);
 
 	__raw_writel(1 << (gpio % 32), base + GPIO_INT_CLR);
 }
 
-static void gpio_mask_irq(unsigned int irq)
+static void gpio_mask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int gpio = irq_to_gpio(irq);
 	unsigned int base = GPIO_BASE(gpio / 32);
 
 	_set_gpio_irqenable(base, gpio % 32, 0);
 }
 
-static void gpio_unmask_irq(unsigned int irq)
+static void gpio_unmask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int gpio = irq_to_gpio(irq);
 	unsigned int base = GPIO_BASE(gpio / 32);
 
@@ -80,6 +83,7 @@ static void gpio_unmask_irq(unsigned int
 
 static int gpio_set_irq_type(unsigned int irq, unsigned int type)
 {
+	unsigned int irq = desc->irq;
 	unsigned int gpio = irq_to_gpio(irq);
 	unsigned int gpio_mask = 1 << (gpio % 32);
 	unsigned int base = GPIO_BASE(gpio / 32);
@@ -120,7 +124,7 @@ static int gpio_set_irq_type(unsigned in
 	__raw_writel(reg_level, base + GPIO_INT_LEVEL);
 	__raw_writel(reg_both, base + GPIO_INT_BOTH_EDGE);
 
-	gpio_ack_irq(irq);
+	gpio_ack_irq(desc);
 
 	return 0;
 }
arch/arm/mach-gemini/irq.c +6 -3
Index: linux-2.6/arch/arm/mach-gemini/irq.c
===================================================================
@@ -32,13 +32,15 @@
 #define FIQ_LEVEL(base_addr)	(base_addr + 0x30)
 #define FIQ_STATUS(base_addr)	(base_addr + 0x34)
 
-static void gemini_ack_irq(unsigned int irq)
+static void gemini_ack_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	__raw_writel(1 << irq, IRQ_CLEAR(IO_ADDRESS(GEMINI_INTERRUPT_BASE)));
 }
 
-static void gemini_mask_irq(unsigned int irq)
+static void gemini_mask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int mask;
 
 	mask = __raw_readl(IRQ_MASK(IO_ADDRESS(GEMINI_INTERRUPT_BASE)));
@@ -46,8 +48,9 @@ static void gemini_mask_irq(unsigned int
 	__raw_writel(mask, IRQ_MASK(IO_ADDRESS(GEMINI_INTERRUPT_BASE)));
 }
 
-static void gemini_unmask_irq(unsigned int irq)
+static void gemini_unmask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int mask;
 
 	mask = __raw_readl(IRQ_MASK(IO_ADDRESS(GEMINI_INTERRUPT_BASE)));
arch/arm/mach-h720x/common.c +10 -5
Index: linux-2.6/arch/arm/mach-h720x/common.c
===================================================================
@@ -53,16 +53,18 @@ unsigned long h720x_gettimeoffset(void)
 /*
  * mask Global irq's
  */
-static void mask_global_irq (unsigned int irq )
+static void mask_global_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	CPU_REG (IRQC_VIRT, IRQC_IER) &= ~(1 << irq);
 }
 
 /*
  * unmask Global irq's
  */
-static void unmask_global_irq (unsigned int irq )
+static void unmask_global_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	CPU_REG (IRQC_VIRT, IRQC_IER) |= (1 << irq);
 }
 
@@ -71,8 +73,9 @@ static void unmask_global_irq (unsigned
  * ack GPIO irq's
  * Ack only for edge triggered int's valid
  */
-static void inline ack_gpio_irq(u32 irq)
+static inline void ack_gpio_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	u32 reg_base = GPIO_VIRT(IRQ_TO_REGNO(irq));
 	u32 bit = IRQ_TO_BIT(irq);
 	if ( (CPU_REG (reg_base, GPIO_EDGE) & bit))
@@ -82,8 +85,9 @@ static void inline ack_gpio_irq(u32 irq)
 /*
  * mask GPIO irq's
  */
-static void inline mask_gpio_irq(u32 irq)
+static inline void mask_gpio_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	u32 reg_base = GPIO_VIRT(IRQ_TO_REGNO(irq));
 	u32 bit = IRQ_TO_BIT(irq);
 	CPU_REG (reg_base, GPIO_MASK) &= ~bit;
@@ -92,8 +96,9 @@ static void inline mask_gpio_irq(u32 irq
 /*
  * unmask GPIO irq's
  */
-static void inline unmask_gpio_irq(u32 irq)
+static inline void unmask_gpio_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	u32 reg_base = GPIO_VIRT(IRQ_TO_REGNO(irq));
 	u32 bit = IRQ_TO_BIT(irq);
 	CPU_REG (reg_base, GPIO_MASK) |= bit;
arch/arm/mach-h720x/cpu-h7202.c +4 -2
Index: linux-2.6/arch/arm/mach-h720x/cpu-h7202.c
===================================================================
@@ -141,8 +141,9 @@ h7202_timer_interrupt(int irq, void *dev
 /*
  * mask multiplexed timer IRQs
  */
-static void inline mask_timerx_irq (u32 irq)
+static inline void mask_timerx_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int bit;
 	bit = 2 << ((irq == IRQ_TIMER64B) ? 4 : (irq - IRQ_TIMER1));
 	CPU_REG (TIMER_VIRT, TIMER_TOPCTRL) &= ~bit;
@@ -151,8 +152,9 @@ static void inline mask_timerx_irq (u32
 /*
  * unmask multiplexed timer IRQs
  */
-static void inline unmask_timerx_irq (u32 irq)
+static inline void unmask_timerx_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int bit;
 	bit = 2 << ((irq == IRQ_TIMER64B) ? 4 : (irq - IRQ_TIMER1));
 	CPU_REG (TIMER_VIRT, TIMER_TOPCTRL) |= bit;
arch/arm/mach-integrator/integrator_ap.c +4 -2
Index: linux-2.6/arch/arm/mach-integrator/integrator_ap.c
===================================================================
@@ -151,13 +151,15 @@ static void __init ap_map_io(void)
 
 #define INTEGRATOR_SC_VALID_INT	0x003fffff
 
-static void sc_mask_irq(unsigned int irq)
+static void sc_mask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	writel(1 << irq, VA_IC_BASE + IRQ_ENABLE_CLEAR);
 }
 
-static void sc_unmask_irq(unsigned int irq)
+static void sc_unmask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	writel(1 << irq, VA_IC_BASE + IRQ_ENABLE_SET);
 }
 
arch/arm/mach-integrator/integrator_cp.c +12 -6
Index: linux-2.6/arch/arm/mach-integrator/integrator_cp.c
===================================================================
@@ -145,14 +145,16 @@ static void __init intcp_map_io(void)
 #define sic_writel	__raw_writel
 #define sic_readl	__raw_readl
 
-static void cic_mask_irq(unsigned int irq)
+static void cic_mask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	irq -= IRQ_CIC_START;
 	cic_writel(1 << irq, INTCP_VA_CIC_BASE + IRQ_ENABLE_CLEAR);
 }
 
-static void cic_unmask_irq(unsigned int irq)
+static void cic_unmask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	irq -= IRQ_CIC_START;
 	cic_writel(1 << irq, INTCP_VA_CIC_BASE + IRQ_ENABLE_SET);
 }
@@ -164,14 +166,16 @@ static struct irq_chip cic_chip = {
 	.unmask	= cic_unmask_irq,
 };
 
-static void pic_mask_irq(unsigned int irq)
+static void pic_mask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	irq -= IRQ_PIC_START;
 	pic_writel(1 << irq, INTCP_VA_PIC_BASE + IRQ_ENABLE_CLEAR);
 }
 
-static void pic_unmask_irq(unsigned int irq)
+static void pic_unmask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	irq -= IRQ_PIC_START;
 	pic_writel(1 << irq, INTCP_VA_PIC_BASE + IRQ_ENABLE_SET);
 }
@@ -183,14 +187,16 @@ static struct irq_chip pic_chip = {
 	.unmask = pic_unmask_irq,
 };
 
-static void sic_mask_irq(unsigned int irq)
+static void sic_mask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	irq -= IRQ_SIC_START;
 	sic_writel(1 << irq, INTCP_VA_SIC_BASE + IRQ_ENABLE_CLEAR);
 }
 
-static void sic_unmask_irq(unsigned int irq)
+static void sic_unmask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	irq -= IRQ_SIC_START;
 	sic_writel(1 << irq, INTCP_VA_SIC_BASE + IRQ_ENABLE_SET);
 }
arch/arm/mach-iop13xx/irq.c +16 -8
Index: linux-2.6/arch/arm/mach-iop13xx/irq.c
===================================================================
@@ -123,50 +123,58 @@ static void write_intsize(u32 val)
 
 /* 0 = Interrupt Masked and 1 = Interrupt not masked */
 static void
-iop13xx_irq_mask0 (unsigned int irq)
+iop13xx_irq_mask0(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	write_intctl_0(read_intctl_0() & ~(1 << (irq - 0)));
 }
 
 static void
-iop13xx_irq_mask1 (unsigned int irq)
+iop13xx_irq_mask1(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	write_intctl_1(read_intctl_1() & ~(1 << (irq - 32)));
 }
 
 static void
-iop13xx_irq_mask2 (unsigned int irq)
+iop13xx_irq_mask2(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	write_intctl_2(read_intctl_2() & ~(1 << (irq - 64)));
 }
 
 static void
-iop13xx_irq_mask3 (unsigned int irq)
+iop13xx_irq_mask3(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	write_intctl_3(read_intctl_3() & ~(1 << (irq - 96)));
 }
 
 static void
[… more lines in the raw message]

Lines of this file are not shown. View the raw message.

arch/arm/mach-iop13xx/msi.c +1 -1
Index: linux-2.6/arch/arm/mach-iop13xx/msi.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-iop32x/irq.c +4 -2
Index: linux-2.6/arch/arm/mach-iop32x/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-ixp2000/core.c +20 -10
Index: linux-2.6/arch/arm/mach-ixp2000/core.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-ixp2000/ixdp2x00.c +6 -4
Index: linux-2.6/arch/arm/mach-ixp2000/ixdp2x00.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-ixp2000/ixdp2x01.c +6 -4
Index: linux-2.6/arch/arm/mach-ixp2000/ixdp2x01.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-ixp23xx/core.c +15 -10
Index: linux-2.6/arch/arm/mach-ixp23xx/core.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-ixp23xx/ixdp2351.c +12 -8
Index: linux-2.6/arch/arm/mach-ixp23xx/ixdp2351.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-ixp4xx/common.c +9 -5
Index: linux-2.6/arch/arm/mach-ixp4xx/common.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-ks8695/irq.c +16 -12
Index: linux-2.6/arch/arm/mach-ks8695/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-l7200/core.c +4 -2
Index: linux-2.6/arch/arm/mach-l7200/core.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-lh7a40x/arch-kev7a400.c +6 -3
Index: linux-2.6/arch/arm/mach-lh7a40x/arch-kev7a400.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-lh7a40x/arch-lpd7a40x.c +8 -5
Index: linux-2.6/arch/arm/mach-lh7a40x/arch-lpd7a40x.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-lh7a40x/irq-lh7a400.c +6 -3
Index: linux-2.6/arch/arm/mach-lh7a40x/irq-lh7a400.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-lh7a40x/irq-lh7a404.c +12 -6
Index: linux-2.6/arch/arm/mach-lh7a40x/irq-lh7a404.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-lh7a40x/irq-lpd7a40x.c +7 -5
Index: linux-2.6/arch/arm/mach-lh7a40x/irq-lpd7a40x.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-mmp/irq.c +5 -3
Index: linux-2.6/arch/arm/mach-mmp/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-mx3/mx31ads.c +6 -3
Index: linux-2.6/arch/arm/mach-mx3/mx31ads.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-mx3/mx31pdk.c +6 -3
Index: linux-2.6/arch/arm/mach-mx3/mx31pdk.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-netx/generic.c +8 -4
Index: linux-2.6/arch/arm/mach-netx/generic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-nomadik/gpio.c +15 -11
Index: linux-2.6/arch/arm/mach-nomadik/gpio.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-ns9xxx/board-a9m9750dev.c +9 -6
Index: linux-2.6/arch/arm/mach-ns9xxx/board-a9m9750dev.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-ns9xxx/irq.c +9 -6
Index: linux-2.6/arch/arm/mach-ns9xxx/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-omap1/fpga.c +7 -6
Index: linux-2.6/arch/arm/mach-omap1/fpga.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-omap1/irq.c +14 -10
Index: linux-2.6/arch/arm/mach-omap1/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-pnx4008/irq.c +8 -4
Index: linux-2.6/arch/arm/mach-pnx4008/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-pxa/balloon3.c +5 -3
Index: linux-2.6/arch/arm/mach-pxa/balloon3.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-pxa/irq.c +12 -6
Index: linux-2.6/arch/arm/mach-pxa/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-pxa/lpd270.c +4 -2
Index: linux-2.6/arch/arm/mach-pxa/lpd270.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-pxa/lubbock.c +4 -2
Index: linux-2.6/arch/arm/mach-pxa/lubbock.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-pxa/mainstone.c +4 -2
Index: linux-2.6/arch/arm/mach-pxa/mainstone.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-pxa/pcm990-baseboard.c +4 -2
Index: linux-2.6/arch/arm/mach-pxa/pcm990-baseboard.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-pxa/pxa3xx.c +6 -3
Index: linux-2.6/arch/arm/mach-pxa/pxa3xx.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-pxa/viper.c +6 -3
Index: linux-2.6/arch/arm/mach-pxa/viper.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-pxa/zeus.c +7 -4
Index: linux-2.6/arch/arm/mach-pxa/zeus.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-rpc/irq.c +18 -9
Index: linux-2.6/arch/arm/mach-rpc/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-s3c2410/bast-irq.c +10 -10
Index: linux-2.6/arch/arm/mach-s3c2410/bast-irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-s3c2412/irq.c +21 -14
Index: linux-2.6/arch/arm/mach-s3c2412/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-s3c2440/irq.c +9 -6
Index: linux-2.6/arch/arm/mach-s3c2440/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-s3c2443/irq.c +43 -28

71 lines not on this page · raw message

arch/arm/mach-sa1100/irq.c +24 -12
Index: linux-2.6/arch/arm/mach-sa1100/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-sa1100/neponset.c +4 -4
Index: linux-2.6/arch/arm/mach-sa1100/neponset.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-shark/irq.c +7 -3
Index: linux-2.6/arch/arm/mach-shark/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-stmp378x/stmp378x.c +6 -3
Index: linux-2.6/arch/arm/mach-stmp378x/stmp378x.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-stmp37xx/stmp37xx.c +6 -3
Index: linux-2.6/arch/arm/mach-stmp37xx/stmp37xx.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-versatile/core.c +4 -2
Index: linux-2.6/arch/arm/mach-versatile/core.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-w90x900/irq.c +5 -3
Index: linux-2.6/arch/arm/mach-w90x900/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/oprofile/op_model_mpcore.c +2 -2
Index: linux-2.6/arch/arm/oprofile/op_model_mpcore.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-mxc/gpio.c +8 -4
Index: linux-2.6/arch/arm/plat-mxc/gpio.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-mxc/irq.c +4 -2
Index: linux-2.6/arch/arm/plat-mxc/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-omap/gpio.c +22 -14
Index: linux-2.6/arch/arm/plat-omap/gpio.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-orion/gpio.c +11 -10
Index: linux-2.6/arch/arm/plat-orion/gpio.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-orion/irq.c +6 -4
Index: linux-2.6/arch/arm/plat-orion/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-pxa/gpio.c +8 -4
Index: linux-2.6/arch/arm/plat-pxa/gpio.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-s3c24xx/irq.c +66 -46

112 lines not on this page · raw message

arch/arm/plat-s3c24xx/s3c244x-irq.c +9 -6
Index: linux-2.6/arch/arm/plat-s3c24xx/s3c244x-irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-s3c64xx/irq-eint.c +12 -7
Index: linux-2.6/arch/arm/plat-s3c64xx/irq-eint.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-s3c64xx/irq.c +14 -7
Index: linux-2.6/arch/arm/plat-s3c64xx/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-s5pc1xx/irq-eint.c +25 -17

42 lines not on this page · raw message

arch/arm/plat-s5pc1xx/irq-gpio.c +11 -7
Index: linux-2.6/arch/arm/plat-s5pc1xx/irq-gpio.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-s5pc1xx/irq.c +14 -7
Index: linux-2.6/arch/arm/plat-s5pc1xx/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-stmp3xxx/irq.c +1 -1
Index: linux-2.6/arch/arm/plat-stmp3xxx/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-stmp3xxx/pinmux.c +8 -4
Index: linux-2.6/arch/arm/plat-stmp3xxx/pinmux.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/avr32/mach-at32ap/extint.c +14 -12
Index: linux-2.6/arch/avr32/mach-at32ap/extint.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/avr32/mach-at32ap/pio.c +6 -3
Index: linux-2.6/arch/avr32/mach-at32ap/pio.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/blackfin/include/asm/ipipe.h +2 -2
Index: linux-2.6/arch/blackfin/include/asm/ipipe.h
===================================================================

Lines of this file are not shown. View the raw message.

arch/blackfin/mach-common/ints-priority.c +33 -20

53 lines not on this page · raw message

arch/blackfin/mach-common/smp.c +1 -1
Index: linux-2.6/arch/blackfin/mach-common/smp.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/cris/arch-v10/kernel/irq.c +9 -7
Index: linux-2.6/arch/cris/arch-v10/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/frv/kernel/irq-mb93091.c +8 -4
Index: linux-2.6/arch/frv/kernel/irq-mb93091.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/frv/kernel/irq-mb93093.c +8 -4
Index: linux-2.6/arch/frv/kernel/irq-mb93093.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/frv/kernel/irq-mb93493.c +5 -3
Index: linux-2.6/arch/frv/kernel/irq-mb93493.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/frv/kernel/irq.c +16 -11
Index: linux-2.6/arch/frv/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/h8300/kernel/irq.c +9 -5
Index: linux-2.6/arch/h8300/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/ia64/hp/sim/hpsim_irq.c +3 -3
Index: linux-2.6/arch/ia64/hp/sim/hpsim_irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/ia64/kernel/iosapic.c +26 -19

45 lines not on this page · raw message

arch/ia64/kernel/irq.c +3 -3
Index: linux-2.6/arch/ia64/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/ia64/kernel/irq_lsapic.c +5 -3
Index: linux-2.6/arch/ia64/kernel/irq_lsapic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/ia64/kernel/msi_ia64.c +11 -7
Index: linux-2.6/arch/ia64/kernel/msi_ia64.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/ia64/kernel/smpboot.c +3 -3
Index: linux-2.6/arch/ia64/kernel/smpboot.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/ia64/sn/kernel/irq.c +15 -10
Index: linux-2.6/arch/ia64/sn/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/ia64/sn/kernel/msi_sn.c +6 -4
Index: linux-2.6/arch/ia64/sn/kernel/msi_sn.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m32r/platforms/m32104ut/setup.c +11 -8
Index: linux-2.6/arch/m32r/platforms/m32104ut/setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m32r/platforms/m32700ut/setup.c +52 -40

92 lines not on this page · raw message

arch/m32r/platforms/mappi/setup.c +12 -9
Index: linux-2.6/arch/m32r/platforms/mappi/setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m32r/platforms/mappi2/setup.c +12 -9
Index: linux-2.6/arch/m32r/platforms/mappi2/setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m32r/platforms/mappi3/setup.c +12 -9
Index: linux-2.6/arch/m32r/platforms/mappi3/setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m32r/platforms/oaks32r/setup.c +12 -9
Index: linux-2.6/arch/m32r/platforms/oaks32r/setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m32r/platforms/opsput/setup.c +50 -38

88 lines not on this page · raw message

arch/m32r/platforms/usrv/setup.c +24 -18

42 lines not on this page · raw message

arch/m68knommu/platform/5249/intc2.c +6 -3
Index: linux-2.6/arch/m68knommu/platform/5249/intc2.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m68knommu/platform/5272/intc.c +7 -4
Index: linux-2.6/arch/m68knommu/platform/5272/intc.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m68knommu/platform/68328/ints.c +4 -2
Index: linux-2.6/arch/m68knommu/platform/68328/ints.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m68knommu/platform/68360/ints.c +6 -3
Index: linux-2.6/arch/m68knommu/platform/68360/ints.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m68knommu/platform/coldfire/intc-2.c +4 -2
Index: linux-2.6/arch/m68knommu/platform/coldfire/intc-2.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m68knommu/platform/coldfire/intc-simr.c +5 -2
Index: linux-2.6/arch/m68knommu/platform/coldfire/intc-simr.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m68knommu/platform/coldfire/intc.c +5 -3
Index: linux-2.6/arch/m68knommu/platform/coldfire/intc.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/microblaze/kernel/intc.c +10 -5
Index: linux-2.6/arch/microblaze/kernel/intc.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/alchemy/common/irq.c +26 -17

43 lines not on this page · raw message

arch/mips/alchemy/devboards/pb1200/irqmap.c +13 -10
Index: linux-2.6/arch/mips/alchemy/devboards/pb1200/irqmap.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/ar7/irq.c +12 -6
Index: linux-2.6/arch/mips/ar7/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/bcm63xx/irq.c +27 -15

42 lines not on this page · raw message

arch/mips/cavium-octeon/octeon-irq.c +44 -26

70 lines not on this page · raw message

arch/mips/dec/ioasic-irq.c +12 -9
Index: linux-2.6/arch/mips/dec/ioasic-irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/dec/kn02-irq.c +6 -4
Index: linux-2.6/arch/mips/dec/kn02-irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/emma/markeins/irq.c +12 -8
Index: linux-2.6/arch/mips/emma/markeins/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/jazz/irq.c +4 -2
Index: linux-2.6/arch/mips/jazz/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/kernel/i8259.c +9 -6
Index: linux-2.6/arch/mips/kernel/i8259.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/kernel/irq-gic.c +11 -6
Index: linux-2.6/arch/mips/kernel/irq-gic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/kernel/irq-gt641xx.c +7 -4
Index: linux-2.6/arch/mips/kernel/irq-gt641xx.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/kernel/irq-msc01.c +13 -9
Index: linux-2.6/arch/mips/kernel/irq-msc01.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/kernel/irq-rm7000.c +4 -2
Index: linux-2.6/arch/mips/kernel/irq-rm7000.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/kernel/irq-rm9000.c +13 -11
Index: linux-2.6/arch/mips/kernel/irq-rm9000.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/kernel/irq_cpu.c +9 -5
Index: linux-2.6/arch/mips/kernel/irq_cpu.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/kernel/irq_txx9.c +9 -5
Index: linux-2.6/arch/mips/kernel/irq_txx9.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/lasat/interrupt.c +8 -6
Index: linux-2.6/arch/mips/lasat/interrupt.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/loongson/common/bonito-irq.c +4 -2
Index: linux-2.6/arch/mips/loongson/common/bonito-irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/nxp/pnx833x/common/interrupts.c +21 -12
Index: linux-2.6/arch/mips/nxp/pnx833x/common/interrupts.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/nxp/pnx8550/common/int.c +6 -4
Index: linux-2.6/arch/mips/nxp/pnx8550/common/int.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/pmc-sierra/msp71xx/msp_irq_cic.c +6 -4
Index: linux-2.6/arch/mips/pmc-sierra/msp71xx/msp_irq_cic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/pmc-sierra/msp71xx/msp_irq_slp.c +6 -3
Index: linux-2.6/arch/mips/pmc-sierra/msp71xx/msp_irq_slp.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/powertv/asic/irq_asic.c +4 -2
Index: linux-2.6/arch/mips/powertv/asic/irq_asic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/rb532/irq.c +18 -14
Index: linux-2.6/arch/mips/rb532/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/sgi-ip22/ip22-int.c +16 -8
Index: linux-2.6/arch/mips/sgi-ip22/ip22-int.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/sgi-ip27/ip27-irq.c +8 -4
Index: linux-2.6/arch/mips/sgi-ip27/ip27-irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/sgi-ip27/ip27-timer.c +2 -2
Index: linux-2.6/arch/mips/sgi-ip27/ip27-timer.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/sgi-ip32/ip32-irq.c +39 -29

68 lines not on this page · raw message

arch/mips/sibyte/bcm1480/irq.c +16 -12
Index: linux-2.6/arch/mips/sibyte/bcm1480/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/sibyte/sb1250/irq.c +16 -12
Index: linux-2.6/arch/mips/sibyte/sb1250/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/sni/a20r.c +7 -5
Index: linux-2.6/arch/mips/sni/a20r.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/sni/pcimt.c +8 -6
Index: linux-2.6/arch/mips/sni/pcimt.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/sni/pcit.c +7 -5
Index: linux-2.6/arch/mips/sni/pcit.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/sni/rm200.c +13 -8
Index: linux-2.6/arch/mips/sni/rm200.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/txx9/generic/irq_tx4939.c +9 -5
Index: linux-2.6/arch/mips/txx9/generic/irq_tx4939.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/txx9/jmr3927/irq.c +4 -2
Index: linux-2.6/arch/mips/txx9/jmr3927/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/txx9/rbtx4927/irq.c +6 -4
Index: linux-2.6/arch/mips/txx9/rbtx4927/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/txx9/rbtx4938/irq.c +6 -4
Index: linux-2.6/arch/mips/txx9/rbtx4938/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/txx9/rbtx4939/irq.c +4 -2
Index: linux-2.6/arch/mips/txx9/rbtx4939/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/vr41xx/common/icu.c +8 -4
Index: linux-2.6/arch/mips/vr41xx/common/icu.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/vr41xx/common/irq.c +4 -4
Index: linux-2.6/arch/mips/vr41xx/common/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mn10300/kernel/irq.c +14 -5
Index: linux-2.6/arch/mn10300/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mn10300/kernel/mn10300-serial.c +3 -2
Index: linux-2.6/arch/mn10300/kernel/mn10300-serial.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/parisc/include/asm/irq.h +2 -2
Index: linux-2.6/arch/parisc/include/asm/irq.h
===================================================================

Lines of this file are not shown. View the raw message.

arch/parisc/kernel/irq.c +18 -13
Index: linux-2.6/arch/parisc/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/include/asm/mpic.h +3 -3
Index: linux-2.6/arch/powerpc/include/asm/mpic.h
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/include/asm/qe_ic.h +3 -3
Index: linux-2.6/arch/powerpc/include/asm/qe_ic.h
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/kernel/crash.c +2 -2
Index: linux-2.6/arch/powerpc/kernel/crash.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/kernel/irq.c +1 -1
Index: linux-2.6/arch/powerpc/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/512x/mpc5121_ads_cpld.c +4 -2
Index: linux-2.6/arch/powerpc/platforms/512x/mpc5121_ads_cpld.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/52xx/media5200.c +9 -7
Index: linux-2.6/arch/powerpc/platforms/52xx/media5200.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/52xx/mpc52xx_pic.c +23 -12
Index: linux-2.6/arch/powerpc/platforms/52xx/mpc52xx_pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/82xx/pq2ads-pci-pic.c +4 -2
Index: linux-2.6/arch/powerpc/platforms/82xx/pq2ads-pci-pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/85xx/ksi8560.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/85xx/ksi8560.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/85xx/mpc85xx_ads.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/85xx/mpc85xx_ads.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/85xx/mpc85xx_ds.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/85xx/mpc85xx_ds.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/85xx/sbc8560.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/85xx/sbc8560.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/85xx/socrates_fpga_pic.c +13 -7
Index: linux-2.6/arch/powerpc/platforms/85xx/socrates_fpga_pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/85xx/stx_gp3.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/85xx/stx_gp3.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/85xx/tqm85xx.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/85xx/tqm85xx.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/86xx/gef_pic.c +7 -4
Index: linux-2.6/arch/powerpc/platforms/86xx/gef_pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/86xx/pic.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/86xx/pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/8xx/m8xx_setup.c +2 -2
Index: linux-2.6/arch/powerpc/platforms/8xx/m8xx_setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/cell/axon_msi.c +7 -2
Index: linux-2.6/arch/powerpc/platforms/cell/axon_msi.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/cell/beat_interrupt.c +8 -4
Index: linux-2.6/arch/powerpc/platforms/cell/beat_interrupt.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/cell/interrupt.c +6 -6
Index: linux-2.6/arch/powerpc/platforms/cell/interrupt.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/cell/setup.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/cell/setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/cell/spider-pic.c +9 -6
Index: linux-2.6/arch/powerpc/platforms/cell/spider-pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/chrp/setup.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/chrp/setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/embedded6xx/flipper-pic.c +8 -4
Index: linux-2.6/arch/powerpc/platforms/embedded6xx/flipper-pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/embedded6xx/hlwd-pic.c +15 -11
Index: linux-2.6/arch/powerpc/platforms/embedded6xx/hlwd-pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/iseries/irq.c +12 -7
Index: linux-2.6/arch/powerpc/platforms/iseries/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/powermac/pic.c +13 -7
Index: linux-2.6/arch/powerpc/platforms/powermac/pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/ps3/interrupt.c +9 -6
Index: linux-2.6/arch/powerpc/platforms/ps3/interrupt.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/pseries/setup.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/pseries/setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/pseries/xics.c +17 -11
Index: linux-2.6/arch/powerpc/platforms/pseries/xics.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/cpm1.c +6 -3
Index: linux-2.6/arch/powerpc/sysdev/cpm1.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/cpm2_pic.c +10 -8
Index: linux-2.6/arch/powerpc/sysdev/cpm2_pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/fsl_msi.c +6 -6
Index: linux-2.6/arch/powerpc/sysdev/fsl_msi.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/i8259.c +19 -16
Index: linux-2.6/arch/powerpc/sysdev/i8259.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/ipic.c +10 -5
Index: linux-2.6/arch/powerpc/sysdev/ipic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/mpc8xx_pic.c +10 -6
Index: linux-2.6/arch/powerpc/sysdev/mpc8xx_pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/mpic.c +23 -12
Index: linux-2.6/arch/powerpc/sysdev/mpic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/mpic.h +2 -2
Index: linux-2.6/arch/powerpc/sysdev/mpic.h
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/mpic_pasemi_msi.c +8 -6
Index: linux-2.6/arch/powerpc/sysdev/mpic_pasemi_msi.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/mpic_u3msi.c +12 -7
Index: linux-2.6/arch/powerpc/sysdev/mpic_u3msi.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/mv64x60_pic.c +14 -7
Index: linux-2.6/arch/powerpc/sysdev/mv64x60_pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/qe_lib/qe_ic.c +4 -2
Index: linux-2.6/arch/powerpc/sysdev/qe_lib/qe_ic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/tsi108_pci.c +9 -5
Index: linux-2.6/arch/powerpc/sysdev/tsi108_pci.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/uic.c +19 -17
Index: linux-2.6/arch/powerpc/sysdev/uic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/xilinx_intc.c +15 -11
Index: linux-2.6/arch/powerpc/sysdev/xilinx_intc.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/score/kernel/irq.c +6 -4
Index: linux-2.6/arch/score/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/boards/mach-cayman/irq.c +6 -4
Index: linux-2.6/arch/sh/boards/mach-cayman/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/boards/mach-dreamcast/irq.c +6 -3
Index: linux-2.6/arch/sh/boards/mach-dreamcast/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/boards/mach-landisk/irq.c +4 -2
Index: linux-2.6/arch/sh/boards/mach-landisk/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/boards/mach-microdev/irq.c +11 -8
Index: linux-2.6/arch/sh/boards/mach-microdev/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/boards/mach-se/7206/irq.c +6 -3
Index: linux-2.6/arch/sh/boards/mach-se/7206/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/boards/mach-se/7343/irq.c +4 -2
Index: linux-2.6/arch/sh/boards/mach-se/7343/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/boards/mach-se/7722/irq.c +4 -4
Index: linux-2.6/arch/sh/boards/mach-se/7722/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/boards/mach-se/7724/irq.c +4 -2
Index: linux-2.6/arch/sh/boards/mach-se/7724/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/boards/mach-systemh/irq.c +9 -7
Index: linux-2.6/arch/sh/boards/mach-systemh/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/cchips/hd6446x/hd64461.c +7 -4
Index: linux-2.6/arch/sh/cchips/hd6446x/hd64461.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/kernel/cpu/irq/imask.c +4 -2
Index: linux-2.6/arch/sh/kernel/cpu/irq/imask.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/kernel/cpu/irq/intc-sh5.c +18 -16
Index: linux-2.6/arch/sh/kernel/cpu/irq/intc-sh5.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sparc/kernel/irq_64.c +36 -26

62 lines not on this page · raw message

arch/sparc/kernel/pci_msi.c +11 -2
Index: linux-2.6/arch/sparc/kernel/pci_msi.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/um/kernel/irq.c +1 -1
Index: linux-2.6/arch/um/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/include/asm/hardirq.h +1 -1
Index: linux-2.6/arch/x86/include/asm/hardirq.h
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/include/asm/hpet.h +4 -4
Index: linux-2.6/arch/x86/include/asm/hpet.h
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/include/asm/hw_irq.h +3 -3
Index: linux-2.6/arch/x86/include/asm/hw_irq.h
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/include/asm/i8259.h +3 -3
Index: linux-2.6/arch/x86/include/asm/i8259.h
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/kernel/apic/io_apic.c +53 -72

125 lines not on this page · raw message

arch/x86/kernel/hpet.c +8 -8
Index: linux-2.6/arch/x86/kernel/hpet.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/kernel/i8259.c +9 -5
Index: linux-2.6/arch/x86/kernel/i8259.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/kernel/irq.c +6 -6
Index: linux-2.6/arch/x86/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/kernel/uv_irq.c +6 -6
Index: linux-2.6/arch/x86/kernel/uv_irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/kernel/visws_quirks.c +14 -15
Index: linux-2.6/arch/x86/kernel/visws_quirks.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/kernel/vmiclock_32.c +4 -4
Index: linux-2.6/arch/x86/kernel/vmiclock_32.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/lguest/boot.c +4 -4
Index: linux-2.6/arch/x86/lguest/boot.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/xtensa/kernel/irq.c +14 -8
Index: linux-2.6/arch/xtensa/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/xtensa/variants/s6000/gpio.c +11 -7
Index: linux-2.6/arch/xtensa/variants/s6000/gpio.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/dma/ipu/ipu_irq.c +9 -9
Index: linux-2.6/drivers/dma/ipu/ipu_irq.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/gpio/langwell_gpio.c +6 -5
Index: linux-2.6/drivers/gpio/langwell_gpio.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/gpio/pl061.c +11 -8
Index: linux-2.6/drivers/gpio/pl061.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/gpio/timbgpio.c +10 -7
Index: linux-2.6/drivers/gpio/timbgpio.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/gpio/vr41xx_giu.c +16 -16
Index: linux-2.6/drivers/gpio/vr41xx_giu.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/mfd/asic3.c +16 -11
Index: linux-2.6/drivers/mfd/asic3.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/mfd/ezx-pcap.c +7 -5
Index: linux-2.6/drivers/mfd/ezx-pcap.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/mfd/htc-egpio.c +7 -5
Index: linux-2.6/drivers/mfd/htc-egpio.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/mfd/t7l66xb.c +5 -3
Index: linux-2.6/drivers/mfd/t7l66xb.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/mfd/tc6393xb.c +9 -6
Index: linux-2.6/drivers/mfd/tc6393xb.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/mfd/twl4030-irq.c +9 -7
Index: linux-2.6/drivers/mfd/twl4030-irq.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/mfd/wm831x-irq.c +10 -8
Index: linux-2.6/drivers/mfd/wm831x-irq.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/misc/sgi-gru/grufile.c +1 -1
Index: linux-2.6/drivers/misc/sgi-gru/grufile.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/parisc/dino.c +6 -6
Index: linux-2.6/drivers/parisc/dino.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/parisc/eisa.c +6 -4
Index: linux-2.6/drivers/parisc/eisa.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/parisc/gsc.c +6 -6
Index: linux-2.6/drivers/parisc/gsc.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/parisc/iosapic.c +10 -6
Index: linux-2.6/drivers/parisc/iosapic.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/parisc/superio.c +6 -4
Index: linux-2.6/drivers/parisc/superio.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/pci/dmar.c +8 -8
Index: linux-2.6/drivers/pci/dmar.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/pci/htirq.c +11 -11
Index: linux-2.6/drivers/pci/htirq.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/pci/msi.c +7 -6
Index: linux-2.6/drivers/pci/msi.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/vlynq/vlynq.c +13 -10
Index: linux-2.6/drivers/vlynq/vlynq.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/xen/events.c +25 -13
Index: linux-2.6/drivers/xen/events.c
===================================================================

Lines of this file are not shown. View the raw message.

include/linux/dmar.h +4 -4
Index: linux-2.6/include/linux/dmar.h
===================================================================

Lines of this file are not shown. View the raw message.

include/linux/htirq.h +6 -5
Index: linux-2.6/include/linux/htirq.h
===================================================================

Lines of this file are not shown. View the raw message.

include/linux/irq.h +24 -23

47 lines not on this page · raw message

include/linux/msi.h +2 -2
Index: linux-2.6/include/linux/msi.h
===================================================================

Lines of this file are not shown. View the raw message.

kernel/irq/autoprobe.c +6 -6
Index: linux-2.6/kernel/irq/autoprobe.c
===================================================================

Lines of this file are not shown. View the raw message.

kernel/irq/chip.c +27 -33

60 lines not on this page · raw message

kernel/irq/handle.c +11 -13
Index: linux-2.6/kernel/irq/handle.c
===================================================================

Lines of this file are not shown. View the raw message.

kernel/irq/internals.h +8 -8
Index: linux-2.6/kernel/irq/internals.h
===================================================================

Lines of this file are not shown. View the raw message.

kernel/irq/manage.c +32 -33

65 lines not on this page · raw message

kernel/irq/migration.c +6 -10
Index: linux-2.6/kernel/irq/migration.c
===================================================================

Lines of this file are not shown. View the raw message.

kernel/irq/pm.c +2 -2
Index: linux-2.6/kernel/irq/pm.c
===================================================================

Lines of this file are not shown. View the raw message.

kernel/irq/resend.c +4 -4
Index: linux-2.6/kernel/irq/resend.c
===================================================================

Lines of this file are not shown. View the raw message.

kernel/irq/spurious.c +2 -2
Index: linux-2.6/kernel/irq/spurious.c
===================================================================

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Parts of this message are not shown here. View the raw message.

author
#30 lore raw

PATCH 2/2 genericirq: change ack/mask in irq_chip to take irq_desc instead of irq

In reply to a message not in the archive

will have

void            (*ack)(struct irq_desc *desc);
void            (*mask)(struct irq_desc *desc);
void            (*mask_ack)(struct irq_desc *desc);
void            (*unmask)(struct irq_desc *desc);
void            (*eoi)(struct irq_desc *desc);

so for sparseirq with raidix tree, we don't call extra irq_to_desc, and could use desc directly

-v2: change all member of irq_chip to use desc only. -v3: update after legacy_pic

---
 Documentation/DocBook/genericirq.tmpl            |   24 ++--
 arch/alpha/kernel/irq.c                          |    7 -
 arch/alpha/kernel/irq_alpha.c                    |    4 
 arch/alpha/kernel/irq_i8259.c                    |   22 ++--
 arch/alpha/kernel/irq_pyxis.c                    |   21 ++-
 arch/alpha/kernel/irq_srm.c                      |   18 +--
 arch/alpha/kernel/sys_alcor.c                    |   28 ++---
 arch/alpha/kernel/sys_cabriolet.c                |   18 ++-
 arch/alpha/kernel/sys_dp264.c                    |   50 +++++----
 arch/alpha/kernel/sys_eb64p.c                    |   18 ++-
 arch/alpha/kernel/sys_eiger.c                    |   18 ++-
 arch/alpha/kernel/sys_jensen.c                   |   40 +++----
 arch/alpha/kernel/sys_marvel.c                   |   26 ++--
 arch/alpha/kernel/sys_mikasa.c                   |   18 +--
 arch/alpha/kernel/sys_noritake.c                 |   18 ++-
 arch/alpha/kernel/sys_rawhide.c                  |   19 ++-
 arch/alpha/kernel/sys_rx164.c                    |   18 +--
 arch/alpha/kernel/sys_sable.c                    |   26 ++--
 arch/alpha/kernel/sys_takara.c                   |   18 ++-
 arch/alpha/kernel/sys_titan.c                    |   22 ++--
 arch/alpha/kernel/sys_wildfire.c                 |   32 +++--
 arch/arm/common/gic.c                            |   20 ++-
 arch/arm/common/it8152.c                         |    8 +
 arch/arm/common/locomo.c                         |  103 ++++++++++++------
 arch/arm/common/sa1111.c                         |   56 ++++++----
 arch/arm/common/vic.c                            |   21 ++-
 arch/arm/kernel/ecard.c                          |   12 +-
 arch/arm/kernel/irq.c                            |    2 
 arch/arm/mach-aaec2000/core.c                    |    6 -
 arch/arm/mach-at91/gpio.c                        |   15 +-
 arch/arm/mach-at91/irq.c                         |   15 ++
 arch/arm/mach-bcmring/irq.c                      |   24 +++-
 arch/arm/mach-clps711x/irq.c                     |   18 ++-
 arch/arm/mach-davinci/cp_intc.c                  |   14 +-
 arch/arm/mach-davinci/gpio.c                     |   32 ++---
 arch/arm/mach-davinci/irq.c                      |    9 +
 arch/arm/mach-dove/irq.c                         |    9 +
 arch/arm/mach-ebsa110/core.c                     |    6 -
 arch/arm/mach-ep93xx/core.c                      |   16 +-
 arch/arm/mach-footbridge/common.c                |    6 -
 arch/arm/mach-footbridge/isa-irq.c               |   18 ++-
 arch/arm/mach-gemini/gpio.c                      |   12 +-
 arch/arm/mach-gemini/irq.c                       |    9 +
 arch/arm/mach-h720x/common.c                     |   15 +-
 arch/arm/mach-h720x/cpu-h7202.c                  |    6 -
 arch/arm/mach-integrator/integrator_ap.c         |    6 -
 arch/arm/mach-integrator/integrator_cp.c         |   18 ++-
 arch/arm/mach-iop13xx/irq.c                      |   24 ++--
 arch/arm/mach-iop13xx/msi.c                      |    2 
 arch/arm/mach-iop32x/irq.c                       |    6 -
 arch/arm/mach-ixp2000/core.c                     |   30 +++--
 arch/arm/mach-ixp2000/ixdp2x00.c                 |   10 +
 arch/arm/mach-ixp2000/ixdp2x01.c                 |   10 +
 arch/arm/mach-ixp23xx/core.c                     |   25 ++--
 arch/arm/mach-ixp23xx/ixdp2351.c                 |   20 ++-
 arch/arm/mach-ixp4xx/common.c                    |   14 +-
 arch/arm/mach-ks8695/irq.c                       |   28 ++---
 arch/arm/mach-l7200/core.c                       |    6 -
 arch/arm/mach-lh7a40x/arch-kev7a400.c            |    9 +
 arch/arm/mach-lh7a40x/arch-lpd7a40x.c            |   13 +-
 arch/arm/mach-lh7a40x/irq-lh7a400.c              |    9 +
 arch/arm/mach-lh7a40x/irq-lh7a404.c              |   18 ++-
 arch/arm/mach-lh7a40x/irq-lpd7a40x.c             |   12 +-
 arch/arm/mach-mmp/irq.c                          |    8 -
 arch/arm/mach-mx3/mx31ads.c                      |    9 +
 arch/arm/mach-mx3/mx31pdk.c                      |    9 +
 arch/arm/mach-netx/generic.c                     |   12 +-
 arch/arm/mach-nomadik/gpio.c                     |   26 ++--
 arch/arm/mach-ns9xxx/board-a9m9750dev.c          |   15 +-
 arch/arm/mach-ns9xxx/irq.c                       |   15 +-
 arch/arm/mach-omap1/fpga.c                       |   13 +-
 arch/arm/mach-omap1/irq.c                        |   24 ++--
 arch/arm/mach-pnx4008/irq.c                      |   12 +-
 arch/arm/mach-pxa/balloon3.c                     |    8 -
 arch/arm/mach-pxa/irq.c                          |   18 ++-
 arch/arm/mach-pxa/lpd270.c                       |    6 -
 arch/arm/mach-pxa/lubbock.c                      |    6 -
 arch/arm/mach-pxa/mainstone.c                    |    6 -
 arch/arm/mach-pxa/pcm990-baseboard.c             |    6 -
 arch/arm/mach-pxa/pxa3xx.c                       |    9 +
 arch/arm/mach-pxa/viper.c                        |    9 +
 arch/arm/mach-pxa/zeus.c                         |   11 +-
 arch/arm/mach-rpc/irq.c                          |   27 +++-
 arch/arm/mach-s3c2410/bast-irq.c                 |   20 +--
 arch/arm/mach-s3c2412/irq.c                      |   35 +++---
 arch/arm/mach-s3c2440/irq.c                      |   15 +-
 arch/arm/mach-s3c2443/irq.c                      |   71 +++++++------
 arch/arm/mach-sa1100/irq.c                       |   36 ++++--
 arch/arm/mach-sa1100/neponset.c                  |    8 -
 arch/arm/mach-shark/irq.c                        |   10 +
 arch/arm/mach-stmp378x/stmp378x.c                |    9 +
 arch/arm/mach-stmp37xx/stmp37xx.c                |    9 +
 arch/arm/mach-versatile/core.c                   |    6 -
 arch/arm/mach-w90x900/irq.c                      |    8 -
 arch/arm/oprofile/op_model_mpcore.c              |    4 
 arch/arm/plat-mxc/gpio.c                         |   12 +-
 arch/arm/plat-mxc/irq.c                          |    6 -
 arch/arm/plat-omap/gpio.c                        |   36 ++++--
 arch/arm/plat-orion/gpio.c                       |   21 ++-
 arch/arm/plat-orion/irq.c                        |   10 +
 arch/arm/plat-pxa/gpio.c                         |   12 +-
 arch/arm/plat-s3c24xx/irq.c                      |  112 ++++++++++++--------
 arch/arm/plat-s3c24xx/s3c244x-irq.c              |   15 +-
 arch/arm/plat-s3c64xx/irq-eint.c                 |   19 ++-
 arch/arm/plat-s3c64xx/irq.c                      |   21 ++-
 arch/arm/plat-s5pc1xx/irq-eint.c                 |   42 ++++---
 arch/arm/plat-s5pc1xx/irq-gpio.c                 |   18 ++-
 arch/arm/plat-s5pc1xx/irq.c                      |   21 ++-
 arch/arm/plat-stmp3xxx/irq.c                     |    2 
 arch/arm/plat-stmp3xxx/pinmux.c                  |   12 +-
 arch/avr32/mach-at32ap/extint.c                  |   26 ++--
 arch/avr32/mach-at32ap/pio.c                     |    9 +
 arch/blackfin/include/asm/ipipe.h                |    4 
 arch/blackfin/mach-common/ints-priority.c        |   53 ++++++---
 arch/blackfin/mach-common/smp.c                  |    2 
 arch/cris/arch-v10/kernel/irq.c                  |   16 +-
 arch/frv/kernel/irq-mb93091.c                    |   12 +-
 arch/frv/kernel/irq-mb93093.c                    |   12 +-
 arch/frv/kernel/irq-mb93493.c                    |    8 -
 arch/frv/kernel/irq.c                            |   27 ++--
 arch/h8300/kernel/irq.c                          |   14 +-
 arch/ia64/hp/sim/hpsim_irq.c                     |    6 -
 arch/ia64/kernel/iosapic.c                       |   45 ++++----
 arch/ia64/kernel/irq.c                           |    6 -
 arch/ia64/kernel/irq_lsapic.c                    |    8 -
 arch/ia64/kernel/msi_ia64.c                      |   18 ++-
 arch/ia64/kernel/smpboot.c                       |    6 -
 arch/ia64/sn/kernel/irq.c                        |   25 ++--
 arch/ia64/sn/kernel/msi_sn.c                     |   10 +
 arch/m32r/platforms/m32104ut/setup.c             |   19 ++-
 arch/m32r/platforms/m32700ut/setup.c             |   92 +++++++++-------
 arch/m32r/platforms/mappi/setup.c                |   21 ++-
 arch/m32r/platforms/mappi2/setup.c               |   21 ++-
 arch/m32r/platforms/mappi3/setup.c               |   21 ++-
 arch/m32r/platforms/oaks32r/setup.c              |   21 ++-
 arch/m32r/platforms/opsput/setup.c               |   88 +++++++++-------
 arch/m32r/platforms/usrv/setup.c                 |   42 ++++---
 arch/m68knommu/platform/5249/intc2.c             |    9 +
 arch/m68knommu/platform/5272/intc.c              |   11 +-
 arch/m68knommu/platform/68328/ints.c             |    6 -
 arch/m68knommu/platform/68360/ints.c             |    9 +
 arch/m68knommu/platform/coldfire/intc-2.c        |    6 -
 arch/m68knommu/platform/coldfire/intc-simr.c     |    7 -
 arch/m68knommu/platform/coldfire/intc.c          |    8 -
 arch/microblaze/kernel/intc.c                    |   15 +-
 arch/mips/alchemy/common/irq.c                   |   43 ++++---
 arch/mips/alchemy/devboards/pb1200/irqmap.c      |   23 ++--
 arch/mips/ar7/irq.c                              |   18 ++-
 arch/mips/bcm63xx/irq.c                          |   42 ++++---
 arch/mips/cavium-octeon/octeon-irq.c             |   70 ++++++++----
 arch/mips/dec/ioasic-irq.c                       |   21 ++-
 arch/mips/dec/kn02-irq.c                         |   10 +
 arch/mips/emma/markeins/irq.c                    |   20 ++-
 arch/mips/jazz/irq.c                             |    6 -
 arch/mips/kernel/i8259.c                         |   15 +-
 arch/mips/kernel/irq-gic.c                       |   17 ++-
 arch/mips/kernel/irq-gt641xx.c                   |   11 +-
 arch/mips/kernel/irq-msc01.c                     |   22 ++--
 arch/mips/kernel/irq-rm7000.c                    |    6 -
 arch/mips/kernel/irq-rm9000.c                    |   24 ++--
 arch/mips/kernel/irq_cpu.c                       |   14 +-
 arch/mips/kernel/irq_txx9.c                      |   14 +-
 arch/mips/lasat/interrupt.c                      |   14 +-
 arch/mips/loongson/common/bonito-irq.c           |    6 -
 arch/mips/nxp/pnx833x/common/interrupts.c        |   33 +++---
 arch/mips/nxp/pnx8550/common/int.c               |   10 +
 arch/mips/pmc-sierra/msp71xx/msp_irq_cic.c       |   10 +
 arch/mips/pmc-sierra/msp71xx/msp_irq_slp.c       |    9 +
 arch/mips/powertv/asic/irq_asic.c                |    6 -
 arch/mips/rb532/irq.c                            |   32 +++--
 arch/mips/sgi-ip22/ip22-int.c                    |   24 ++--
 arch/mips/sgi-ip27/ip27-irq.c                    |   12 +-
 arch/mips/sgi-ip27/ip27-timer.c                  |    4 
 arch/mips/sgi-ip32/ip32-irq.c                    |   68 +++++++-----
 arch/mips/sibyte/bcm1480/irq.c                   |   28 ++---
 arch/mips/sibyte/sb1250/irq.c                    |   28 ++---
 arch/mips/sni/a20r.c                             |   12 +-
 arch/mips/sni/pcimt.c                            |   14 +-
 arch/mips/sni/pcit.c                             |   12 +-
 arch/mips/sni/rm200.c                            |   21 ++-
 arch/mips/txx9/generic/irq_tx4939.c              |   14 +-
 arch/mips/txx9/jmr3927/irq.c                     |    6 -
 arch/mips/txx9/rbtx4927/irq.c                    |   10 +
 arch/mips/txx9/rbtx4938/irq.c                    |   10 +
 arch/mips/txx9/rbtx4939/irq.c                    |    6 -
 arch/mips/vr41xx/common/icu.c                    |   12 +-
 arch/mips/vr41xx/common/irq.c                    |    8 -
 arch/mn10300/kernel/irq.c                        |   19 ++-
 arch/mn10300/kernel/mn10300-serial.c             |    5 
 arch/parisc/include/asm/irq.h                    |    4 
 arch/parisc/kernel/irq.c                         |   31 +++--
 arch/powerpc/include/asm/mpic.h                  |    6 -
 arch/powerpc/include/asm/qe_ic.h                 |    6 -
 arch/powerpc/kernel/crash.c                      |    4 
 arch/powerpc/kernel/irq.c                        |    2 
 arch/powerpc/platforms/512x/mpc5121_ads_cpld.c   |    6 -
 arch/powerpc/platforms/52xx/media5200.c          |   16 +-
 arch/powerpc/platforms/52xx/mpc52xx_pic.c        |   35 ++++--
 arch/powerpc/platforms/82xx/pq2ads-pci-pic.c     |    6 -
 arch/powerpc/platforms/85xx/ksi8560.c            |    2 
 arch/powerpc/platforms/85xx/mpc85xx_ads.c        |    2 
 arch/powerpc/platforms/85xx/mpc85xx_ds.c         |    2 
 arch/powerpc/platforms/85xx/sbc8560.c            |    2 
 arch/powerpc/platforms/85xx/socrates_fpga_pic.c  |   20 ++-
 arch/powerpc/platforms/85xx/stx_gp3.c            |    2 
 arch/powerpc/platforms/85xx/tqm85xx.c            |    2 
 arch/powerpc/platforms/86xx/gef_pic.c            |   11 +-
 arch/powerpc/platforms/86xx/pic.c                |    2 
 arch/powerpc/platforms/8xx/m8xx_setup.c          |    4 
 arch/powerpc/platforms/cell/axon_msi.c           |    9 +
 arch/powerpc/platforms/cell/beat_interrupt.c     |   12 +-
 arch/powerpc/platforms/cell/interrupt.c          |   12 +-
 arch/powerpc/platforms/cell/setup.c              |    2 
 arch/powerpc/platforms/cell/spider-pic.c         |   15 +-
 arch/powerpc/platforms/chrp/setup.c              |    2 
 arch/powerpc/platforms/embedded6xx/flipper-pic.c |   12 +-
 arch/powerpc/platforms/embedded6xx/hlwd-pic.c    |   26 ++--
 arch/powerpc/platforms/iseries/irq.c             |   19 ++-
 arch/powerpc/platforms/powermac/pic.c            |   20 ++-
 arch/powerpc/platforms/ps3/interrupt.c           |   15 +-
 arch/powerpc/platforms/pseries/setup.c           |    2 
 arch/powerpc/platforms/pseries/xics.c            |   28 +++--
 arch/powerpc/sysdev/cpm1.c                       |    9 +
 arch/powerpc/sysdev/cpm2_pic.c                   |   18 +--
 arch/powerpc/sysdev/fsl_msi.c                    |   12 +-
 arch/powerpc/sysdev/i8259.c                      |   35 +++---
 arch/powerpc/sysdev/ipic.c                       |   15 +-
 arch/powerpc/sysdev/mpc8xx_pic.c                 |   16 +-
 arch/powerpc/sysdev/mpic.c                       |   35 ++++--
 arch/powerpc/sysdev/mpic.h                       |    4 
 arch/powerpc/sysdev/mpic_pasemi_msi.c            |   14 +-
 arch/powerpc/sysdev/mpic_u3msi.c                 |   19 ++-
 arch/powerpc/sysdev/mv64x60_pic.c                |   21 ++-
 arch/powerpc/sysdev/qe_lib/qe_ic.c               |    6 -
 arch/powerpc/sysdev/tsi108_pci.c                 |   14 +-
 arch/powerpc/sysdev/uic.c                        |   36 +++---
 arch/powerpc/sysdev/xilinx_intc.c                |   26 ++--
 arch/score/kernel/irq.c                          |   10 +
 arch/sh/boards/mach-cayman/irq.c                 |   10 +
 arch/sh/boards/mach-dreamcast/irq.c              |    9 +
 arch/sh/boards/mach-landisk/irq.c                |    6 -
 arch/sh/boards/mach-microdev/irq.c               |   19 ++-
 arch/sh/boards/mach-se/7206/irq.c                |    9 +
 arch/sh/boards/mach-se/7343/irq.c                |    6 -
 arch/sh/boards/mach-se/7722/irq.c                |    8 -
 arch/sh/boards/mach-se/7724/irq.c                |    6 -
 arch/sh/boards/mach-systemh/irq.c                |   16 +-
 arch/sh/cchips/hd6446x/hd64461.c                 |   11 +-
 arch/sh/kernel/cpu/irq/imask.c                   |    6 -
 arch/sh/kernel/cpu/irq/intc-sh5.c                |   34 +++---
 arch/sparc/kernel/irq_64.c                       |   62 ++++++-----
 arch/sparc/kernel/pci_msi.c                      |   13 ++
 arch/um/kernel/irq.c                             |    2 
 arch/x86/include/asm/hardirq.h                   |    2 
 arch/x86/include/asm/hpet.h                      |    8 -
 arch/x86/include/asm/i8259.h                     |    2 
 arch/x86/kernel/apic/io_apic.c                   |  125 +++++++++--------------
 arch/x86/kernel/hpet.c                           |   16 +-
 arch/x86/kernel/i8259.c                          |   31 +++--
 arch/x86/kernel/irq.c                            |   12 +-
 arch/x86/kernel/uv_irq.c                         |   12 +-
 arch/x86/kernel/visws_quirks.c                   |   29 ++---
 arch/x86/kernel/vmiclock_32.c                    |    8 -
 arch/x86/lguest/boot.c                           |    8 -
 arch/xtensa/kernel/irq.c                         |   22 ++--
 arch/xtensa/variants/s6000/gpio.c                |   18 ++-
 drivers/dma/ipu/ipu_irq.c                        |   18 +--
 drivers/gpio/langwell_gpio.c                     |   11 +-
 drivers/gpio/pl061.c                             |   19 ++-
 drivers/gpio/timbgpio.c                          |   17 +--
 drivers/gpio/vr41xx_giu.c                        |   32 ++---
 drivers/mfd/asic3.c                              |   27 ++--
 drivers/mfd/ezx-pcap.c                           |   12 +-
 drivers/mfd/htc-egpio.c                          |   12 +-
 drivers/mfd/t7l66xb.c                            |    8 -
 drivers/mfd/tc6393xb.c                           |   15 +-
 drivers/mfd/twl4030-irq.c                        |   16 +-
 drivers/mfd/wm831x-irq.c                         |   18 +--
 drivers/misc/sgi-gru/grufile.c                   |    2 
 drivers/parisc/dino.c                            |   12 +-
 drivers/parisc/eisa.c                            |   10 +
 drivers/parisc/gsc.c                             |   12 +-
 drivers/parisc/iosapic.c                         |   16 +-
 drivers/parisc/superio.c                         |   10 +
 drivers/pci/dmar.c                               |   16 +-
 drivers/pci/htirq.c                              |   22 ++--
 drivers/pci/msi.c                                |   13 +-
 drivers/vlynq/vlynq.c                            |   23 ++--
 drivers/xen/events.c                             |   38 ++++--
 include/linux/dmar.h                             |    8 -
 include/linux/htirq.h                            |   11 +-
 include/linux/irq.h                              |   47 ++++----
 include/linux/msi.h                              |    4 
 kernel/irq/autoprobe.c                           |   12 +-
 kernel/irq/chip.c                                |   60 ++++-------
 kernel/irq/handle.c                              |   24 ++--
 kernel/irq/internals.h                           |   16 +-
 kernel/irq/manage.c                              |   65 +++++------
 kernel/irq/migration.c                           |   16 +-
 kernel/irq/pm.c                                  |    4 
 kernel/irq/resend.c                              |    8 -
 kernel/irq/spurious.c                            |    4 
 302 files changed, 3131 insertions(+), 2194 deletions(-)
Documentation/DocBook/genericirq.tmpl +12 -12
Index: linux-2.6/Documentation/DocBook/genericirq.tmpl
===================================================================
@@ -233,33 +233,33 @@
 		are used by the default flow implementations.
 		The following helper functions are implemented (simplified excerpt):
 		<programlisting>
-default_enable(irq)
+default_enable(desc)
 {
-	desc->chip->unmask(irq);
+	desc->chip->unmask(desc);
 }
 
-default_disable(irq)
+default_disable(desc)
 {
-	if (!delay_disable(irq))
-		desc->chip->mask(irq);
+	if (!delay_disable(desc->irq))
+		desc->chip->mask(desc);
 }
 
-default_ack(irq)
+default_ack(desc)
 {
-	chip->ack(irq);
+	chip->ack(desc);
 }
 
-default_mask_ack(irq)
+default_mask_ack(desc)
 {
 	if (chip->mask_ack) {
-		chip->mask_ack(irq);
+		chip->mask_ack(desc);
 	} else {
-		chip->mask(irq);
-		chip->ack(irq);
+		chip->mask(desc);
+		chip->ack(desc);
 	}
 }
 
-noop(irq)
+noop(desc)
 {
 }
 
arch/alpha/kernel/irq.c +4 -3
Index: linux-2.6/arch/alpha/kernel/irq.c
===================================================================
@@ -46,8 +46,9 @@ int irq_select_affinity(unsigned int irq
 {
 	static int last_cpu;
 	int cpu = last_cpu + 1;
+	struct irq_desc *desc = irq_to_desc(irq);
 
-	if (!irq_desc[irq].chip->set_affinity || irq_user_affinity[irq])
+	if (!desc->chip->set_affinity || irq_user_affinity[irq])
 		return 1;
 
 	while (!cpu_possible(cpu) ||
@@ -55,8 +56,8 @@ int irq_select_affinity(unsigned int irq
 		cpu = (cpu < (NR_CPUS-1) ? cpu + 1 : 0);
 	last_cpu = cpu;
 
-	cpumask_copy(irq_desc[irq].affinity, cpumask_of(cpu));
-	irq_desc[irq].chip->set_affinity(irq, cpumask_of(cpu));
+	cpumask_copy(desc->affinity, cpumask_of(cpu));
+	desc->chip->set_affinity(irq, cpumask_of(cpu));
 	return 0;
 }
 #endif /* CONFIG_SMP */
arch/alpha/kernel/irq_alpha.c +2 -2
Index: linux-2.6/arch/alpha/kernel/irq_alpha.c
===================================================================
@@ -218,8 +218,8 @@ process_mcheck_info(unsigned long vector
  * processed by PALcode, and comes in via entInt vector 1.
  */
 
-static void rtc_enable_disable(unsigned int irq) { }
-static unsigned int rtc_startup(unsigned int irq) { return 0; }
+static void rtc_enable_disable(struct irq_desc *desc) { }
+static unsigned int rtc_startup(struct irq_desc *desc) { return 0; }
 
 struct irqaction timer_irqaction = {
 	.handler	= timer_interrupt,
arch/alpha/kernel/irq_i8259.c +13 -9
Index: linux-2.6/arch/alpha/kernel/irq_i8259.c
===================================================================
@@ -33,8 +33,10 @@ i8259_update_irq_hw(unsigned int irq, un
 }
 
 inline void
-i8259a_enable_irq(unsigned int irq)
+i8259a_enable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	spin_lock(&i8259_irq_lock);
 	i8259_update_irq_hw(irq, cached_irq_mask &= ~(1 << irq));
 	spin_unlock(&i8259_irq_lock);
@@ -47,16 +49,18 @@ __i8259a_disable_irq(unsigned int irq)
 }
 
 void
-i8259a_disable_irq(unsigned int irq)
+i8259a_disable_irq(struct irq_desc *desc)
 {
 	spin_lock(&i8259_irq_lock);
-	__i8259a_disable_irq(irq);
+	__i8259a_disable_irq(desc->irq);
 	spin_unlock(&i8259_irq_lock);
 }
 
 void
-i8259a_mask_and_ack_irq(unsigned int irq)
+i8259a_mask_and_ack_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	spin_lock(&i8259_irq_lock);
 	__i8259a_disable_irq(irq);
 
@@ -70,17 +74,17 @@ i8259a_mask_and_ack_irq(unsigned int irq
 }
 
 unsigned int
-i8259a_startup_irq(unsigned int irq)
+i8259a_startup_irq(struct irq_desc *desc)
 {
-	i8259a_enable_irq(irq);
+	i8259a_enable_irq(desc);
 	return 0; /* never anything pending */
 }
 
 void
-i8259a_end_irq(unsigned int irq)
+i8259a_end_irq(struct irq_desc *desc)
 {
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		i8259a_enable_irq(irq);
+	if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		i8259a_enable_irq(desc);
 }
 
 struct irq_chip i8259a_irq_type = {
arch/alpha/kernel/irq_pyxis.c +11 -10
Index: linux-2.6/arch/alpha/kernel/irq_pyxis.c
===================================================================
@@ -29,34 +29,35 @@ pyxis_update_irq_hw(unsigned long mask)
 }
 
 static inline void
-pyxis_enable_irq(unsigned int irq)
+pyxis_enable_irq(struct irq_desc *desc)
 {
-	pyxis_update_irq_hw(cached_irq_mask |= 1UL << (irq - 16));
+	pyxis_update_irq_hw(cached_irq_mask |= 1UL << (desc->irq - 16));
 }
 
 static void
-pyxis_disable_irq(unsigned int irq)
+pyxis_disable_irq(struct irq_desc *desc)
 {
-	pyxis_update_irq_hw(cached_irq_mask &= ~(1UL << (irq - 16)));
+	pyxis_update_irq_hw(cached_irq_mask &= ~(1UL << (desc->irq - 16)));
 }
 
 static unsigned int
-pyxis_startup_irq(unsigned int irq)
+pyxis_startup_irq(struct irq_desc *desc)
 {
-	pyxis_enable_irq(irq);
+	pyxis_enable_irq(desc);
 	return 0;
 }
 
 static void
-pyxis_end_irq(unsigned int irq)
+pyxis_end_irq(struct irq_desc *desc)
 {
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		pyxis_enable_irq(irq);
+	if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		pyxis_enable_irq(desc);
 }
 
 static void
-pyxis_mask_and_ack_irq(unsigned int irq)
+pyxis_mask_and_ack_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned long bit = 1UL << (irq - 16);
 	unsigned long mask = cached_irq_mask &= ~bit;
 
arch/alpha/kernel/irq_srm.c +9 -9
Index: linux-2.6/arch/alpha/kernel/irq_srm.c
===================================================================
@@ -18,33 +18,33 @@
 DEFINE_SPINLOCK(srm_irq_lock);
 
 static inline void
-srm_enable_irq(unsigned int irq)
+srm_enable_irq(struct irq_desc *desc)
 {
 	spin_lock(&srm_irq_lock);
-	cserve_ena(irq - 16);
+	cserve_ena(desc->irq - 16);
 	spin_unlock(&srm_irq_lock);
 }
 
 static void
-srm_disable_irq(unsigned int irq)
+srm_disable_irq(struct irq_desc *desc)
 {
 	spin_lock(&srm_irq_lock);
-	cserve_dis(irq - 16);
+	cserve_dis(desc->irq - 16);
 	spin_unlock(&srm_irq_lock);
 }
 
 static unsigned int
-srm_startup_irq(unsigned int irq)
+srm_startup_irq(struct irq_desc *desc)
 {
-	srm_enable_irq(irq);
+	srm_enable_irq(desc);
 	return 0;
 }
 
 static void
-srm_end_irq(unsigned int irq)
+srm_end_irq(struct irq_desc *desc)
 {
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		srm_enable_irq(irq);
+	if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		srm_enable_irq(desc);
 }
 
 /* Handle interrupts from the SRM, assuming no additional weirdness.  */
arch/alpha/kernel/sys_alcor.c +14 -14
Index: linux-2.6/arch/alpha/kernel/sys_alcor.c
===================================================================
@@ -44,38 +44,38 @@ alcor_update_irq_hw(unsigned long mask)
 }
 
 static inline void
-alcor_enable_irq(unsigned int irq)
+alcor_enable_irq(struct irq_desc *desc)
 {
-	alcor_update_irq_hw(cached_irq_mask |= 1UL << (irq - 16));
+	alcor_update_irq_hw(cached_irq_mask |= 1UL << (desc->irq - 16));
 }
 
 static void
-alcor_disable_irq(unsigned int irq)
+alcor_disable_irq(struct irq_desc *desc)
 {
-	alcor_update_irq_hw(cached_irq_mask &= ~(1UL << (irq - 16)));
+	alcor_update_irq_hw(cached_irq_mask &= ~(1UL << (desc->irq - 16)));
 }
 
 static void
-alcor_mask_and_ack_irq(unsigned int irq)
+alcor_mask_and_ack_irq(struct irq_desc *desc)
 {
-	alcor_disable_irq(irq);
+	alcor_disable_irq(desc);
 
 	/* On ALCOR/XLT, need to dismiss interrupt via GRU. */
-	*(vuip)GRU_INT_CLEAR = 1 << (irq - 16); mb();
+	*(vuip)GRU_INT_CLEAR = 1 << (desc->irq - 16); mb();
 	*(vuip)GRU_INT_CLEAR = 0; mb();
 }
 
 static unsigned int
-alcor_startup_irq(unsigned int irq)
+alcor_startup_irq(struct irq_desc *desc)
 {
-	alcor_enable_irq(irq);
+	alcor_enable_irq(desc);
 	return 0;
 }
 
 static void
-alcor_isa_mask_and_ack_irq(unsigned int irq)
+alcor_isa_mask_and_ack_irq(struct irq_desc *desc)
 {
-	i8259a_mask_and_ack_irq(irq);
+	i8259a_mask_and_ack_irq(desc);
 
 	/* On ALCOR/XLT, need to dismiss interrupt via GRU. */
 	*(vuip)GRU_INT_CLEAR = 0x80000000; mb();
@@ -83,10 +83,10 @@ alcor_isa_mask_and_ack_irq(unsigned int
 }
 
 static void
-alcor_end_irq(unsigned int irq)
+alcor_end_irq(struct irq_desc *desc)
 {
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		alcor_enable_irq(irq);
+	if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		alcor_enable_irq(desc);
 }
 
 static struct irq_chip alcor_irq_type = {
arch/alpha/kernel/sys_cabriolet.c +11 -7
Index: linux-2.6/arch/alpha/kernel/sys_cabriolet.c
===================================================================
@@ -46,29 +46,33 @@ cabriolet_update_irq_hw(unsigned int irq
 }
 
 static inline void
-cabriolet_enable_irq(unsigned int irq)
+cabriolet_enable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	cabriolet_update_irq_hw(irq, cached_irq_mask &= ~(1UL << irq));
 }
 
 static void
-cabriolet_disable_irq(unsigned int irq)
+cabriolet_disable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	cabriolet_update_irq_hw(irq, cached_irq_mask |= 1UL << irq);
 }
 
 static unsigned int
-cabriolet_startup_irq(unsigned int irq)
+cabriolet_startup_irq(struct irq_desc *desc)
 { 
-	cabriolet_enable_irq(irq);
+	cabriolet_enable_irq(desc);
 	return 0; /* never anything pending */
 }
 
 static void
-cabriolet_end_irq(unsigned int irq)
+cabriolet_end_irq(struct irq_desc *desc)
 { 
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		cabriolet_enable_irq(irq);
+	if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		cabriolet_enable_irq(desc);
 }
 
 static struct irq_chip cabriolet_irq_type = {
arch/alpha/kernel/sys_dp264.c +28 -22

115 lines not on this page · raw message

arch/alpha/kernel/sys_eb64p.c +11 -7
Index: linux-2.6/arch/alpha/kernel/sys_eb64p.c
===================================================================
@@ -44,29 +44,33 @@ eb64p_update_irq_hw(unsigned int irq, un
 }
 
 static inline void
-eb64p_enable_irq(unsigned int irq)
+eb64p_enable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	eb64p_update_irq_hw(irq, cached_irq_mask &= ~(1 << irq));
 }
 
 static void
-eb64p_disable_irq(unsigned int irq)
+eb64p_disable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	eb64p_update_irq_hw(irq, cached_irq_mask |= 1 << irq);
 }
 
 static unsigned int
-eb64p_startup_irq(unsigned int irq)
+eb64p_startup_irq(struct irq_desc *desc)
 {
-	eb64p_enable_irq(irq);
+	eb64p_enable_irq(desc);
 	return 0; /* never anything pending */
 }
 
 static void
-eb64p_end_irq(unsigned int irq)
+eb64p_end_irq(struct irq_desc *desc)
 {
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		eb64p_enable_irq(irq);
+	if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		eb64p_enable_irq(desc);
 }
 
 static struct irq_chip eb64p_irq_type = {
arch/alpha/kernel/sys_eiger.c +11 -7
Index: linux-2.6/arch/alpha/kernel/sys_eiger.c
===================================================================
@@ -51,33 +51,37 @@ eiger_update_irq_hw(unsigned long irq, u
 }
 
 static inline void
-eiger_enable_irq(unsigned int irq)
+eiger_enable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned long mask;
+
 	mask = (cached_irq_mask[irq >= 64] &= ~(1UL << (irq & 63)));
 	eiger_update_irq_hw(irq, mask);
 }
 
 static void
-eiger_disable_irq(unsigned int irq)
+eiger_disable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned long mask;
+
 	mask = (cached_irq_mask[irq >= 64] |= 1UL << (irq & 63));
 	eiger_update_irq_hw(irq, mask);
 }
 
 static unsigned int
-eiger_startup_irq(unsigned int irq)
+eiger_startup_irq(struct irq_desc *desc)
 {
-	eiger_enable_irq(irq);
+	eiger_enable_irq(desc);
 	return 0; /* never anything pending */
 }
 
 static void
-eiger_end_irq(unsigned int irq)
+eiger_end_irq(struct irq_desc *desc)
 {
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		eiger_enable_irq(irq);
+	if (!(irq_desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		eiger_enable_irq(desc);
 }
 
 static struct irq_chip eiger_irq_type = {
arch/alpha/kernel/sys_jensen.c +20 -20
Index: linux-2.6/arch/alpha/kernel/sys_jensen.c
===================================================================
@@ -63,59 +63,59 @@
  */
 
 static unsigned int
-jensen_local_startup(unsigned int irq)
+jensen_local_startup(struct irq_desc *desc)
 {
 	/* the parport is really hw IRQ 1, silly Jensen.  */
-	if (irq == 7)
-		i8259a_startup_irq(1);
+	if (desc->irq == 7)
+		i8259a_startup_irq(irq_to_desc(1));
 	else
 		/*
 		 * For all true local interrupts, set the flag that prevents
 		 * the IPL from being dropped during handler processing.
 		 */
-		if (irq_desc[irq].action)
-			irq_desc[irq].action->flags |= IRQF_DISABLED;
+		if (desc->action)
+			desc->action->flags |= IRQF_DISABLED;
 	return 0;
 }
 
 static void
-jensen_local_shutdown(unsigned int irq)
+jensen_local_shutdown(struct irq_desc *desc)
 {
 	/* the parport is really hw IRQ 1, silly Jensen.  */
-	if (irq == 7)
-		i8259a_disable_irq(1);
+	if (desc->irq == 7)
+		i8259a_disable_irq(irq_to_desc(1));
 }
 
 static void
-jensen_local_enable(unsigned int irq)
+jensen_local_enable(struct irq_desc *desc)
 {
 	/* the parport is really hw IRQ 1, silly Jensen.  */
-	if (irq == 7)
-		i8259a_enable_irq(1);
+	if (desc->irq == 7)
+		i8259a_enable_irq(irq_to_desc(1));
 }
 
 static void
-jensen_local_disable(unsigned int irq)
+jensen_local_disable(struct irq_desc *desc)
 {
 	/* the parport is really hw IRQ 1, silly Jensen.  */
-	if (irq == 7)
-		i8259a_disable_irq(1);
+	if (desc->irq == 7)
+		i8259a_disable_irq(irq_to_desc(1));
 }
 
 static void
-jensen_local_ack(unsigned int irq)
+jensen_local_ack(struct irq_desc *desc)
 {
 	/* the parport is really hw IRQ 1, silly Jensen.  */
-	if (irq == 7)
-		i8259a_mask_and_ack_irq(1);
+	if (desc->irq == 7)
+		i8259a_mask_and_ack_irq(irq_to_desc(1));
 }
 
 static void
-jensen_local_end(unsigned int irq)
+jensen_local_end(struct irq_desc *desc)
 {
 	/* the parport is really hw IRQ 1, silly Jensen.  */
-	if (irq == 7)
-		i8259a_end_irq(1);
+	if (desc->irq == 7)
+		i8259a_end_irq(irq_to_desc(1));
 }
 
 static struct irq_chip jensen_local_irq_type = {
arch/alpha/kernel/sys_marvel.c +13 -13
Index: linux-2.6/arch/alpha/kernel/sys_marvel.c
===================================================================
@@ -104,15 +104,15 @@ io7_get_irq_ctl(unsigned int irq, struct
 }
 
 static void
-io7_enable_irq(unsigned int irq)
+io7_enable_irq(struct irq_desc *desc)
 {
 	volatile unsigned long *ctl;
 	struct io7 *io7;
 
-	ctl = io7_get_irq_ctl(irq, &io7);
+	ctl = io7_get_irq_ctl(desc->irq, &io7);
 	if (!ctl || !io7) {
 		printk(KERN_ERR "%s: get_ctl failed for irq %x\n",
-		       __func__, irq);
+		       __func__, desc->irq);
 		return;
 	}
 		
@@ -124,15 +124,15 @@ io7_enable_irq(unsigned int irq)
 }
 
 static void
-io7_disable_irq(unsigned int irq)
+io7_disable_irq(struct irq_desc *desc)
 {
 	volatile unsigned long *ctl;
 	struct io7 *io7;
 
-	ctl = io7_get_irq_ctl(irq, &io7);
+	ctl = io7_get_irq_ctl(desc->irq, &io7);
 	if (!ctl || !io7) {
 		printk(KERN_ERR "%s: get_ctl failed for irq %x\n",
-		       __func__, irq);
+		       __func__, desc->irq);
 		return;
 	}
 		
@@ -144,27 +144,27 @@ io7_disable_irq(unsigned int irq)
 }
 
 static unsigned int
-io7_startup_irq(unsigned int irq)
+io7_startup_irq(struct irq_desc *desc)
 {
-	io7_enable_irq(irq);
+	io7_enable_irq(desc);
 	return 0;	/* never anything pending */
 }
 
 static void
-io7_end_irq(unsigned int irq)
+io7_end_irq(struct irq_desc *desc)
 {
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		io7_enable_irq(irq);
+	if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		io7_enable_irq(desc);
 }
 
 static void
-marvel_irq_noop(unsigned int irq) 
+marvel_irq_noop(struct irq_desc *desc)
 { 
 	return; 
 }
 
 static unsigned int
-marvel_irq_noop_return(unsigned int irq) 
+marvel_irq_noop_return(struct irq_desc *desc)
 { 
 	return 0; 
 }
arch/alpha/kernel/sys_mikasa.c +9 -9
Index: linux-2.6/arch/alpha/kernel/sys_mikasa.c
===================================================================
@@ -43,29 +43,29 @@ mikasa_update_irq_hw(int mask)
 }
 
 static inline void
-mikasa_enable_irq(unsigned int irq)
+mikasa_enable_irq(struct irq_desc *desc)
 {
-	mikasa_update_irq_hw(cached_irq_mask |= 1 << (irq - 16));
+	mikasa_update_irq_hw(cached_irq_mask |= 1 << (desc->irq - 16));
 }
 
 static void
-mikasa_disable_irq(unsigned int irq)
+mikasa_disable_irq(struct irq_desc *desc)
 {
-	mikasa_update_irq_hw(cached_irq_mask &= ~(1 << (irq - 16)));
+	mikasa_update_irq_hw(cached_irq_mask &= ~(1 << (desc->irq - 16)));
 }
 
 static unsigned int
-mikasa_startup_irq(unsigned int irq)
+mikasa_startup_irq(struct irq_desc *desc)
 {
-	mikasa_enable_irq(irq);
+	mikasa_enable_irq(desc);
 	return 0;
 }
 
 static void
-mikasa_end_irq(unsigned int irq)
+mikasa_end_irq(struct irq_desc *desc)
 {
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		mikasa_enable_irq(irq);
+	if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		mikasa_enable_irq(desc);
 }
 
 static struct irq_chip mikasa_irq_type = {
arch/alpha/kernel/sys_noritake.c +11 -7
Index: linux-2.6/arch/alpha/kernel/sys_noritake.c
===================================================================
@@ -48,29 +48,33 @@ noritake_update_irq_hw(int irq, int mask
 }
 
 static void
-noritake_enable_irq(unsigned int irq)
+noritake_enable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	noritake_update_irq_hw(irq, cached_irq_mask |= 1 << (irq - 16));
 }
 
 static void
-noritake_disable_irq(unsigned int irq)
+noritake_disable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	noritake_update_irq_hw(irq, cached_irq_mask &= ~(1 << (irq - 16)));
 }
 
 static unsigned int
-noritake_startup_irq(unsigned int irq)
+noritake_startup_irq(struct irq_desc *desc)
 {
-	noritake_enable_irq(irq);
+	noritake_enable_irq(desc);
 	return 0;
 }
 
 static void
-noritake_end_irq(unsigned int irq)
+noritake_end_irq(struct irq_desc *desc)
 {
-        if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-                noritake_enable_irq(irq);
+	if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		noritake_enable_irq(desc);
 }
 
 static struct irq_chip noritake_irq_type = {
arch/alpha/kernel/sys_rawhide.c +11 -8
Index: linux-2.6/arch/alpha/kernel/sys_rawhide.c
===================================================================
@@ -56,8 +56,9 @@ rawhide_update_irq_hw(int hose, int mask
   (((h) < MCPCIA_MAX_HOSES) && (cached_irq_masks[(h)] != 0))
 
 static inline void 
-rawhide_enable_irq(unsigned int irq)
+rawhide_enable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int mask, hose;
 
 	irq -= 16;
@@ -76,8 +77,9 @@ rawhide_enable_irq(unsigned int irq)
 }
 
 static void 
-rawhide_disable_irq(unsigned int irq)
+rawhide_disable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int mask, hose;
 
 	irq -= 16;
@@ -96,8 +98,9 @@ rawhide_disable_irq(unsigned int irq)
 }
 
 static void
-rawhide_mask_and_ack_irq(unsigned int irq)
+rawhide_mask_and_ack_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int mask, mask1, hose;
 
 	irq -= 16;
@@ -122,17 +125,17 @@ rawhide_mask_and_ack_irq(unsigned int ir
 }
 
 static unsigned int
-rawhide_startup_irq(unsigned int irq)
+rawhide_startup_irq(struct irq_desc *desc)
 {
-	rawhide_enable_irq(irq);
+	rawhide_enable_irq(desc);
 	return 0;
 }
 
 static void
-rawhide_end_irq(unsigned int irq)
+rawhide_end_irq(struct irq_desc *desc)
 {
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		rawhide_enable_irq(irq);
+	if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		rawhide_enable_irq(desc);
 }
 
 static struct irq_chip rawhide_irq_type = {
arch/alpha/kernel/sys_rx164.c +9 -9
Index: linux-2.6/arch/alpha/kernel/sys_rx164.c
===================================================================
@@ -47,29 +47,29 @@ rx164_update_irq_hw(unsigned long mask)
 }
 
 static inline void
-rx164_enable_irq(unsigned int irq)
+rx164_enable_irq(struct irq_desc *desc)
 {
-	rx164_update_irq_hw(cached_irq_mask |= 1UL << (irq - 16));
+	rx164_update_irq_hw(cached_irq_mask |= 1UL << (desc->irq - 16));
 }
 
 static void
-rx164_disable_irq(unsigned int irq)
+rx164_disable_irq(struct irq_desc *desc)
 {
-	rx164_update_irq_hw(cached_irq_mask &= ~(1UL << (irq - 16)));
+	rx164_update_irq_hw(cached_irq_mask &= ~(1UL << (desc->irq - 16)));
 }
 
 static unsigned int
-rx164_startup_irq(unsigned int irq)
+rx164_startup_irq(struct irq_desc *desc)
 {
-	rx164_enable_irq(irq);
+	rx164_enable_irq(desc);
 	return 0;
 }
 
 static void
-rx164_end_irq(unsigned int irq)
+rx164_end_irq(struct irq_desc *desc)
 {
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		rx164_enable_irq(irq);
+	if (!(desc_.status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		rx164_enable_irq(desc);
 }
 
 static struct irq_chip rx164_irq_type = {
arch/alpha/kernel/sys_sable.c +13 -13
Index: linux-2.6/arch/alpha/kernel/sys_sable.c
===================================================================
@@ -443,57 +443,57 @@ lynx_swizzle(struct pci_dev *dev, u8 *pi
 /* GENERIC irq routines */
 
 static inline void
-sable_lynx_enable_irq(unsigned int irq)
+sable_lynx_enable_irq(struct irq_desc *desc)
 {
 	unsigned long bit, mask;
 
-	bit = sable_lynx_irq_swizzle->irq_to_mask[irq];
+	bit = sable_lynx_irq_swizzle->irq_to_mask[desc->irq];
 	spin_lock(&sable_lynx_irq_lock);
 	mask = sable_lynx_irq_swizzle->shadow_mask &= ~(1UL << bit);
 	sable_lynx_irq_swizzle->update_irq_hw(bit, mask);
 	spin_unlock(&sable_lynx_irq_lock);
 #if 0
 	printk("%s: mask 0x%lx bit 0x%lx irq 0x%x\n",
-	       __func__, mask, bit, irq);
+	       __func__, mask, bit, desc->irq);
 #endif
 }
 
 static void
-sable_lynx_disable_irq(unsigned int irq)
+sable_lynx_disable_irq(struct irq_desc *desc)
 {
 	unsigned long bit, mask;
 
-	bit = sable_lynx_irq_swizzle->irq_to_mask[irq];
+	bit = sable_lynx_irq_swizzle->irq_to_mask[desc->irq];
 	spin_lock(&sable_lynx_irq_lock);
 	mask = sable_lynx_irq_swizzle->shadow_mask |= 1UL << bit;
 	sable_lynx_irq_swizzle->update_irq_hw(bit, mask);
 	spin_unlock(&sable_lynx_irq_lock);
 #if 0
 	printk("%s: mask 0x%lx bit 0x%lx irq 0x%x\n",
-	       __func__, mask, bit, irq);
+	       __func__, mask, bit, desc->irq);
 #endif
 }
 
 static unsigned int
-sable_lynx_startup_irq(unsigned int irq)
+sable_lynx_startup_irq(struct irq_desc *desc)
 {
-	sable_lynx_enable_irq(irq);
+	sable_lynx_enable_irq(desc);
 	return 0;
 }
 
 static void
-sable_lynx_end_irq(unsigned int irq)
+sable_lynx_end_irq(struct irq_desc *desc)
 {
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		sable_lynx_enable_irq(irq);
+	if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		sable_lynx_enable_irq(desc);
 }
 
 static void
-sable_lynx_mask_and_ack_irq(unsigned int irq)
+sable_lynx_mask_and_ack_irq(struct irq_desc *desc)
 {
 	unsigned long bit, mask;
 
-	bit = sable_lynx_irq_swizzle->irq_to_mask[irq];
+	bit = sable_lynx_irq_swizzle->irq_to_mask[desc->irq];
 	spin_lock(&sable_lynx_irq_lock);
 	mask = sable_lynx_irq_swizzle->shadow_mask |= 1UL << bit;
 	sable_lynx_irq_swizzle->update_irq_hw(bit, mask);
arch/alpha/kernel/sys_takara.c +11 -7
Index: linux-2.6/arch/alpha/kernel/sys_takara.c
===================================================================
@@ -45,33 +45,37 @@ takara_update_irq_hw(unsigned long irq,
 }
 
 static inline void
-takara_enable_irq(unsigned int irq)
+takara_enable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned long mask;
+
 	mask = (cached_irq_mask[irq >= 64] &= ~(1UL << (irq & 63)));
 	takara_update_irq_hw(irq, mask);
 }
 
 static void
-takara_disable_irq(unsigned int irq)
+takara_disable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned long mask;
+
 	mask = (cached_irq_mask[irq >= 64] |= 1UL << (irq & 63));
 	takara_update_irq_hw(irq, mask);
 }
 
 static unsigned int
-takara_startup_irq(unsigned int irq)
+takara_startup_irq(struct irq_desc *desc)
 {
-	takara_enable_irq(irq);
+	takara_enable_irq(desc);
 	return 0; /* never anything pending */
 }
 
 static void
-takara_end_irq(unsigned int irq)
+takara_end_irq(struct irq_desc *desc)
 {
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		takara_enable_irq(irq);
+	if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		takara_enable_irq(desc);
 }
 
 static struct irq_chip takara_irq_type = {
arch/alpha/kernel/sys_titan.c +11 -11
Index: linux-2.6/arch/alpha/kernel/sys_titan.c
===================================================================
@@ -112,35 +112,35 @@ titan_update_irq_hw(unsigned long mask)
 }
 
 static inline void
-titan_enable_irq(unsigned int irq)
+titan_enable_irq(struct irq_desc *desc)
 {
 	spin_lock(&titan_irq_lock);
-	titan_cached_irq_mask |= 1UL << (irq - 16);
+	titan_cached_irq_mask |= 1UL << (desc->irq - 16);
 	titan_update_irq_hw(titan_cached_irq_mask);
 	spin_unlock(&titan_irq_lock);
 }
 
 static inline void
-titan_disable_irq(unsigned int irq)
+titan_disable_irq(struct irq_desc *desc)
 {
 	spin_lock(&titan_irq_lock);
-	titan_cached_irq_mask &= ~(1UL << (irq - 16));
+	titan_cached_irq_mask &= ~(1UL << (desc->irq - 16));
 	titan_update_irq_hw(titan_cached_irq_mask);
 	spin_unlock(&titan_irq_lock);
 }
 
 static unsigned int
-titan_startup_irq(unsigned int irq)
+titan_startup_irq(struct irq_desc *desc)
 {
-	titan_enable_irq(irq);
+	titan_enable_irq(desc);
 	return 0;	/* never anything pending */
 }
 
 static void
-titan_end_irq(unsigned int irq)
+titan_end_irq(struct irq_desc *desc)
 {
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		titan_enable_irq(irq);
+	if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		titan_enable_irq(desc);
 }
 
 static void
@@ -158,10 +158,10 @@ titan_cpu_set_irq_affinity(unsigned int
 }
 
 static int
-titan_set_irq_affinity(unsigned int irq, const struct cpumask *affinity)
+titan_set_irq_affinity(struct irq_desc *desc, const struct cpumask *affinity)
 { 
 	spin_lock(&titan_irq_lock);
-	titan_cpu_set_irq_affinity(irq - 16, *affinity);
+	titan_cpu_set_irq_affinity(desc->irq - 16, *affinity);
 	titan_update_irq_hw(titan_cached_irq_mask);
 	spin_unlock(&titan_irq_lock);
 
arch/alpha/kernel/sys_wildfire.c +19 -13
Index: linux-2.6/arch/alpha/kernel/sys_wildfire.c
===================================================================
@@ -104,10 +104,12 @@ wildfire_init_irq_hw(void)
 }
 
 static void
-wildfire_enable_irq(unsigned int irq)
+wildfire_enable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	if (irq < 16)
-		i8259a_enable_irq(irq);
+		i8259a_enable_irq(desc);
 
 	spin_lock(&wildfire_irq_lock);
 	set_bit(irq, &cached_irq_mask);
@@ -116,10 +118,12 @@ wildfire_enable_irq(unsigned int irq)
 }
 
 static void
-wildfire_disable_irq(unsigned int irq)
+wildfire_disable_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	if (irq < 16)
-		i8259a_disable_irq(irq);
+		i8259a_disable_irq(desc);
 
 	spin_lock(&wildfire_irq_lock);
 	clear_bit(irq, &cached_irq_mask);
@@ -128,10 +132,12 @@ wildfire_disable_irq(unsigned int irq)
 }
 
 static void
-wildfire_mask_and_ack_irq(unsigned int irq)
+wildfire_mask_and_ack_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	if (irq < 16)
-		i8259a_mask_and_ack_irq(irq);
+		i8259a_mask_and_ack_irq(desc);
 
 	spin_lock(&wildfire_irq_lock);
 	clear_bit(irq, &cached_irq_mask);
@@ -140,21 +146,21 @@ wildfire_mask_and_ack_irq(unsigned int i
 }
 
 static unsigned int
-wildfire_startup_irq(unsigned int irq)
+wildfire_startup_irq(struct irq_desc *desc)
 { 
-	wildfire_enable_irq(irq);
+	wildfire_enable_irq(desc);
 	return 0; /* never anything pending */
 }
 
 static void
-wildfire_end_irq(unsigned int irq)
+wildfire_end_irq(struct irq_desc *desc)
 { 
 #if 0
-	if (!irq_desc[irq].action)
-		printk("got irq %d\n", irq);
+	if (!desc->action)
+		printk("got irq %d\n", desc->irq);
 #endif
-	if (!(irq_desc[irq].status & (IRQ_DISABLED|IRQ_INPROGRESS)))
-		wildfire_enable_irq(irq);
+	if (!(desc->status & (IRQ_DISABLED|IRQ_INPROGRESS)))
+		wildfire_enable_irq(desc);
 }
 
 static struct irq_chip wildfire_irq_type = {
arch/arm/common/gic.c +12 -8
Index: linux-2.6/arch/arm/common/gic.c
===================================================================
@@ -80,8 +80,9 @@ static inline unsigned int gic_irq(unsig
  * our "acknowledge" routine disable the interrupt, then mark it as
  * complete.
  */
-static void gic_ack_irq(unsigned int irq)
+static void gic_ack_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	u32 mask = 1 << (irq % 32);
 
 	spin_lock(&irq_controller_lock);
@@ -90,8 +91,9 @@ static void gic_ack_irq(unsigned int irq
 	spin_unlock(&irq_controller_lock);
 }
 
-static void gic_mask_irq(unsigned int irq)
+static void gic_mask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	u32 mask = 1 << (irq % 32);
 
 	spin_lock(&irq_controller_lock);
@@ -99,8 +101,9 @@ static void gic_mask_irq(unsigned int ir
 	spin_unlock(&irq_controller_lock);
 }
 
-static void gic_unmask_irq(unsigned int irq)
+static void gic_unmask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	u32 mask = 1 << (irq % 32);
 
 	spin_lock(&irq_controller_lock);
@@ -109,8 +112,9 @@ static void gic_unmask_irq(unsigned int
 }
 
 #ifdef CONFIG_SMP
-static int gic_set_cpu(unsigned int irq, const struct cpumask *mask_val)
+static int gic_set_cpu(struct irq_desc *desc, const struct cpumask *mask_val)
 {
+	unsigned int irq = desc->irq;
 	void __iomem *reg = gic_dist_base(irq) + GIC_DIST_TARGET + (gic_irq(irq) & ~3);
 	unsigned int shift = (irq % 4) * 8;
 	unsigned int cpu = cpumask_first(mask_val);
@@ -129,13 +133,13 @@ static int gic_set_cpu(unsigned int irq,
 
 static void gic_handle_cascade_irq(unsigned int irq, struct irq_desc *desc)
 {
-	struct gic_chip_data *chip_data = get_irq_data(irq);
-	struct irq_chip *chip = get_irq_chip(irq);
+	struct gic_chip_data *chip_data = get_irq_desc_data(desc);
+	struct irq_chip *chip = get_irq_desc_chip(desc);
 	unsigned int cascade_irq, gic_irq;
 	unsigned long status;
 
 	/* primary controller ack'ing */
-	chip->ack(irq);
+	chip->ack(desc);
 
 	spin_lock(&irq_controller_lock);
 	status = readl(chip_data->cpu_base + GIC_CPU_INTACK);
@@ -153,7 +157,7 @@ static void gic_handle_cascade_irq(unsig
 
  out:
 	/* primary controller unmasking */
-	chip->unmask(irq);
+	chip->unmask(desc);
 }
 
 static struct irq_chip gic_chip = {
arch/arm/common/it8152.c +6 -2
Index: linux-2.6/arch/arm/common/it8152.c
===================================================================
@@ -32,8 +32,10 @@
 
 #define MAX_SLOTS		21
 
-static void it8152_mask_irq(unsigned int irq)
+static void it8152_mask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
        if (irq >= IT8152_LD_IRQ(0)) {
 	       __raw_writel((__raw_readl(IT8152_INTC_LDCNIMR) |
 			    (1 << (irq - IT8152_LD_IRQ(0)))),
@@ -49,8 +51,10 @@ static void it8152_mask_irq(unsigned int
        }
 }
 
-static void it8152_unmask_irq(unsigned int irq)
+static void it8152_unmask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
        if (irq >= IT8152_LD_IRQ(0)) {
 	       __raw_writel((__raw_readl(IT8152_INTC_LDCNIMR) &
 			     ~(1 << (irq - IT8152_LD_IRQ(0)))),
arch/arm/common/locomo.c +66 -37

251 lines not on this page · raw message

arch/arm/common/sa1111.c +33 -23

146 lines not on this page · raw message

arch/arm/common/vic.c +14 -7
Index: linux-2.6/arch/arm/common/vic.c
===================================================================
@@ -28,25 +28,31 @@
 #include <asm/mach/irq.h>
 #include <asm/hardware/vic.h>
 
-static void vic_ack_irq(unsigned int irq)
+static void vic_ack_irq(struct irq_desc *desc)
 {
-	void __iomem *base = get_irq_chip_data(irq);
+	unsigned int irq = desc->irq;
+	void __iomem *base = get_irq_desc_chip_data(desc);
+
 	irq &= 31;
 	writel(1 << irq, base + VIC_INT_ENABLE_CLEAR);
 	/* moreover, clear the soft-triggered, in case it was the reason */
 	writel(1 << irq, base + VIC_INT_SOFT_CLEAR);
 }
 
-static void vic_mask_irq(unsigned int irq)
+static void vic_mask_irq(struct irq_desc *desc)
 {
-	void __iomem *base = get_irq_chip_data(irq);
+	unsigned int irq = desc->irq;
+	void __iomem *base = get_irq_desc_chip_data(desc);
+
 	irq &= 31;
 	writel(1 << irq, base + VIC_INT_ENABLE_CLEAR);
 }
 
-static void vic_unmask_irq(unsigned int irq)
+static void vic_unmask_irq(struct irq_desc *desc)
 {
-	void __iomem *base = get_irq_chip_data(irq);
+	unsigned int irq = desc->irq;
+	void __iomem *base = get_irq_desc_chip_data(irq);
+
 	irq &= 31;
 	writel(1 << irq, base + VIC_INT_ENABLE);
 }
@@ -236,8 +242,9 @@ static struct vic_device *vic_from_irq(u
 	return NULL;
 }
 
-static int vic_set_wake(unsigned int irq, unsigned int on)
+static int vic_set_wake(struct irq_desc *desc, unsigned int on)
 {
+	unsigned int irq = desc->irq;
 	struct vic_device *v = vic_from_irq(irq);
 	unsigned int off = irq & 31;
 	u32 bit = 1 << off;
arch/arm/kernel/ecard.c +7 -5
Index: linux-2.6/arch/arm/kernel/ecard.c
===================================================================
@@ -443,8 +443,9 @@ static expansioncard_ops_t ecard_default
  *
  * They are not meant to be called directly, but via enable/disable_irq.
  */
-static void ecard_irq_unmask(unsigned int irqnr)
+static void ecard_irq_unmask(struct irq_desc *desc)
 {
+	unsigned int irqnr = desc->irq;
 	ecard_t *ec = slot_to_ecard(irqnr - 32);
 
 	if (ec) {
@@ -459,8 +460,9 @@ static void ecard_irq_unmask(unsigned in
 	}
 }
 
-static void ecard_irq_mask(unsigned int irqnr)
+static void ecard_irq_mask(struct irq_desc *desc)
 {
+	unsigned int irqnr = desc->irq;
 	ecard_t *ec = slot_to_ecard(irqnr - 32);
 
 	if (ec) {
@@ -551,7 +553,7 @@ static void ecard_check_lockup(struct ir
 			printk(KERN_ERR "\nInterrupt lockup detected - "
 			       "disabling all expansion card interrupts\n");
 
-			desc->chip->mask(IRQ_EXPANSIONCARD);
+			desc->chip->mask(irq_to_desc(IRQ_EXPANSIONCARD));
 			ecard_dump_irq_state();
 		}
 	} else
@@ -574,7 +576,7 @@ ecard_irq_handler(unsigned int irq, stru
 	ecard_t *ec;
 	int called = 0;
 
-	desc->chip->mask(irq);
+	desc->chip->mask(desc);
 	for (ec = cards; ec; ec = ec->next) {
 		int pending;
 
@@ -591,7 +593,7 @@ ecard_irq_handler(unsigned int irq, stru
 			called ++;
 		}
 	}
-	desc->chip->unmask(irq);
+	desc->chip->unmask(desc);
 
 	if (called == 0)
 		ecard_check_lockup(desc);
arch/arm/kernel/irq.c +1 -1
Index: linux-2.6/arch/arm/kernel/irq.c
===================================================================
@@ -167,7 +167,7 @@ static void route_irq(struct irq_desc *d
 	pr_debug("IRQ%u: moving from cpu%u to cpu%u\n", irq, desc->node, cpu);
 
 	raw_spin_lock_irq(&desc->lock);
-	desc->chip->set_affinity(irq, cpumask_of(cpu));
+	desc->chip->set_affinity(desc, cpumask_of(cpu));
 	raw_spin_unlock_irq(&desc->lock);
 }
 
arch/arm/mach-aaec2000/core.c +3 -3
Index: linux-2.6/arch/arm/mach-aaec2000/core.c
===================================================================
@@ -67,17 +67,17 @@ void __init aaec2000_map_io(void)
 /*
  * Interrupt handling routines
  */
-static void aaec2000_int_ack(unsigned int irq)
+static void aaec2000_int_ack(struct irq_desc *desc)
 {
 	IRQ_INTSR = 1 << irq;
 }
 
-static void aaec2000_int_mask(unsigned int irq)
+static void aaec2000_int_mask(struct irq_desc *desc)
 {
 	IRQ_INTENC |= (1 << irq);
 }
 
-static void aaec2000_int_unmask(unsigned int irq)
+static void aaec2000_int_unmask(struct irq_desc *desc)
 {
 	IRQ_INTENS |= (1 << irq);
 }
arch/arm/mach-at91/gpio.c +9 -6
Index: linux-2.6/arch/arm/mach-at91/gpio.c
===================================================================
@@ -274,8 +274,9 @@ EXPORT_SYMBOL(at91_get_gpio_value);
 static u32 wakeups[MAX_GPIO_BANKS];
 static u32 backups[MAX_GPIO_BANKS];
 
-static int gpio_irq_set_wake(unsigned pin, unsigned state)
+static int gpio_irq_set_wake(struct irq_desc *desc, unsigned state)
 {
+	unsigned int pin = desc->irq;
 	unsigned	mask = pin_to_mask(pin);
 	unsigned	bank = (pin - PIN_BASE) / 32;
 
@@ -344,8 +345,9 @@ void at91_gpio_resume(void)
  * IRQ0..IRQ6 should be configurable, e.g. level vs edge triggering.
  */
 
-static void gpio_irq_mask(unsigned pin)
+static void gpio_irq_mask(struct irq_desc *desc)
 {
+	unsigned int pin = desc->irq;
 	void __iomem	*pio = pin_to_controller(pin);
 	unsigned	mask = pin_to_mask(pin);
 
@@ -353,8 +355,9 @@ static void gpio_irq_mask(unsigned pin)
 		__raw_writel(mask, pio + PIO_IDR);
 }
 
-static void gpio_irq_unmask(unsigned pin)
+static void gpio_irq_unmask(struct irq_desc *desc)
 {
+	unsigned int pin = desc->irq;
 	void __iomem	*pio = pin_to_controller(pin);
 	unsigned	mask = pin_to_mask(pin);
 
@@ -362,7 +365,7 @@ static void gpio_irq_unmask(unsigned pin
 		__raw_writel(mask, pio + PIO_IER);
 }
 
-static int gpio_irq_type(unsigned pin, unsigned type)
+static int gpio_irq_type(struct irq_desc *desc, unsigned type)
 {
 	switch (type) {
 	case IRQ_TYPE_NONE:
@@ -393,7 +396,7 @@ static void gpio_irq_handler(unsigned ir
 	pio = at91_gpio->regbase;
 
 	/* temporarily mask (level sensitive) parent IRQ */
-	desc->chip->ack(irq);
+	desc->chip->ack(desc);
 	for (;;) {
 		/* Reading ISR acks pending (edge triggered) GPIO interrupts.
 		 * When there none are pending, we're finished unless we need
@@ -429,7 +432,7 @@ static void gpio_irq_handler(unsigned ir
 			isr >>= 1;
 		}
 	}
-	desc->chip->unmask(irq);
+	desc->chip->unmask(desc);
 	/* now it may re-trigger */
 }
 
arch/arm/mach-at91/irq.c +11 -4
Index: linux-2.6/arch/arm/mach-at91/irq.c
===================================================================
@@ -34,14 +34,18 @@
 #include <asm/mach/map.h>
 
 
-static void at91_aic_mask_irq(unsigned int irq)
+static void at91_aic_mask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	/* Disable interrupt on AIC */
 	at91_sys_write(AT91_AIC_IDCR, 1 << irq);
 }
 
-static void at91_aic_unmask_irq(unsigned int irq)
+static void at91_aic_unmask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	/* Enable interrupt on AIC */
 	at91_sys_write(AT91_AIC_IECR, 1 << irq);
 }
@@ -50,8 +54,9 @@ unsigned int at91_extern_irq;
 
 #define is_extern_irq(irq) ((1 << (irq)) & at91_extern_irq)
 
-static int at91_aic_set_type(unsigned irq, unsigned type)
+static int at91_aic_set_type(struct irq_desc *desc, unsigned type)
 {
+	unsigned int irq = desc->irq;
 	unsigned int smr, srctype;
 
 	switch (type) {
@@ -87,8 +92,10 @@ static int at91_aic_set_type(unsigned ir
 static u32 wakeups;
 static u32 backups;
 
-static int at91_aic_set_wake(unsigned irq, unsigned value)
+static int at91_aic_set_wake(struct irq_desc *desc, unsigned value)
 {
+	unsigned int irq = desc->irq;
+
 	if (unlikely(irq >= 32))
 		return -EINVAL;
 
arch/arm/mach-bcmring/irq.c +18 -6
Index: linux-2.6/arch/arm/mach-bcmring/irq.c
===================================================================
@@ -30,38 +30,50 @@
 #include <mach/csp/intcHw_reg.h>
 #include <mach/csp/mm_io.h>
 
-static void bcmring_mask_irq0(unsigned int irq)
+static void bcmring_mask_irq0(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	writel(1 << (irq - IRQ_INTC0_START),
 	       MM_IO_BASE_INTC0 + INTCHW_INTENCLEAR);
 }
 
-static void bcmring_unmask_irq0(unsigned int irq)
+static void bcmring_unmask_irq0(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	writel(1 << (irq - IRQ_INTC0_START),
 	       MM_IO_BASE_INTC0 + INTCHW_INTENABLE);
 }
 
-static void bcmring_mask_irq1(unsigned int irq)
+static void bcmring_mask_irq1(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	writel(1 << (irq - IRQ_INTC1_START),
 	       MM_IO_BASE_INTC1 + INTCHW_INTENCLEAR);
 }
 
-static void bcmring_unmask_irq1(unsigned int irq)
+static void bcmring_unmask_irq1(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	writel(1 << (irq - IRQ_INTC1_START),
 	       MM_IO_BASE_INTC1 + INTCHW_INTENABLE);
 }
 
-static void bcmring_mask_irq2(unsigned int irq)
+static void bcmring_mask_irq2(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	writel(1 << (irq - IRQ_SINTC_START),
 	       MM_IO_BASE_SINTC + INTCHW_INTENCLEAR);
 }
 
-static void bcmring_unmask_irq2(unsigned int irq)
+static void bcmring_unmask_irq2(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
+
 	writel(1 << (irq - IRQ_SINTC_START),
 	       MM_IO_BASE_SINTC + INTCHW_INTENABLE);
 }
arch/arm/mach-clps711x/irq.c +12 -6
Index: linux-2.6/arch/arm/mach-clps711x/irq.c
===================================================================
@@ -27,8 +27,9 @@
 
 #include <asm/hardware/clps7111.h>
 
-static void int1_mask(unsigned int irq)
+static void int1_mask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	u32 intmr1;
 
 	intmr1 = clps_readl(INTMR1);
@@ -36,8 +37,9 @@ static void int1_mask(unsigned int irq)
 	clps_writel(intmr1, INTMR1);
 }
 
-static void int1_ack(unsigned int irq)
+static void int1_ack(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	u32 intmr1;
 
 	intmr1 = clps_readl(INTMR1);
@@ -54,8 +56,9 @@ static void int1_ack(unsigned int irq)
 	}
 }
 
-static void int1_unmask(unsigned int irq)
+static void int1_unmask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	u32 intmr1;
 
 	intmr1 = clps_readl(INTMR1);
@@ -69,8 +72,9 @@ static struct irq_chip int1_chip = {
 	.unmask = int1_unmask,
 };
 
-static void int2_mask(unsigned int irq)
+static void int2_mask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	u32 intmr2;
 
 	intmr2 = clps_readl(INTMR2);
@@ -78,8 +82,9 @@ static void int2_mask(unsigned int irq)
 	clps_writel(intmr2, INTMR2);
 }
 
-static void int2_ack(unsigned int irq)
+static void int2_ack(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	u32 intmr2;
 
 	intmr2 = clps_readl(INTMR2);
@@ -91,8 +96,9 @@ static void int2_ack(unsigned int irq)
 	}
 }
 
-static void int2_unmask(unsigned int irq)
+static void int2_unmask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	u32 intmr2;
 
 	intmr2 = clps_readl(INTMR2);
arch/arm/mach-davinci/cp_intc.c +9 -5
Index: linux-2.6/arch/arm/mach-davinci/cp_intc.c
===================================================================
@@ -27,14 +27,16 @@ static inline void cp_intc_write(unsigne
 	__raw_writel(value, cp_intc_base + offset);
 }
 
-static void cp_intc_ack_irq(unsigned int irq)
+static void cp_intc_ack_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	cp_intc_write(irq, CP_INTC_SYS_STAT_IDX_CLR);
 }
 
 /* Disable interrupt */
-static void cp_intc_mask_irq(unsigned int irq)
+static void cp_intc_mask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	/* XXX don't know why we need to disable nIRQ here... */
 	cp_intc_write(1, CP_INTC_HOST_ENABLE_IDX_CLR);
 	cp_intc_write(irq, CP_INTC_SYS_ENABLE_IDX_CLR);
@@ -42,13 +44,15 @@ static void cp_intc_mask_irq(unsigned in
 }
 
 /* Enable interrupt */
-static void cp_intc_unmask_irq(unsigned int irq)
+static void cp_intc_unmask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	cp_intc_write(irq, CP_INTC_SYS_ENABLE_IDX_SET);
 }
 
-static int cp_intc_set_irq_type(unsigned int irq, unsigned int flow_type)
+static int cp_intc_set_irq_type(struct irq_desc *desc, unsigned int flow_type)
 {
+	unsigned int irq = desc->irq;
 	unsigned reg		= BIT_WORD(irq);
 	unsigned mask		= BIT_MASK(irq);
 	unsigned polarity	= cp_intc_read(CP_INTC_SYS_POLARITY(reg));
@@ -86,7 +90,7 @@ static int cp_intc_set_irq_type(unsigned
  * generic drivers which call {enable|disable}_irq_wake for
  * wake up interrupt sources (eg RTC on DA850).
  */
-static int cp_intc_set_wake(unsigned int irq, unsigned int on)
+static int cp_intc_set_wake(struct irq_desc *desc, unsigned int on)
 {
 	return 0;
 }
arch/arm/mach-davinci/gpio.c +16 -16
Index: linux-2.6/arch/arm/mach-davinci/gpio.c
===================================================================
@@ -159,20 +159,20 @@ pure_initcall(davinci_gpio_setup);
  * serve as EDMA event triggers.
  */
 
-static void gpio_irq_disable(unsigned irq)
+static void gpio_irq_disable(struct irq_desc *desc)
 {
-	struct gpio_controller *__iomem g = get_irq_chip_data(irq);
-	u32 mask = (u32) get_irq_data(irq);
+	struct gpio_controller *__iomem g = get_irq_desc_chip_data(desc);
+	u32 mask = (u32) get_irq_desc_data(desc);
 
 	__raw_writel(mask, &g->clr_falling);
 	__raw_writel(mask, &g->clr_rising);
 }
 
-static void gpio_irq_enable(unsigned irq)
+static void gpio_irq_enable(struct irq_desc *desc)
 {
-	struct gpio_controller *__iomem g = get_irq_chip_data(irq);
-	u32 mask = (u32) get_irq_data(irq);
-	unsigned status = irq_desc[irq].status;
+	struct gpio_controller *__iomem g = get_irq_desc_chip_data(desc);
+	u32 mask = (u32) get_irq_desc_data(desc);
+	unsigned status = desc->status;
 
 	status &= IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING;
 	if (!status)
@@ -184,19 +184,19 @@ static void gpio_irq_enable(unsigned irq
 		__raw_writel(mask, &g->set_rising);
 }
 
-static int gpio_irq_type(unsigned irq, unsigned trigger)
+static int gpio_irq_type(struct irq_desc *desc, unsigned trigger)
 {
-	struct gpio_controller *__iomem g = get_irq_chip_data(irq);
-	u32 mask = (u32) get_irq_data(irq);
+	struct gpio_controller *__iomem g = get_irq_desc_chip_data(desc);
+	u32 mask = (u32) get_irq_desc_data(desc);
 
 	if (trigger & ~(IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING))
 		return -EINVAL;
 
-	irq_desc[irq].status &= ~IRQ_TYPE_SENSE_MASK;
-	irq_desc[irq].status |= trigger;
+	desc->status &= ~IRQ_TYPE_SENSE_MASK;
+	desc->status |= trigger;
 
 	/* don't enable the IRQ if it's currently disabled */
-	if (irq_desc[irq].depth == 0) {
+	if (desc->depth == 0) {
 		__raw_writel(mask, (trigger & IRQ_TYPE_EDGE_FALLING)
 			     ? &g->set_falling : &g->clr_falling);
 		__raw_writel(mask, (trigger & IRQ_TYPE_EDGE_RISING)
@@ -223,8 +223,8 @@ gpio_irq_handler(unsigned irq, struct ir
 		mask <<= 16;
 
 	/* temporarily mask (level sensitive) parent IRQ */
-	desc->chip->mask(irq);
-	desc->chip->ack(irq);
+	desc->chip->mask(desc);
+	desc->chip->ack(desc);
 	while (1) {
 		u32		status;
 		int		n;
@@ -247,7 +247,7 @@ gpio_irq_handler(unsigned irq, struct ir
 			status >>= res;
 		}
 	}
-	desc->chip->unmask(irq);
+	desc->chip->unmask(desc);
 	/* now it may re-trigger */
 }
 
arch/arm/mach-davinci/irq.c +6 -3
Index: linux-2.6/arch/arm/mach-davinci/irq.c
===================================================================
@@ -53,8 +53,9 @@ static inline void davinci_irq_writel(un
 }
 
 /* Disable interrupt */
-static void davinci_mask_irq(unsigned int irq)
+static void davinci_mask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int mask;
 	u32 l;
 
@@ -72,8 +73,9 @@ static void davinci_mask_irq(unsigned in
 }
 
 /* Enable interrupt */
-static void davinci_unmask_irq(unsigned int irq)
+static void davinci_unmask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int mask;
 	u32 l;
 
@@ -91,8 +93,9 @@ static void davinci_unmask_irq(unsigned
 }
 
 /* EOI interrupt */
-static void davinci_ack_irq(unsigned int irq)
+static void davinci_ack_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int mask;
 
 	mask = 1 << IRQ_BIT(irq);
arch/arm/mach-dove/irq.c +6 -3
Index: linux-2.6/arch/arm/mach-dove/irq.c
===================================================================
@@ -36,8 +36,9 @@ static void gpio_irq_handler(unsigned in
 	}
 }
 
-static void pmu_irq_mask(unsigned int irq)
+static void pmu_irq_mask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	int pin = irq_to_pmu(irq);
 	u32 u;
 
@@ -46,8 +47,9 @@ static void pmu_irq_mask(unsigned int ir
 	writel(u, PMU_INTERRUPT_MASK);
 }
 
-static void pmu_irq_unmask(unsigned int irq)
+static void pmu_irq_unmask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	int pin = irq_to_pmu(irq);
 	u32 u;
 
@@ -56,8 +58,9 @@ static void pmu_irq_unmask(unsigned int
 	writel(u, PMU_INTERRUPT_MASK);
 }
 
-static void pmu_irq_ack(unsigned int irq)
+static void pmu_irq_ack(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	int pin = irq_to_pmu(irq);
 	u32 u;
 
arch/arm/mach-ebsa110/core.c +4 -2
Index: linux-2.6/arch/arm/mach-ebsa110/core.c
===================================================================
@@ -35,13 +35,15 @@
 #define IRQ_STAT		0xff000000	/* read */
 #define IRQ_MCLR		0xff000000	/* write */
 
-static void ebsa110_mask_irq(unsigned int irq)
+static void ebsa110_mask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	__raw_writeb(1 << irq, IRQ_MCLR);
 }
 
-static void ebsa110_unmask_irq(unsigned int irq)
+static void ebsa110_unmask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	__raw_writeb(1 << irq, IRQ_MSET);
 }
 
arch/arm/mach-ep93xx/core.c +10 -6
Index: linux-2.6/arch/arm/mach-ep93xx/core.c
===================================================================
@@ -225,8 +225,9 @@ static void ep93xx_gpio_f_irq_handler(un
 	generic_handle_irq(gpio_irq);
 }
 
-static void ep93xx_gpio_irq_ack(unsigned int irq)
+static void ep93xx_gpio_irq_ack(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	int line = irq_to_gpio(irq);
 	int port = line >> 3;
 	int port_mask = 1 << (line & 7);
@@ -239,8 +240,9 @@ static void ep93xx_gpio_irq_ack(unsigned
 	__raw_writeb(port_mask, EP93XX_GPIO_REG(eoi_register_offset[port]));
 }
 
-static void ep93xx_gpio_irq_mask_ack(unsigned int irq)
+static void ep93xx_gpio_irq_mask_ack(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	int line = irq_to_gpio(irq);
 	int port = line >> 3;
 	int port_mask = 1 << (line & 7);
@@ -254,8 +256,9 @@ static void ep93xx_gpio_irq_mask_ack(uns
 	__raw_writeb(port_mask, EP93XX_GPIO_REG(eoi_register_offset[port]));
 }
 
-static void ep93xx_gpio_irq_mask(unsigned int irq)
+static void ep93xx_gpio_irq_mask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	int line = irq_to_gpio(irq);
 	int port = line >> 3;
 
@@ -263,8 +266,9 @@ static void ep93xx_gpio_irq_mask(unsigne
 	ep93xx_gpio_update_int_params(port);
 }
 
-static void ep93xx_gpio_irq_unmask(unsigned int irq)
+static void ep93xx_gpio_irq_unmask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	int line = irq_to_gpio(irq);
 	int port = line >> 3;
 
@@ -278,9 +282,9 @@ static void ep93xx_gpio_irq_unmask(unsig
  * edge (1) triggered, while gpio_int_type2 controls whether it
  * triggers on low/falling (0) or high/rising (1).
  */
-static int ep93xx_gpio_irq_type(unsigned int irq, unsigned int type)
+static int ep93xx_gpio_irq_type(struct irq_desc *desc, unsigned int type)
 {
-	struct irq_desc *desc = irq_desc + irq;
+	unsigned int irq = desc->irq;
 	const int gpio = irq_to_gpio(irq);
 	const int port = gpio >> 3;
 	const int port_mask = 1 << (gpio & 7);
arch/arm/mach-footbridge/common.c +4 -2
Index: linux-2.6/arch/arm/mach-footbridge/common.c
===================================================================
@@ -74,13 +74,15 @@ static const int fb_irq_mask[] = {
 	IRQ_MASK_PCI_PERR,	/* 19 */
 };
 
-static void fb_mask_irq(unsigned int irq)
+static void fb_mask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	*CSR_IRQ_DISABLE = fb_irq_mask[_DC21285_INR(irq)];
 }
 
-static void fb_unmask_irq(unsigned int irq)
+static void fb_unmask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	*CSR_IRQ_ENABLE = fb_irq_mask[_DC21285_INR(irq)];
 }
 
arch/arm/mach-footbridge/isa-irq.c +12 -6
Index: linux-2.6/arch/arm/mach-footbridge/isa-irq.c
===================================================================
@@ -30,23 +30,26 @@
 
 #include "common.h"
 
-static void isa_mask_pic_lo_irq(unsigned int irq)
+static void isa_mask_pic_lo_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int mask = 1 << (irq & 7);
 
 	outb(inb(PIC_MASK_LO) | mask, PIC_MASK_LO);
 }
 
-static void isa_ack_pic_lo_irq(unsigned int irq)
+static void isa_ack_pic_lo_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int mask = 1 << (irq & 7);
 
 	outb(inb(PIC_MASK_LO) | mask, PIC_MASK_LO);
 	outb(0x20, PIC_LO);
 }
 
-static void isa_unmask_pic_lo_irq(unsigned int irq)
+static void isa_unmask_pic_lo_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int mask = 1 << (irq & 7);
 
 	outb(inb(PIC_MASK_LO) & ~mask, PIC_MASK_LO);
@@ -58,15 +61,17 @@ static struct irq_chip isa_lo_chip = {
 	.unmask = isa_unmask_pic_lo_irq,
 };
 
-static void isa_mask_pic_hi_irq(unsigned int irq)
+static void isa_mask_pic_hi_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int mask = 1 << (irq & 7);
 
 	outb(inb(PIC_MASK_HI) | mask, PIC_MASK_HI);
 }
 
-static void isa_ack_pic_hi_irq(unsigned int irq)
+static void isa_ack_pic_hi_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int mask = 1 << (irq & 7);
 
 	outb(inb(PIC_MASK_HI) | mask, PIC_MASK_HI);
@@ -74,8 +79,9 @@ static void isa_ack_pic_hi_irq(unsigned
 	outb(0x20, PIC_HI);
 }
 
-static void isa_unmask_pic_hi_irq(unsigned int irq)
+static void isa_unmask_pic_hi_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int mask = 1 << (irq & 7);
 
 	outb(inb(PIC_MASK_HI) & ~mask, PIC_MASK_HI);
arch/arm/mach-gemini/gpio.c +8 -4
Index: linux-2.6/arch/arm/mach-gemini/gpio.c
===================================================================
@@ -54,24 +54,27 @@ static void _set_gpio_irqenable(unsigned
 	__raw_writel(reg, base + GPIO_INT_EN);
 }
 
-static void gpio_ack_irq(unsigned int irq)
+static void gpio_ack_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int gpio = irq_to_gpio(irq);
 	unsigned int base = GPIO_BASE(gpio / 32);
 
 	__raw_writel(1 << (gpio % 32), base + GPIO_INT_CLR);
 }
 
-static void gpio_mask_irq(unsigned int irq)
+static void gpio_mask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int gpio = irq_to_gpio(irq);
 	unsigned int base = GPIO_BASE(gpio / 32);
 
 	_set_gpio_irqenable(base, gpio % 32, 0);
 }
 
-static void gpio_unmask_irq(unsigned int irq)
+static void gpio_unmask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int gpio = irq_to_gpio(irq);
 	unsigned int base = GPIO_BASE(gpio / 32);
 
@@ -80,6 +83,7 @@ static void gpio_unmask_irq(unsigned int
 
 static int gpio_set_irq_type(unsigned int irq, unsigned int type)
 {
+	unsigned int irq = desc->irq;
 	unsigned int gpio = irq_to_gpio(irq);
 	unsigned int gpio_mask = 1 << (gpio % 32);
 	unsigned int base = GPIO_BASE(gpio / 32);
@@ -120,7 +124,7 @@ static int gpio_set_irq_type(unsigned in
 	__raw_writel(reg_level, base + GPIO_INT_LEVEL);
 	__raw_writel(reg_both, base + GPIO_INT_BOTH_EDGE);
 
-	gpio_ack_irq(irq);
+	gpio_ack_irq(desc);
 
 	return 0;
 }
arch/arm/mach-gemini/irq.c +6 -3
Index: linux-2.6/arch/arm/mach-gemini/irq.c
===================================================================
@@ -32,13 +32,15 @@
 #define FIQ_LEVEL(base_addr)	(base_addr + 0x30)
 #define FIQ_STATUS(base_addr)	(base_addr + 0x34)
 
-static void gemini_ack_irq(unsigned int irq)
+static void gemini_ack_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	__raw_writel(1 << irq, IRQ_CLEAR(IO_ADDRESS(GEMINI_INTERRUPT_BASE)));
 }
 
-static void gemini_mask_irq(unsigned int irq)
+static void gemini_mask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int mask;
 
 	mask = __raw_readl(IRQ_MASK(IO_ADDRESS(GEMINI_INTERRUPT_BASE)));
@@ -46,8 +48,9 @@ static void gemini_mask_irq(unsigned int
 	__raw_writel(mask, IRQ_MASK(IO_ADDRESS(GEMINI_INTERRUPT_BASE)));
 }
 
-static void gemini_unmask_irq(unsigned int irq)
+static void gemini_unmask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int mask;
 
 	mask = __raw_readl(IRQ_MASK(IO_ADDRESS(GEMINI_INTERRUPT_BASE)));
arch/arm/mach-h720x/common.c +10 -5
Index: linux-2.6/arch/arm/mach-h720x/common.c
===================================================================
@@ -53,16 +53,18 @@ unsigned long h720x_gettimeoffset(void)
 /*
  * mask Global irq's
  */
-static void mask_global_irq (unsigned int irq )
+static void mask_global_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	CPU_REG (IRQC_VIRT, IRQC_IER) &= ~(1 << irq);
 }
 
 /*
  * unmask Global irq's
  */
-static void unmask_global_irq (unsigned int irq )
+static void unmask_global_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	CPU_REG (IRQC_VIRT, IRQC_IER) |= (1 << irq);
 }
 
@@ -71,8 +73,9 @@ static void unmask_global_irq (unsigned
  * ack GPIO irq's
  * Ack only for edge triggered int's valid
  */
-static void inline ack_gpio_irq(u32 irq)
+static inline void ack_gpio_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	u32 reg_base = GPIO_VIRT(IRQ_TO_REGNO(irq));
 	u32 bit = IRQ_TO_BIT(irq);
 	if ( (CPU_REG (reg_base, GPIO_EDGE) & bit))
@@ -82,8 +85,9 @@ static void inline ack_gpio_irq(u32 irq)
 /*
  * mask GPIO irq's
  */
-static void inline mask_gpio_irq(u32 irq)
+static inline void mask_gpio_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	u32 reg_base = GPIO_VIRT(IRQ_TO_REGNO(irq));
 	u32 bit = IRQ_TO_BIT(irq);
 	CPU_REG (reg_base, GPIO_MASK) &= ~bit;
@@ -92,8 +96,9 @@ static void inline mask_gpio_irq(u32 irq
 /*
  * unmask GPIO irq's
  */
-static void inline unmask_gpio_irq(u32 irq)
+static inline void unmask_gpio_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	u32 reg_base = GPIO_VIRT(IRQ_TO_REGNO(irq));
 	u32 bit = IRQ_TO_BIT(irq);
 	CPU_REG (reg_base, GPIO_MASK) |= bit;
arch/arm/mach-h720x/cpu-h7202.c +4 -2
Index: linux-2.6/arch/arm/mach-h720x/cpu-h7202.c
===================================================================
@@ -141,8 +141,9 @@ h7202_timer_interrupt(int irq, void *dev
 /*
  * mask multiplexed timer IRQs
  */
-static void inline mask_timerx_irq (u32 irq)
+static inline void mask_timerx_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int bit;
 	bit = 2 << ((irq == IRQ_TIMER64B) ? 4 : (irq - IRQ_TIMER1));
 	CPU_REG (TIMER_VIRT, TIMER_TOPCTRL) &= ~bit;
@@ -151,8 +152,9 @@ static void inline mask_timerx_irq (u32
 /*
  * unmask multiplexed timer IRQs
  */
-static void inline unmask_timerx_irq (u32 irq)
+static inline void unmask_timerx_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned int bit;
 	bit = 2 << ((irq == IRQ_TIMER64B) ? 4 : (irq - IRQ_TIMER1));
 	CPU_REG (TIMER_VIRT, TIMER_TOPCTRL) |= bit;
arch/arm/mach-integrator/integrator_ap.c +4 -2
Index: linux-2.6/arch/arm/mach-integrator/integrator_ap.c
===================================================================
@@ -151,13 +151,15 @@ static void __init ap_map_io(void)
 
 #define INTEGRATOR_SC_VALID_INT	0x003fffff
 
-static void sc_mask_irq(unsigned int irq)
+static void sc_mask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	writel(1 << irq, VA_IC_BASE + IRQ_ENABLE_CLEAR);
 }
 
-static void sc_unmask_irq(unsigned int irq)
+static void sc_unmask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	writel(1 << irq, VA_IC_BASE + IRQ_ENABLE_SET);
 }
 
arch/arm/mach-integrator/integrator_cp.c +12 -6
Index: linux-2.6/arch/arm/mach-integrator/integrator_cp.c
===================================================================
@@ -145,14 +145,16 @@ static void __init intcp_map_io(void)
 #define sic_writel	__raw_writel
 #define sic_readl	__raw_readl
 
-static void cic_mask_irq(unsigned int irq)
+static void cic_mask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	irq -= IRQ_CIC_START;
 	cic_writel(1 << irq, INTCP_VA_CIC_BASE + IRQ_ENABLE_CLEAR);
 }
 
-static void cic_unmask_irq(unsigned int irq)
+static void cic_unmask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	irq -= IRQ_CIC_START;
 	cic_writel(1 << irq, INTCP_VA_CIC_BASE + IRQ_ENABLE_SET);
 }
@@ -164,14 +166,16 @@ static struct irq_chip cic_chip = {
 	.unmask	= cic_unmask_irq,
 };
 
-static void pic_mask_irq(unsigned int irq)
+static void pic_mask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	irq -= IRQ_PIC_START;
 	pic_writel(1 << irq, INTCP_VA_PIC_BASE + IRQ_ENABLE_CLEAR);
 }
 
-static void pic_unmask_irq(unsigned int irq)
+static void pic_unmask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	irq -= IRQ_PIC_START;
 	pic_writel(1 << irq, INTCP_VA_PIC_BASE + IRQ_ENABLE_SET);
 }
@@ -183,14 +187,16 @@ static struct irq_chip pic_chip = {
 	.unmask = pic_unmask_irq,
 };
 
-static void sic_mask_irq(unsigned int irq)
+static void sic_mask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	irq -= IRQ_SIC_START;
 	sic_writel(1 << irq, INTCP_VA_SIC_BASE + IRQ_ENABLE_CLEAR);
 }
 
-static void sic_unmask_irq(unsigned int irq)
+static void sic_unmask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	irq -= IRQ_SIC_START;
 	sic_writel(1 << irq, INTCP_VA_SIC_BASE + IRQ_ENABLE_SET);
 }
arch/arm/mach-iop13xx/irq.c +16 -8
Index: linux-2.6/arch/arm/mach-iop13xx/irq.c
===================================================================
@@ -123,50 +123,58 @@ static void write_intsize(u32 val)
 
 /* 0 = Interrupt Masked and 1 = Interrupt not masked */
 static void
-iop13xx_irq_mask0 (unsigned int irq)
+iop13xx_irq_mask0(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	write_intctl_0(read_intctl_0() & ~(1 << (irq - 0)));
 }
 
 static void
-iop13xx_irq_mask1 (unsigned int irq)
+iop13xx_irq_mask1(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	write_intctl_1(read_intctl_1() & ~(1 << (irq - 32)));
 }
 
 static void
-iop13xx_irq_mask2 (unsigned int irq)
+iop13xx_irq_mask2(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	write_intctl_2(read_intctl_2() & ~(1 << (irq - 64)));
 }
 
 static void
-iop13xx_irq_mask3 (unsigned int irq)
+iop13xx_irq_mask3(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	write_intctl_3(read_intctl_3() & ~(1 << (irq - 96)));
 }
 
 static void
-iop13xx_irq_unmask0(unsigned int irq)
+iop13xx_irq_unmask0(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	write_intctl_0(read_intctl_0() | (1 << (irq - 0)));
 }
 
 static void
-iop13xx_irq_unmask1(unsigned int irq)
+iop13xx_irq_unmask1(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	write_intctl_1(read_intctl_1() | (1 << (irq - 32)));
 }
 
 static void
-iop13xx_irq_unmask2(unsigned int irq)
+iop13xx_irq_unmask2(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	write_intctl_2(read_intctl_2() | (1 << (irq - 64)));
 }
 
 static void
-iop13xx_irq_unmask3(unsigned int irq)
+iop13xx_irq_unmask3(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	write_intctl_3(read_intctl_3() | (1 << (irq - 96)));
 }
 
arch/arm/mach-iop13xx/msi.c +1 -1
Index: linux-2.6/arch/arm/mach-iop13xx/msi.c
===================================================================
@@ -156,7 +156,7 @@ void arch_teardown_msi_irq(unsigned int
 	destroy_irq(irq);
 }
 
-static void iop13xx_msi_nop(unsigned int irq)
+static void iop13xx_msi_nop(struct irq_desc *desc)
 {
 	return;
 }
arch/arm/mach-iop32x/irq.c +4 -2
Index: linux-2.6/arch/arm/mach-iop32x/irq.c
===================================================================
@@ -32,15 +32,17 @@ static void intstr_write(u32 val)
 }
 
 static void
-iop32x_irq_mask(unsigned int irq)
+iop32x_irq_mask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	iop32x_mask &= ~(1 << irq);
 	intctl_write(iop32x_mask);
 }
 
 static void
-iop32x_irq_unmask(unsigned int irq)
+iop32x_irq_unmask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	iop32x_mask |= 1 << irq;
 	intctl_write(iop32x_mask);
 }
arch/arm/mach-ixp2000/core.c +20 -10
Index: linux-2.6/arch/arm/mach-ixp2000/core.c
===================================================================
@@ -309,8 +309,9 @@ static void ixp2000_GPIO_irq_handler(uns
 	}
 }
 
-static int ixp2000_GPIO_irq_type(unsigned int irq, unsigned int type)
+static int ixp2000_GPIO_irq_type(struct irq_desc *desc, unsigned int type)
 {
+	unsigned int irq = desc->irq;
 	int line = irq - IRQ_IXP2000_GPIO0;
 
 	/*
@@ -342,8 +343,9 @@ static int ixp2000_GPIO_irq_type(unsigne
 	return 0;
 }
 
-static void ixp2000_GPIO_irq_mask_ack(unsigned int irq)
+static void ixp2000_GPIO_irq_mask_ack(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	ixp2000_reg_write(IXP2000_GPIO_INCR, (1 << (irq - IRQ_IXP2000_GPIO0)));
 
 	ixp2000_reg_write(IXP2000_GPIO_EDSR, (1 << (irq - IRQ_IXP2000_GPIO0)));
@@ -351,13 +353,15 @@ static void ixp2000_GPIO_irq_mask_ack(un
 	ixp2000_reg_wrb(IXP2000_GPIO_INST, (1 << (irq - IRQ_IXP2000_GPIO0)));
 }
 
-static void ixp2000_GPIO_irq_mask(unsigned int irq)
+static void ixp2000_GPIO_irq_mask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	ixp2000_reg_wrb(IXP2000_GPIO_INCR, (1 << (irq - IRQ_IXP2000_GPIO0)));
 }
 
-static void ixp2000_GPIO_irq_unmask(unsigned int irq)
+static void ixp2000_GPIO_irq_unmask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	ixp2000_reg_write(IXP2000_GPIO_INSR, (1 << (irq - IRQ_IXP2000_GPIO0)));
 }
 
@@ -368,8 +372,9 @@ static struct irq_chip ixp2000_GPIO_irq_
 	.set_type	= ixp2000_GPIO_irq_type,
 };
 
-static void ixp2000_pci_irq_mask(unsigned int irq)
+static void ixp2000_pci_irq_mask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned long temp = *IXP2000_PCI_XSCALE_INT_ENABLE;
 	if (irq == IRQ_IXP2000_PCIA)
 		ixp2000_reg_wrb(IXP2000_PCI_XSCALE_INT_ENABLE, (temp & ~(1 << 26)));
@@ -377,8 +382,9 @@ static void ixp2000_pci_irq_mask(unsigne
 		ixp2000_reg_wrb(IXP2000_PCI_XSCALE_INT_ENABLE, (temp & ~(1 << 27)));
 }
 
-static void ixp2000_pci_irq_unmask(unsigned int irq)
+static void ixp2000_pci_irq_unmask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned long temp = *IXP2000_PCI_XSCALE_INT_ENABLE;
 	if (irq == IRQ_IXP2000_PCIA)
 		ixp2000_reg_write(IXP2000_PCI_XSCALE_INT_ENABLE, (temp | (1 << 26)));
@@ -401,14 +407,16 @@ static void ixp2000_err_irq_handler(unsi
 	}
 }
 
-static void ixp2000_err_irq_mask(unsigned int irq)
+static void ixp2000_err_irq_mask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	ixp2000_reg_write(IXP2000_IRQ_ERR_ENABLE_CLR,
 			(1 << (irq - IRQ_IXP2000_DRAM0_MIN_ERR)));
 }
 
-static void ixp2000_err_irq_unmask(unsigned int irq)
+static void ixp2000_err_irq_unmask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	ixp2000_reg_write(IXP2000_IRQ_ERR_ENABLE_SET,
 			(1 << (irq - IRQ_IXP2000_DRAM0_MIN_ERR)));
 }
@@ -425,13 +433,15 @@ static struct irq_chip ixp2000_pci_irq_c
 	.unmask	= ixp2000_pci_irq_unmask
 };
 
-static void ixp2000_irq_mask(unsigned int irq)
+static void ixp2000_irq_mask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	ixp2000_reg_wrb(IXP2000_IRQ_ENABLE_CLR, (1 << irq));
 }
 
-static void ixp2000_irq_unmask(unsigned int irq)
+static void ixp2000_irq_unmask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	ixp2000_reg_write(IXP2000_IRQ_ENABLE_SET, (1 << irq));
 }
 
arch/arm/mach-ixp2000/ixdp2x00.c +6 -4
Index: linux-2.6/arch/arm/mach-ixp2000/ixdp2x00.c
===================================================================
@@ -64,8 +64,9 @@ static struct slowport_cfg slowport_cpld
 };
 #endif
 
-static void ixdp2x00_irq_mask(unsigned int irq)
+static void ixdp2x00_irq_mask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned long dummy;
 	static struct slowport_cfg old_cfg;
 
@@ -88,8 +89,9 @@ static void ixdp2x00_irq_mask(unsigned i
 #endif
 }
 
-static void ixdp2x00_irq_unmask(unsigned int irq)
+static void ixdp2x00_irq_unmask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned long dummy;
 	static struct slowport_cfg old_cfg;
 
@@ -112,7 +114,7 @@ static void ixdp2x00_irq_handler(unsigne
 	static struct slowport_cfg old_cfg;
 	int i;
 
-	desc->chip->mask(irq);
+	desc->chip->mask(desc);
 
 #ifdef CONFIG_ARCH_IXDP2400
 	if (machine_is_ixdp2400())
@@ -134,7 +136,7 @@ static void ixdp2x00_irq_handler(unsigne
 		}
 	}
 
-	desc->chip->unmask(irq);
+	desc->chip->unmask(desc);
 }
 
 static struct irq_chip ixdp2x00_cpld_irq_chip = {
arch/arm/mach-ixp2000/ixdp2x01.c +6 -4
Index: linux-2.6/arch/arm/mach-ixp2000/ixdp2x01.c
===================================================================
@@ -49,14 +49,16 @@
 /*************************************************************************
  * IXDP2x01 IRQ Handling
  *************************************************************************/
-static void ixdp2x01_irq_mask(unsigned int irq)
+static void ixdp2x01_irq_mask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	ixp2000_reg_wrb(IXDP2X01_INT_MASK_SET_REG,
 				IXP2000_BOARD_IRQ_MASK(irq));
 }
 
-static void ixdp2x01_irq_unmask(unsigned int irq)
+static void ixdp2x01_irq_unmask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	ixp2000_reg_write(IXDP2X01_INT_MASK_CLR_REG,
 				IXP2000_BOARD_IRQ_MASK(irq));
 }
@@ -68,7 +70,7 @@ static void ixdp2x01_irq_handler(unsigne
 	u32 ex_interrupt;
 	int i;
 
-	desc->chip->mask(irq);
+	desc->chip->mask(desc);
 
 	ex_interrupt = *IXDP2X01_INT_STAT_REG & valid_irq_mask;
 
@@ -84,7 +86,7 @@ static void ixdp2x01_irq_handler(unsigne
 		}
 	}
 
-	desc->chip->unmask(irq);
+	desc->chip->unmask(desc);
 }
 
 static struct irq_chip ixdp2x01_irq_chip = {
arch/arm/mach-ixp23xx/core.c +15 -10
Index: linux-2.6/arch/arm/mach-ixp23xx/core.c
===================================================================
@@ -111,8 +111,9 @@ enum ixp23xx_irq_type {
 
 static void ixp23xx_config_irq(unsigned int, enum ixp23xx_irq_type);
 
-static int ixp23xx_irq_set_type(unsigned int irq, unsigned int type)
+static int ixp23xx_irq_set_type(struct irq_desc *desc, unsigned int type)
 {
+	unsigned int irq = desc->irq;
 	int line = irq - IRQ_IXP23XX_GPIO6 + 6;
 	u32 int_style;
 	enum ixp23xx_irq_type irq_type;
@@ -173,8 +174,9 @@ static int ixp23xx_irq_set_type(unsigned
 	return 0;
 }
 
-static void ixp23xx_irq_mask(unsigned int irq)
+static void ixp23xx_irq_mask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	volatile unsigned long *intr_reg;
 
 	if (irq >= 56)
@@ -184,8 +186,9 @@ static void ixp23xx_irq_mask(unsigned in
 	*intr_reg &= ~(1 << (irq % 32));
 }
 
-static void ixp23xx_irq_ack(unsigned int irq)
+static void ixp23xx_irq_ack(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	int line = irq - IRQ_IXP23XX_GPIO6 + 6;
 
 	if ((line < 6) || (line > 15))
@@ -198,11 +201,12 @@ static void ixp23xx_irq_ack(unsigned int
  * Level triggered interrupts on GPIO lines can only be cleared when the
  * interrupt condition disappears.
  */
-static void ixp23xx_irq_level_unmask(unsigned int irq)
+static void ixp23xx_irq_level_unmask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	volatile unsigned long *intr_reg;
 
-	ixp23xx_irq_ack(irq);
+	ixp23xx_irq_ack(desc);
 
 	if (irq >= 56)
 		irq += 8;
@@ -211,8 +215,9 @@ static void ixp23xx_irq_level_unmask(uns
 	*intr_reg |= (1 << (irq % 32));
 }
 
-static void ixp23xx_irq_edge_unmask(unsigned int irq)
+static void ixp23xx_irq_edge_unmask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	volatile unsigned long *intr_reg;
 
 	if (irq >= 56)
@@ -236,12 +241,12 @@ static struct irq_chip ixp23xx_irq_edge_
 	.set_type	= ixp23xx_irq_set_type
 };
 
-static void ixp23xx_pci_irq_mask(unsigned int irq)
+static void ixp23xx_pci_irq_mask(struct irq_desc *desc)
 {
 	*IXP23XX_PCI_XSCALE_INT_ENABLE &= ~(1 << (IRQ_IXP23XX_INTA + 27 - irq));
 }
 
-static void ixp23xx_pci_irq_unmask(unsigned int irq)
+static void ixp23xx_pci_irq_unmask(struct irq_desc *desc)
 {
 	*IXP23XX_PCI_XSCALE_INT_ENABLE |= (1 << (IRQ_IXP23XX_INTA + 27 - irq));
 }
@@ -256,7 +261,7 @@ static void pci_handler(unsigned int irq
 
 	pci_interrupt = *IXP23XX_PCI_XSCALE_INT_STATUS;
 
-	desc->chip->ack(irq);
+	desc->chip->ack(desc);
 
 	/* See which PCI_INTA, or PCI_INTB interrupted */
 	if (pci_interrupt & (1 << 26)) {
@@ -269,7 +274,7 @@ static void pci_handler(unsigned int irq
 
 	generic_handle_irq(irqno);
 
-	desc->chip->unmask(irq);
+	desc->chip->unmask(desc);
 }
 
 static struct irq_chip ixp23xx_pci_irq_chip = {
arch/arm/mach-ixp23xx/ixdp2351.c +12 -8
Index: linux-2.6/arch/arm/mach-ixp23xx/ixdp2351.c
===================================================================
@@ -48,13 +48,15 @@
 /*
  * IXDP2351 Interrupt Handling
  */
-static void ixdp2351_inta_mask(unsigned int irq)
+static void ixdp2351_inta_mask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	*IXDP2351_CPLD_INTA_MASK_SET_REG = IXDP2351_INTA_IRQ_MASK(irq);
 }
 
-static void ixdp2351_inta_unmask(unsigned int irq)
+static void ixdp2351_inta_unmask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	*IXDP2351_CPLD_INTA_MASK_CLR_REG = IXDP2351_INTA_IRQ_MASK(irq);
 }
 
@@ -64,7 +66,7 @@ static void ixdp2351_inta_handler(unsign
 		*IXDP2351_CPLD_INTA_STAT_REG & IXDP2351_INTA_IRQ_VALID;
 	int i;
 
-	desc->chip->mask(irq);
+	desc->chip->mask(desc);
 
 	for (i = 0; i < IXDP2351_INTA_IRQ_NUM; i++) {
 		if (ex_interrupt & (1 << i)) {
@@ -74,7 +76,7 @@ static void ixdp2351_inta_handler(unsign
 		}
 	}
 
-	desc->chip->unmask(irq);
+	desc->chip->unmask(desc);
 }
 
 static struct irq_chip ixdp2351_inta_chip = {
@@ -83,13 +85,15 @@ static struct irq_chip ixdp2351_inta_chi
 	.unmask	= ixdp2351_inta_unmask
 };
 
-static void ixdp2351_intb_mask(unsigned int irq)
+static void ixdp2351_intb_mask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	*IXDP2351_CPLD_INTB_MASK_SET_REG = IXDP2351_INTB_IRQ_MASK(irq);
 }
 
-static void ixdp2351_intb_unmask(unsigned int irq)
+static void ixdp2351_intb_unmask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	*IXDP2351_CPLD_INTB_MASK_CLR_REG = IXDP2351_INTB_IRQ_MASK(irq);
 }
 
@@ -99,7 +103,7 @@ static void ixdp2351_intb_handler(unsign
 		*IXDP2351_CPLD_INTB_STAT_REG & IXDP2351_INTB_IRQ_VALID;
 	int i;
 
-	desc->chip->ack(irq);
+	desc->chip->ack(desc);
 
 	for (i = 0; i < IXDP2351_INTB_IRQ_NUM; i++) {
 		if (ex_interrupt & (1 << i)) {
@@ -109,7 +113,7 @@ static void ixdp2351_intb_handler(unsign
 		}
 	}
 
-	desc->chip->unmask(irq);
+	desc->chip->unmask(desc);
 }
 
 static struct irq_chip ixdp2351_intb_chip = {
arch/arm/mach-ixp4xx/common.c +9 -5
Index: linux-2.6/arch/arm/mach-ixp4xx/common.c
===================================================================
@@ -128,8 +128,9 @@ int irq_to_gpio(unsigned int irq)
 }
 EXPORT_SYMBOL(irq_to_gpio);
 
-static int ixp4xx_set_irq_type(unsigned int irq, unsigned int type)
+static int ixp4xx_set_irq_type(struct irq_desc *desc, unsigned int type)
 {
+	unsigned int irq = desc->irq;
 	int line = irq2gpio[irq];
 	u32 int_style;
 	enum ixp4xx_irq_type irq_type;
@@ -193,16 +194,18 @@ static int ixp4xx_set_irq_type(unsigned
 	return 0;
 }
 
-static void ixp4xx_irq_mask(unsigned int irq)
+static void ixp4xx_irq_mask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	if ((cpu_is_ixp46x() || cpu_is_ixp43x()) && irq >= 32)
 		*IXP4XX_ICMR2 &= ~(1 << (irq - 32));
 	else
 		*IXP4XX_ICMR &= ~(1 << irq);
 }
 
-static void ixp4xx_irq_ack(unsigned int irq)
+static void ixp4xx_irq_ack(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	int line = (irq < 32) ? irq2gpio[irq] : -1;
 
 	if (line >= 0)
@@ -213,10 +216,11 @@ static void ixp4xx_irq_ack(unsigned int
  * Level triggered interrupts on GPIO lines can only be cleared when the
  * interrupt condition disappears.
  */
-static void ixp4xx_irq_unmask(unsigned int irq)
+static void ixp4xx_irq_unmask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	if (!(ixp4xx_irq_edge & (1 << irq)))
-		ixp4xx_irq_ack(irq);
+		ixp4xx_irq_ack(desc);
 
 	if ((cpu_is_ixp46x() || cpu_is_ixp43x()) && irq >= 32)
 		*IXP4XX_ICMR2 |= (1 << (irq - 32));
arch/arm/mach-ks8695/irq.c +16 -12
Index: linux-2.6/arch/arm/mach-ks8695/irq.c
===================================================================
@@ -34,29 +34,32 @@
 #include <mach/regs-irq.h>
 #include <mach/regs-gpio.h>
 
-static void ks8695_irq_mask(unsigned int irqno)
+static void ks8695_irq_mask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned long inten;
 
 	inten = __raw_readl(KS8695_IRQ_VA + KS8695_INTEN);
-	inten &= ~(1 << irqno);
+	inten &= ~(1 << irq);
 
 	__raw_writel(inten, KS8695_IRQ_VA + KS8695_INTEN);
 }
 
-static void ks8695_irq_unmask(unsigned int irqno)
+static void ks8695_irq_unmask(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	unsigned long inten;
 
 	inten = __raw_readl(KS8695_IRQ_VA + KS8695_INTEN);
-	inten |= (1 << irqno);
+	inten |= (1 << irq);
 
 	__raw_writel(inten, KS8695_IRQ_VA + KS8695_INTEN);
 }
 
-static void ks8695_irq_ack(unsigned int irqno)
+static void ks8695_irq_ack(struct irq_desc *desc)
 {
-	__raw_writel((1 << irqno), KS8695_IRQ_VA + KS8695_INTST);
+	unsigned int irq = desc->irq;
+	__raw_writel((1 << irq), KS8695_IRQ_VA + KS8695_INTST);
 }
 
 
@@ -64,8 +67,9 @@ static struct irq_chip ks8695_irq_level_
 static struct irq_chip ks8695_irq_edge_chip;
 
 
-static int ks8695_irq_set_type(unsigned int irqno, unsigned int type)
+static int ks8695_irq_set_type(struct irq_desc *desc, unsigned int type)
 {
+	unsigned int irq = desc->irq;
 	unsigned long ctrl, mode;
 	unsigned short level_triggered = 0;
 
@@ -93,7 +97,7 @@ static int ks8695_irq_set_type(unsigned
 			return -EINVAL;
 	}
 
-	switch (irqno) {
+	switch (irq) {
 		case KS8695_IRQ_EXTERN0:
 			ctrl &= ~IOPC_IOEINT0TM;
 			ctrl |= IOPC_IOEINT0_MODE(mode);
@@ -115,12 +119,12 @@ static int ks8695_irq_set_type(unsigned
 	}
 
 	if (level_triggered) {
-		set_irq_chip(irqno, &ks8695_irq_level_chip);
-		set_irq_handler(irqno, handle_level_irq);
+		set_irq_chip(irq, &ks8695_irq_level_chip);
+		set_irq_handler(irq, handle_level_irq);
 	}
 	else {
-		set_irq_chip(irqno, &ks8695_irq_edge_chip);
-		set_irq_handler(irqno, handle_edge_irq);
+		set_irq_chip(irq, &ks8695_irq_edge_chip);
+		set_irq_handler(irq, handle_edge_irq);
 	}
 
 	__raw_writel(ctrl, KS8695_GPIO_VA + KS8695_IOPC);
arch/arm/mach-l7200/core.c +4 -2
Index: linux-2.6/arch/arm/mach-l7200/core.c
===================================================================
@@ -45,13 +45,15 @@
 #define FIQ_SOFT	(*(volatile unsigned long *) (IRQ_BASE + 0x110))
 #define FIQ_SOURCESEL	(*(volatile unsigned long *) (IRQ_BASE + 0x118))
 
-static void l7200_mask_irq(unsigned int irq)
+static void l7200_mask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	IRQ_ENABLECLEAR = 1 << irq;
 }
 
-static void l7200_unmask_irq(unsigned int irq)
+static void l7200_unmask_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	IRQ_ENABLE = 1 << irq;
 }
 
arch/arm/mach-lh7a40x/arch-kev7a400.c +6 -3
Index: linux-2.6/arch/arm/mach-lh7a40x/arch-kev7a400.c
===================================================================
@@ -46,19 +46,22 @@ void __init kev7a400_map_io(void)
 
 static u16 CPLD_IRQ_mask;	/* Mask for CPLD IRQs, 1 == unmasked */
 
-static void kev7a400_ack_cpld_irq (u32 irq)
+static void kev7a400_ack_cpld_irq(u32 irq, struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	CPLD_CL_INT = 1 << (irq - IRQ_KEV7A400_CPLD);
 }
 
-static void kev7a400_mask_cpld_irq (u32 irq)
+static void kev7a400_mask_cpld_irq(u32 irq, struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	CPLD_IRQ_mask &= ~(1 << (irq - IRQ_KEV7A400_CPLD));
 	CPLD_WR_PB_INT_MASK = CPLD_IRQ_mask;
 }
 
-static void kev7a400_unmask_cpld_irq (u32 irq)
+static void kev7a400_unmask_cpld_irq(u32 irq, struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	CPLD_IRQ_mask |= 1 << (irq - IRQ_KEV7A400_CPLD);
 	CPLD_WR_PB_INT_MASK = CPLD_IRQ_mask;
 }
arch/arm/mach-lh7a40x/arch-lpd7a40x.c +8 -5
Index: linux-2.6/arch/arm/mach-lh7a40x/arch-lpd7a40x.c
===================================================================
@@ -159,8 +159,9 @@ static void __init lpd7a40x_init (void)
 #endif
 }
 
-static void lh7a40x_ack_cpld_irq (u32 irq)
+static void lh7a40x_ack_cpld_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	/* CPLD doesn't have ack capability, but some devices may */
 
 #if defined (CPLD_INTMASK_TOUCH)
@@ -172,8 +173,9 @@ static void lh7a40x_ack_cpld_irq (u32 ir
 #endif
 }
 
-static void lh7a40x_mask_cpld_irq (u32 irq)
+static void lh7a40x_mask_cpld_irq(struct irq_desc *desc)
 {
+	unsigned int irq = desc->irq;
 	switch (irq) {
 	case IRQ_LPD7A40X_ETH_INT:
 		CPLD_INTERRUPTS |= CPLD_INTMASK_ETHERNET;
@@ -186,8 +188,9 @@ static void lh7a40x_mask_cpld_irq (u32 i
 	}
 }
[… more lines in the raw message]

Lines of this file are not shown. View the raw message.

arch/arm/mach-lh7a40x/irq-lh7a400.c +6 -3
Index: linux-2.6/arch/arm/mach-lh7a40x/irq-lh7a400.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-lh7a40x/irq-lh7a404.c +12 -6
Index: linux-2.6/arch/arm/mach-lh7a40x/irq-lh7a404.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-lh7a40x/irq-lpd7a40x.c +7 -5
Index: linux-2.6/arch/arm/mach-lh7a40x/irq-lpd7a40x.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-mmp/irq.c +5 -3
Index: linux-2.6/arch/arm/mach-mmp/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-mx3/mx31ads.c +6 -3
Index: linux-2.6/arch/arm/mach-mx3/mx31ads.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-mx3/mx31pdk.c +6 -3
Index: linux-2.6/arch/arm/mach-mx3/mx31pdk.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-netx/generic.c +8 -4
Index: linux-2.6/arch/arm/mach-netx/generic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-nomadik/gpio.c +15 -11
Index: linux-2.6/arch/arm/mach-nomadik/gpio.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-ns9xxx/board-a9m9750dev.c +9 -6
Index: linux-2.6/arch/arm/mach-ns9xxx/board-a9m9750dev.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-ns9xxx/irq.c +9 -6
Index: linux-2.6/arch/arm/mach-ns9xxx/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-omap1/fpga.c +7 -6
Index: linux-2.6/arch/arm/mach-omap1/fpga.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-omap1/irq.c +14 -10
Index: linux-2.6/arch/arm/mach-omap1/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-pnx4008/irq.c +8 -4
Index: linux-2.6/arch/arm/mach-pnx4008/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-pxa/balloon3.c +5 -3
Index: linux-2.6/arch/arm/mach-pxa/balloon3.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-pxa/irq.c +12 -6
Index: linux-2.6/arch/arm/mach-pxa/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-pxa/lpd270.c +4 -2
Index: linux-2.6/arch/arm/mach-pxa/lpd270.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-pxa/lubbock.c +4 -2
Index: linux-2.6/arch/arm/mach-pxa/lubbock.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-pxa/mainstone.c +4 -2
Index: linux-2.6/arch/arm/mach-pxa/mainstone.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-pxa/pcm990-baseboard.c +4 -2
Index: linux-2.6/arch/arm/mach-pxa/pcm990-baseboard.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-pxa/pxa3xx.c +6 -3
Index: linux-2.6/arch/arm/mach-pxa/pxa3xx.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-pxa/viper.c +6 -3
Index: linux-2.6/arch/arm/mach-pxa/viper.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-pxa/zeus.c +7 -4
Index: linux-2.6/arch/arm/mach-pxa/zeus.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-rpc/irq.c +18 -9
Index: linux-2.6/arch/arm/mach-rpc/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-s3c2410/bast-irq.c +10 -10
Index: linux-2.6/arch/arm/mach-s3c2410/bast-irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-s3c2412/irq.c +21 -14
Index: linux-2.6/arch/arm/mach-s3c2412/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-s3c2440/irq.c +9 -6
Index: linux-2.6/arch/arm/mach-s3c2440/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-s3c2443/irq.c +43 -28

71 lines not on this page · raw message

arch/arm/mach-sa1100/irq.c +24 -12
Index: linux-2.6/arch/arm/mach-sa1100/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-sa1100/neponset.c +4 -4
Index: linux-2.6/arch/arm/mach-sa1100/neponset.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-shark/irq.c +7 -3
Index: linux-2.6/arch/arm/mach-shark/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-stmp378x/stmp378x.c +6 -3
Index: linux-2.6/arch/arm/mach-stmp378x/stmp378x.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-stmp37xx/stmp37xx.c +6 -3
Index: linux-2.6/arch/arm/mach-stmp37xx/stmp37xx.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-versatile/core.c +4 -2
Index: linux-2.6/arch/arm/mach-versatile/core.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/mach-w90x900/irq.c +5 -3
Index: linux-2.6/arch/arm/mach-w90x900/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/oprofile/op_model_mpcore.c +2 -2
Index: linux-2.6/arch/arm/oprofile/op_model_mpcore.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-mxc/gpio.c +8 -4
Index: linux-2.6/arch/arm/plat-mxc/gpio.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-mxc/irq.c +4 -2
Index: linux-2.6/arch/arm/plat-mxc/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-omap/gpio.c +22 -14
Index: linux-2.6/arch/arm/plat-omap/gpio.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-orion/gpio.c +11 -10
Index: linux-2.6/arch/arm/plat-orion/gpio.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-orion/irq.c +6 -4
Index: linux-2.6/arch/arm/plat-orion/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-pxa/gpio.c +8 -4
Index: linux-2.6/arch/arm/plat-pxa/gpio.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-s3c24xx/irq.c +66 -46

112 lines not on this page · raw message

arch/arm/plat-s3c24xx/s3c244x-irq.c +9 -6
Index: linux-2.6/arch/arm/plat-s3c24xx/s3c244x-irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-s3c64xx/irq-eint.c +12 -7
Index: linux-2.6/arch/arm/plat-s3c64xx/irq-eint.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-s3c64xx/irq.c +14 -7
Index: linux-2.6/arch/arm/plat-s3c64xx/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-s5pc1xx/irq-eint.c +25 -17

42 lines not on this page · raw message

arch/arm/plat-s5pc1xx/irq-gpio.c +11 -7
Index: linux-2.6/arch/arm/plat-s5pc1xx/irq-gpio.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-s5pc1xx/irq.c +14 -7
Index: linux-2.6/arch/arm/plat-s5pc1xx/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-stmp3xxx/irq.c +1 -1
Index: linux-2.6/arch/arm/plat-stmp3xxx/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/arm/plat-stmp3xxx/pinmux.c +8 -4
Index: linux-2.6/arch/arm/plat-stmp3xxx/pinmux.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/avr32/mach-at32ap/extint.c +14 -12
Index: linux-2.6/arch/avr32/mach-at32ap/extint.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/avr32/mach-at32ap/pio.c +6 -3
Index: linux-2.6/arch/avr32/mach-at32ap/pio.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/blackfin/include/asm/ipipe.h +2 -2
Index: linux-2.6/arch/blackfin/include/asm/ipipe.h
===================================================================

Lines of this file are not shown. View the raw message.

arch/blackfin/mach-common/ints-priority.c +33 -20

53 lines not on this page · raw message

arch/blackfin/mach-common/smp.c +1 -1
Index: linux-2.6/arch/blackfin/mach-common/smp.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/cris/arch-v10/kernel/irq.c +9 -7
Index: linux-2.6/arch/cris/arch-v10/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/frv/kernel/irq-mb93091.c +8 -4
Index: linux-2.6/arch/frv/kernel/irq-mb93091.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/frv/kernel/irq-mb93093.c +8 -4
Index: linux-2.6/arch/frv/kernel/irq-mb93093.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/frv/kernel/irq-mb93493.c +5 -3
Index: linux-2.6/arch/frv/kernel/irq-mb93493.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/frv/kernel/irq.c +16 -11
Index: linux-2.6/arch/frv/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/h8300/kernel/irq.c +9 -5
Index: linux-2.6/arch/h8300/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/ia64/hp/sim/hpsim_irq.c +3 -3
Index: linux-2.6/arch/ia64/hp/sim/hpsim_irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/ia64/kernel/iosapic.c +26 -19

45 lines not on this page · raw message

arch/ia64/kernel/irq.c +3 -3
Index: linux-2.6/arch/ia64/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/ia64/kernel/irq_lsapic.c +5 -3
Index: linux-2.6/arch/ia64/kernel/irq_lsapic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/ia64/kernel/msi_ia64.c +11 -7
Index: linux-2.6/arch/ia64/kernel/msi_ia64.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/ia64/kernel/smpboot.c +3 -3
Index: linux-2.6/arch/ia64/kernel/smpboot.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/ia64/sn/kernel/irq.c +15 -10
Index: linux-2.6/arch/ia64/sn/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/ia64/sn/kernel/msi_sn.c +6 -4
Index: linux-2.6/arch/ia64/sn/kernel/msi_sn.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m32r/platforms/m32104ut/setup.c +11 -8
Index: linux-2.6/arch/m32r/platforms/m32104ut/setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m32r/platforms/m32700ut/setup.c +52 -40

92 lines not on this page · raw message

arch/m32r/platforms/mappi/setup.c +12 -9
Index: linux-2.6/arch/m32r/platforms/mappi/setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m32r/platforms/mappi2/setup.c +12 -9
Index: linux-2.6/arch/m32r/platforms/mappi2/setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m32r/platforms/mappi3/setup.c +12 -9
Index: linux-2.6/arch/m32r/platforms/mappi3/setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m32r/platforms/oaks32r/setup.c +12 -9
Index: linux-2.6/arch/m32r/platforms/oaks32r/setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m32r/platforms/opsput/setup.c +50 -38

88 lines not on this page · raw message

arch/m32r/platforms/usrv/setup.c +24 -18

42 lines not on this page · raw message

arch/m68knommu/platform/5249/intc2.c +6 -3
Index: linux-2.6/arch/m68knommu/platform/5249/intc2.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m68knommu/platform/5272/intc.c +7 -4
Index: linux-2.6/arch/m68knommu/platform/5272/intc.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m68knommu/platform/68328/ints.c +4 -2
Index: linux-2.6/arch/m68knommu/platform/68328/ints.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m68knommu/platform/68360/ints.c +6 -3
Index: linux-2.6/arch/m68knommu/platform/68360/ints.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m68knommu/platform/coldfire/intc-2.c +4 -2
Index: linux-2.6/arch/m68knommu/platform/coldfire/intc-2.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m68knommu/platform/coldfire/intc-simr.c +5 -2
Index: linux-2.6/arch/m68knommu/platform/coldfire/intc-simr.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/m68knommu/platform/coldfire/intc.c +5 -3
Index: linux-2.6/arch/m68knommu/platform/coldfire/intc.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/microblaze/kernel/intc.c +10 -5
Index: linux-2.6/arch/microblaze/kernel/intc.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/alchemy/common/irq.c +26 -17

43 lines not on this page · raw message

arch/mips/alchemy/devboards/pb1200/irqmap.c +13 -10
Index: linux-2.6/arch/mips/alchemy/devboards/pb1200/irqmap.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/ar7/irq.c +12 -6
Index: linux-2.6/arch/mips/ar7/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/bcm63xx/irq.c +27 -15

42 lines not on this page · raw message

arch/mips/cavium-octeon/octeon-irq.c +44 -26

70 lines not on this page · raw message

arch/mips/dec/ioasic-irq.c +12 -9
Index: linux-2.6/arch/mips/dec/ioasic-irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/dec/kn02-irq.c +6 -4
Index: linux-2.6/arch/mips/dec/kn02-irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/emma/markeins/irq.c +12 -8
Index: linux-2.6/arch/mips/emma/markeins/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/jazz/irq.c +4 -2
Index: linux-2.6/arch/mips/jazz/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/kernel/i8259.c +9 -6
Index: linux-2.6/arch/mips/kernel/i8259.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/kernel/irq-gic.c +11 -6
Index: linux-2.6/arch/mips/kernel/irq-gic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/kernel/irq-gt641xx.c +7 -4
Index: linux-2.6/arch/mips/kernel/irq-gt641xx.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/kernel/irq-msc01.c +13 -9
Index: linux-2.6/arch/mips/kernel/irq-msc01.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/kernel/irq-rm7000.c +4 -2
Index: linux-2.6/arch/mips/kernel/irq-rm7000.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/kernel/irq-rm9000.c +13 -11
Index: linux-2.6/arch/mips/kernel/irq-rm9000.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/kernel/irq_cpu.c +9 -5
Index: linux-2.6/arch/mips/kernel/irq_cpu.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/kernel/irq_txx9.c +9 -5
Index: linux-2.6/arch/mips/kernel/irq_txx9.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/lasat/interrupt.c +8 -6
Index: linux-2.6/arch/mips/lasat/interrupt.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/loongson/common/bonito-irq.c +4 -2
Index: linux-2.6/arch/mips/loongson/common/bonito-irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/nxp/pnx833x/common/interrupts.c +21 -12
Index: linux-2.6/arch/mips/nxp/pnx833x/common/interrupts.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/nxp/pnx8550/common/int.c +6 -4
Index: linux-2.6/arch/mips/nxp/pnx8550/common/int.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/pmc-sierra/msp71xx/msp_irq_cic.c +6 -4
Index: linux-2.6/arch/mips/pmc-sierra/msp71xx/msp_irq_cic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/pmc-sierra/msp71xx/msp_irq_slp.c +6 -3
Index: linux-2.6/arch/mips/pmc-sierra/msp71xx/msp_irq_slp.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/powertv/asic/irq_asic.c +4 -2
Index: linux-2.6/arch/mips/powertv/asic/irq_asic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/rb532/irq.c +18 -14
Index: linux-2.6/arch/mips/rb532/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/sgi-ip22/ip22-int.c +16 -8
Index: linux-2.6/arch/mips/sgi-ip22/ip22-int.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/sgi-ip27/ip27-irq.c +8 -4
Index: linux-2.6/arch/mips/sgi-ip27/ip27-irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/sgi-ip27/ip27-timer.c +2 -2
Index: linux-2.6/arch/mips/sgi-ip27/ip27-timer.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/sgi-ip32/ip32-irq.c +39 -29

68 lines not on this page · raw message

arch/mips/sibyte/bcm1480/irq.c +16 -12
Index: linux-2.6/arch/mips/sibyte/bcm1480/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/sibyte/sb1250/irq.c +16 -12
Index: linux-2.6/arch/mips/sibyte/sb1250/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/sni/a20r.c +7 -5
Index: linux-2.6/arch/mips/sni/a20r.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/sni/pcimt.c +8 -6
Index: linux-2.6/arch/mips/sni/pcimt.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/sni/pcit.c +7 -5
Index: linux-2.6/arch/mips/sni/pcit.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/sni/rm200.c +13 -8
Index: linux-2.6/arch/mips/sni/rm200.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/txx9/generic/irq_tx4939.c +9 -5
Index: linux-2.6/arch/mips/txx9/generic/irq_tx4939.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/txx9/jmr3927/irq.c +4 -2
Index: linux-2.6/arch/mips/txx9/jmr3927/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/txx9/rbtx4927/irq.c +6 -4
Index: linux-2.6/arch/mips/txx9/rbtx4927/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/txx9/rbtx4938/irq.c +6 -4
Index: linux-2.6/arch/mips/txx9/rbtx4938/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/txx9/rbtx4939/irq.c +4 -2
Index: linux-2.6/arch/mips/txx9/rbtx4939/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/vr41xx/common/icu.c +8 -4
Index: linux-2.6/arch/mips/vr41xx/common/icu.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mips/vr41xx/common/irq.c +4 -4
Index: linux-2.6/arch/mips/vr41xx/common/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mn10300/kernel/irq.c +14 -5
Index: linux-2.6/arch/mn10300/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/mn10300/kernel/mn10300-serial.c +3 -2
Index: linux-2.6/arch/mn10300/kernel/mn10300-serial.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/parisc/include/asm/irq.h +2 -2
Index: linux-2.6/arch/parisc/include/asm/irq.h
===================================================================

Lines of this file are not shown. View the raw message.

arch/parisc/kernel/irq.c +18 -13
Index: linux-2.6/arch/parisc/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/include/asm/mpic.h +3 -3
Index: linux-2.6/arch/powerpc/include/asm/mpic.h
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/include/asm/qe_ic.h +3 -3
Index: linux-2.6/arch/powerpc/include/asm/qe_ic.h
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/kernel/crash.c +2 -2
Index: linux-2.6/arch/powerpc/kernel/crash.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/kernel/irq.c +1 -1
Index: linux-2.6/arch/powerpc/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/512x/mpc5121_ads_cpld.c +4 -2
Index: linux-2.6/arch/powerpc/platforms/512x/mpc5121_ads_cpld.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/52xx/media5200.c +9 -7
Index: linux-2.6/arch/powerpc/platforms/52xx/media5200.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/52xx/mpc52xx_pic.c +23 -12
Index: linux-2.6/arch/powerpc/platforms/52xx/mpc52xx_pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/82xx/pq2ads-pci-pic.c +4 -2
Index: linux-2.6/arch/powerpc/platforms/82xx/pq2ads-pci-pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/85xx/ksi8560.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/85xx/ksi8560.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/85xx/mpc85xx_ads.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/85xx/mpc85xx_ads.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/85xx/mpc85xx_ds.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/85xx/mpc85xx_ds.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/85xx/sbc8560.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/85xx/sbc8560.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/85xx/socrates_fpga_pic.c +13 -7
Index: linux-2.6/arch/powerpc/platforms/85xx/socrates_fpga_pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/85xx/stx_gp3.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/85xx/stx_gp3.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/85xx/tqm85xx.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/85xx/tqm85xx.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/86xx/gef_pic.c +7 -4
Index: linux-2.6/arch/powerpc/platforms/86xx/gef_pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/86xx/pic.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/86xx/pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/8xx/m8xx_setup.c +2 -2
Index: linux-2.6/arch/powerpc/platforms/8xx/m8xx_setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/cell/axon_msi.c +7 -2
Index: linux-2.6/arch/powerpc/platforms/cell/axon_msi.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/cell/beat_interrupt.c +8 -4
Index: linux-2.6/arch/powerpc/platforms/cell/beat_interrupt.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/cell/interrupt.c +6 -6
Index: linux-2.6/arch/powerpc/platforms/cell/interrupt.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/cell/setup.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/cell/setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/cell/spider-pic.c +9 -6
Index: linux-2.6/arch/powerpc/platforms/cell/spider-pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/chrp/setup.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/chrp/setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/embedded6xx/flipper-pic.c +8 -4
Index: linux-2.6/arch/powerpc/platforms/embedded6xx/flipper-pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/embedded6xx/hlwd-pic.c +15 -11
Index: linux-2.6/arch/powerpc/platforms/embedded6xx/hlwd-pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/iseries/irq.c +12 -7
Index: linux-2.6/arch/powerpc/platforms/iseries/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/powermac/pic.c +13 -7
Index: linux-2.6/arch/powerpc/platforms/powermac/pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/ps3/interrupt.c +9 -6
Index: linux-2.6/arch/powerpc/platforms/ps3/interrupt.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/pseries/setup.c +1 -1
Index: linux-2.6/arch/powerpc/platforms/pseries/setup.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/platforms/pseries/xics.c +17 -11
Index: linux-2.6/arch/powerpc/platforms/pseries/xics.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/cpm1.c +6 -3
Index: linux-2.6/arch/powerpc/sysdev/cpm1.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/cpm2_pic.c +10 -8
Index: linux-2.6/arch/powerpc/sysdev/cpm2_pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/fsl_msi.c +6 -6
Index: linux-2.6/arch/powerpc/sysdev/fsl_msi.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/i8259.c +19 -16
Index: linux-2.6/arch/powerpc/sysdev/i8259.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/ipic.c +10 -5
Index: linux-2.6/arch/powerpc/sysdev/ipic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/mpc8xx_pic.c +10 -6
Index: linux-2.6/arch/powerpc/sysdev/mpc8xx_pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/mpic.c +23 -12
Index: linux-2.6/arch/powerpc/sysdev/mpic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/mpic.h +2 -2
Index: linux-2.6/arch/powerpc/sysdev/mpic.h
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/mpic_pasemi_msi.c +8 -6
Index: linux-2.6/arch/powerpc/sysdev/mpic_pasemi_msi.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/mpic_u3msi.c +12 -7
Index: linux-2.6/arch/powerpc/sysdev/mpic_u3msi.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/mv64x60_pic.c +14 -7
Index: linux-2.6/arch/powerpc/sysdev/mv64x60_pic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/qe_lib/qe_ic.c +4 -2
Index: linux-2.6/arch/powerpc/sysdev/qe_lib/qe_ic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/tsi108_pci.c +9 -5
Index: linux-2.6/arch/powerpc/sysdev/tsi108_pci.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/uic.c +19 -17
Index: linux-2.6/arch/powerpc/sysdev/uic.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/powerpc/sysdev/xilinx_intc.c +15 -11
Index: linux-2.6/arch/powerpc/sysdev/xilinx_intc.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/score/kernel/irq.c +6 -4
Index: linux-2.6/arch/score/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/boards/mach-cayman/irq.c +6 -4
Index: linux-2.6/arch/sh/boards/mach-cayman/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/boards/mach-dreamcast/irq.c +6 -3
Index: linux-2.6/arch/sh/boards/mach-dreamcast/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/boards/mach-landisk/irq.c +4 -2
Index: linux-2.6/arch/sh/boards/mach-landisk/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/boards/mach-microdev/irq.c +11 -8
Index: linux-2.6/arch/sh/boards/mach-microdev/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/boards/mach-se/7206/irq.c +6 -3
Index: linux-2.6/arch/sh/boards/mach-se/7206/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/boards/mach-se/7343/irq.c +4 -2
Index: linux-2.6/arch/sh/boards/mach-se/7343/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/boards/mach-se/7722/irq.c +4 -4
Index: linux-2.6/arch/sh/boards/mach-se/7722/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/boards/mach-se/7724/irq.c +4 -2
Index: linux-2.6/arch/sh/boards/mach-se/7724/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/boards/mach-systemh/irq.c +9 -7
Index: linux-2.6/arch/sh/boards/mach-systemh/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/cchips/hd6446x/hd64461.c +7 -4
Index: linux-2.6/arch/sh/cchips/hd6446x/hd64461.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/kernel/cpu/irq/imask.c +4 -2
Index: linux-2.6/arch/sh/kernel/cpu/irq/imask.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sh/kernel/cpu/irq/intc-sh5.c +18 -16
Index: linux-2.6/arch/sh/kernel/cpu/irq/intc-sh5.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/sparc/kernel/irq_64.c +36 -26

62 lines not on this page · raw message

arch/sparc/kernel/pci_msi.c +11 -2
Index: linux-2.6/arch/sparc/kernel/pci_msi.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/um/kernel/irq.c +1 -1
Index: linux-2.6/arch/um/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/include/asm/hardirq.h +1 -1
Index: linux-2.6/arch/x86/include/asm/hardirq.h
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/include/asm/hpet.h +4 -4
Index: linux-2.6/arch/x86/include/asm/hpet.h
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/include/asm/i8259.h +1 -1
Index: linux-2.6/arch/x86/include/asm/i8259.h
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/kernel/apic/io_apic.c +53 -72

125 lines not on this page · raw message

arch/x86/kernel/hpet.c +8 -8
Index: linux-2.6/arch/x86/kernel/hpet.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/kernel/i8259.c +18 -13
Index: linux-2.6/arch/x86/kernel/i8259.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/kernel/irq.c +6 -6
Index: linux-2.6/arch/x86/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/kernel/uv_irq.c +6 -6
Index: linux-2.6/arch/x86/kernel/uv_irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/kernel/visws_quirks.c +14 -15
Index: linux-2.6/arch/x86/kernel/visws_quirks.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/kernel/vmiclock_32.c +4 -4
Index: linux-2.6/arch/x86/kernel/vmiclock_32.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/x86/lguest/boot.c +4 -4
Index: linux-2.6/arch/x86/lguest/boot.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/xtensa/kernel/irq.c +14 -8
Index: linux-2.6/arch/xtensa/kernel/irq.c
===================================================================

Lines of this file are not shown. View the raw message.

arch/xtensa/variants/s6000/gpio.c +11 -7
Index: linux-2.6/arch/xtensa/variants/s6000/gpio.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/dma/ipu/ipu_irq.c +9 -9
Index: linux-2.6/drivers/dma/ipu/ipu_irq.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/gpio/langwell_gpio.c +6 -5
Index: linux-2.6/drivers/gpio/langwell_gpio.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/gpio/pl061.c +11 -8
Index: linux-2.6/drivers/gpio/pl061.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/gpio/timbgpio.c +10 -7
Index: linux-2.6/drivers/gpio/timbgpio.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/gpio/vr41xx_giu.c +16 -16
Index: linux-2.6/drivers/gpio/vr41xx_giu.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/mfd/asic3.c +16 -11
Index: linux-2.6/drivers/mfd/asic3.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/mfd/ezx-pcap.c +7 -5
Index: linux-2.6/drivers/mfd/ezx-pcap.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/mfd/htc-egpio.c +7 -5
Index: linux-2.6/drivers/mfd/htc-egpio.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/mfd/t7l66xb.c +5 -3
Index: linux-2.6/drivers/mfd/t7l66xb.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/mfd/tc6393xb.c +9 -6
Index: linux-2.6/drivers/mfd/tc6393xb.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/mfd/twl4030-irq.c +9 -7
Index: linux-2.6/drivers/mfd/twl4030-irq.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/mfd/wm831x-irq.c +10 -8
Index: linux-2.6/drivers/mfd/wm831x-irq.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/misc/sgi-gru/grufile.c +1 -1
Index: linux-2.6/drivers/misc/sgi-gru/grufile.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/parisc/dino.c +6 -6
Index: linux-2.6/drivers/parisc/dino.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/parisc/eisa.c +6 -4
Index: linux-2.6/drivers/parisc/eisa.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/parisc/gsc.c +6 -6
Index: linux-2.6/drivers/parisc/gsc.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/parisc/iosapic.c +10 -6
Index: linux-2.6/drivers/parisc/iosapic.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/parisc/superio.c +6 -4
Index: linux-2.6/drivers/parisc/superio.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/pci/dmar.c +8 -8
Index: linux-2.6/drivers/pci/dmar.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/pci/htirq.c +11 -11
Index: linux-2.6/drivers/pci/htirq.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/pci/msi.c +7 -6
Index: linux-2.6/drivers/pci/msi.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/vlynq/vlynq.c +13 -10
Index: linux-2.6/drivers/vlynq/vlynq.c
===================================================================

Lines of this file are not shown. View the raw message.

drivers/xen/events.c +25 -13
Index: linux-2.6/drivers/xen/events.c
===================================================================

Lines of this file are not shown. View the raw message.

include/linux/dmar.h +4 -4
Index: linux-2.6/include/linux/dmar.h
===================================================================

Lines of this file are not shown. View the raw message.

include/linux/htirq.h +6 -5
Index: linux-2.6/include/linux/htirq.h
===================================================================

Lines of this file are not shown. View the raw message.

include/linux/irq.h +24 -23

47 lines not on this page · raw message

include/linux/msi.h +2 -2
Index: linux-2.6/include/linux/msi.h
===================================================================

Lines of this file are not shown. View the raw message.

kernel/irq/autoprobe.c +6 -6
Index: linux-2.6/kernel/irq/autoprobe.c
===================================================================

Lines of this file are not shown. View the raw message.

kernel/irq/chip.c +27 -33

60 lines not on this page · raw message

kernel/irq/handle.c +11 -13
Index: linux-2.6/kernel/irq/handle.c
===================================================================

Lines of this file are not shown. View the raw message.

kernel/irq/internals.h +8 -8
Index: linux-2.6/kernel/irq/internals.h
===================================================================

Lines of this file are not shown. View the raw message.

kernel/irq/manage.c +32 -33

65 lines not on this page · raw message

kernel/irq/migration.c +6 -10
Index: linux-2.6/kernel/irq/migration.c
===================================================================

Lines of this file are not shown. View the raw message.

kernel/irq/pm.c +2 -2
Index: linux-2.6/kernel/irq/pm.c
===================================================================

Lines of this file are not shown. View the raw message.

kernel/irq/resend.c +4 -4
Index: linux-2.6/kernel/irq/resend.c
===================================================================

Lines of this file are not shown. View the raw message.

kernel/irq/spurious.c +2 -2
Index: linux-2.6/kernel/irq/spurious.c
===================================================================

Lines of this file are not shown. View the raw message.

The rest of this diff is not shown. View the raw message.

Part of the diff is not shown here. View the raw message.