All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch 0/3] tile: Cleanup irq chips and irq_desc accessors
@ 2011-02-06 23:04 Thomas Gleixner
  2011-02-06 23:04 ` [patch 1/3] tile: Convert irq_chip to new functions Thomas Gleixner
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Thomas Gleixner @ 2011-02-06 23:04 UTC (permalink / raw)
  To: LKML; +Cc: Chris Metcalf

Convert the irq chips to the new callback functions and use proper
accessors for irq_desc. Select GENERIC_HARDIRQS_NO_DEPRECATED

Thanks,

	tglx





^ permalink raw reply	[flat|nested] 7+ messages in thread

* [patch 1/3] tile: Convert irq_chip to new functions
  2011-02-06 23:04 [patch 0/3] tile: Cleanup irq chips and irq_desc accessors Thomas Gleixner
@ 2011-02-06 23:04 ` Thomas Gleixner
  2011-02-06 23:04 ` [patch 2/3] tile: Use proper accessor functions in show_interrupt() Thomas Gleixner
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 7+ messages in thread
From: Thomas Gleixner @ 2011-02-06 23:04 UTC (permalink / raw)
  To: LKML; +Cc: Chris Metcalf

[-- Attachment #1: tile-convert-irq-chip.patch --]
[-- Type: text/plain, Size: 2024 bytes --]

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
 arch/tile/kernel/irq.c |   28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

Index: linux-next/arch/tile/kernel/irq.c
===================================================================
--- linux-next.orig/arch/tile/kernel/irq.c
+++ linux-next/arch/tile/kernel/irq.c
@@ -176,43 +176,43 @@ void disable_percpu_irq(unsigned int irq
 EXPORT_SYMBOL(disable_percpu_irq);
 
 /* Mask an interrupt. */
-static void tile_irq_chip_mask(unsigned int irq)
+static void tile_irq_chip_mask(struct irq_data *d)
 {
-	mask_irqs(1UL << irq);
+	mask_irqs(1UL << d->irq);
 }
 
 /* Unmask an interrupt. */
-static void tile_irq_chip_unmask(unsigned int irq)
+static void tile_irq_chip_unmask(struct irq_data *d)
 {
-	unmask_irqs(1UL << irq);
+	unmask_irqs(1UL << d->irq);
 }
 
 /*
  * Clear an interrupt before processing it so that any new assertions
  * will trigger another irq.
  */
-static void tile_irq_chip_ack(unsigned int irq)
+static void tile_irq_chip_ack(struct irq_data *d)
 {
-	if ((unsigned long)get_irq_chip_data(irq) != IS_HW_CLEARED)
-		clear_irqs(1UL << irq);
+	if ((unsigned long)irq_data_get_irq_chip_data(d) != IS_HW_CLEARED)
+		clear_irqs(1UL << d->irq);
 }
 
 /*
  * For per-cpu interrupts, we need to avoid unmasking any interrupts
  * that we disabled via disable_percpu_irq().
  */
-static void tile_irq_chip_eoi(unsigned int irq)
+static void tile_irq_chip_eoi(struct irq_data *d)
 {
-	if (!(__get_cpu_var(irq_disable_mask) & (1UL << irq)))
-		unmask_irqs(1UL << irq);
+	if (!(__get_cpu_var(irq_disable_mask) & (1UL << d->irq)))
+		unmask_irqs(1UL << d->irq);
 }
 
 static struct irq_chip tile_irq_chip = {
 	.name = "tile_irq_chip",
-	.ack = tile_irq_chip_ack,
-	.eoi = tile_irq_chip_eoi,
-	.mask = tile_irq_chip_mask,
-	.unmask = tile_irq_chip_unmask,
+	.irq_ack = tile_irq_chip_ack,
+	.irq_eoi = tile_irq_chip_eoi,
+	.irq_mask = tile_irq_chip_mask,
+	.irq_unmask = tile_irq_chip_unmask,
 };
 
 void __init init_IRQ(void)



^ permalink raw reply	[flat|nested] 7+ messages in thread

* [patch 2/3] tile: Use proper accessor functions in show_interrupt()
  2011-02-06 23:04 [patch 0/3] tile: Cleanup irq chips and irq_desc accessors Thomas Gleixner
  2011-02-06 23:04 ` [patch 1/3] tile: Convert irq_chip to new functions Thomas Gleixner
@ 2011-02-06 23:04 ` Thomas Gleixner
  2011-02-06 23:04 ` [patch 3/3] tile: Select GENERIC_HARDIRQS_NO_DEPRECATED Thomas Gleixner
  2011-02-23 20:54 ` [patch 0/3] tile: Cleanup irq chips and irq_desc accessors Chris Metcalf
  3 siblings, 0 replies; 7+ messages in thread
From: Thomas Gleixner @ 2011-02-06 23:04 UTC (permalink / raw)
  To: LKML; +Cc: Chris Metcalf

[-- Attachment #1: tile-cleanup-sho-irq.patch --]
[-- Type: text/plain, Size: 1268 bytes --]

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
 arch/tile/kernel/irq.c |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

Index: linux-next/arch/tile/kernel/irq.c
===================================================================
--- linux-next.orig/arch/tile/kernel/irq.c
+++ linux-next/arch/tile/kernel/irq.c
@@ -277,8 +277,10 @@ int show_interrupts(struct seq_file *p, 
 	}
 
 	if (i < NR_IRQS) {
-		raw_spin_lock_irqsave(&irq_desc[i].lock, flags);
-		action = irq_desc[i].action;
+		struct irq_desc *desc = irq_to_desc(i);
+
+		raw_spin_lock_irqsave(&desc->lock, flags);
+		action = desc->action;
 		if (!action)
 			goto skip;
 		seq_printf(p, "%3d: ", i);
@@ -288,7 +290,7 @@ int show_interrupts(struct seq_file *p, 
 		for_each_online_cpu(j)
 			seq_printf(p, "%10u ", kstat_irqs_cpu(i, j));
 #endif
-		seq_printf(p, " %14s", irq_desc[i].chip->name);
+		seq_printf(p, " %14s", get_irq_desc_chip(desc)->name);
 		seq_printf(p, "  %s", action->name);
 
 		for (action = action->next; action; action = action->next)
@@ -296,7 +298,7 @@ int show_interrupts(struct seq_file *p, 
 
 		seq_putc(p, '\n');
 skip:
-		raw_spin_unlock_irqrestore(&irq_desc[i].lock, flags);
+		raw_spin_unlock_irqrestore(&desc->lock, flags);
 	}
 	return 0;
 }



^ permalink raw reply	[flat|nested] 7+ messages in thread

* [patch 3/3] tile: Select GENERIC_HARDIRQS_NO_DEPRECATED
  2011-02-06 23:04 [patch 0/3] tile: Cleanup irq chips and irq_desc accessors Thomas Gleixner
  2011-02-06 23:04 ` [patch 1/3] tile: Convert irq_chip to new functions Thomas Gleixner
  2011-02-06 23:04 ` [patch 2/3] tile: Use proper accessor functions in show_interrupt() Thomas Gleixner
@ 2011-02-06 23:04 ` Thomas Gleixner
  2011-02-23 20:54 ` [patch 0/3] tile: Cleanup irq chips and irq_desc accessors Chris Metcalf
  3 siblings, 0 replies; 7+ messages in thread
From: Thomas Gleixner @ 2011-02-06 23:04 UTC (permalink / raw)
  To: LKML; +Cc: Chris Metcalf

[-- Attachment #1: tile-set-nodepr.patch --]
[-- Type: text/plain, Size: 602 bytes --]

irq chip converted and proper accessor functions used.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
---
 arch/tile/Kconfig |    1 +
 1 file changed, 1 insertion(+)

Index: linux-next/arch/tile/Kconfig
===================================================================
--- linux-next.orig/arch/tile/Kconfig
+++ linux-next/arch/tile/Kconfig
@@ -11,6 +11,7 @@ config TILE
 	select HAVE_GENERIC_HARDIRQS
 	select GENERIC_IRQ_PROBE
 	select GENERIC_PENDING_IRQ if SMP
+	select GENERIC_HARDIRQS_NO_DEPRECATED
 
 # FIXME: investigate whether we need/want these options.
 #	select HAVE_IOREMAP_PROT



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [patch 0/3] tile: Cleanup irq chips and irq_desc accessors
  2011-02-06 23:04 [patch 0/3] tile: Cleanup irq chips and irq_desc accessors Thomas Gleixner
                   ` (2 preceding siblings ...)
  2011-02-06 23:04 ` [patch 3/3] tile: Select GENERIC_HARDIRQS_NO_DEPRECATED Thomas Gleixner
@ 2011-02-23 20:54 ` Chris Metcalf
  2011-02-23 20:56   ` Thomas Gleixner
  3 siblings, 1 reply; 7+ messages in thread
From: Chris Metcalf @ 2011-02-23 20:54 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: LKML

On 2/6/2011 6:04 PM, Thomas Gleixner wrote:
> Convert the irq chips to the new callback functions and use proper
> accessors for irq_desc. Select GENERIC_HARDIRQS_NO_DEPRECATED

For the series:

Acked-by: Chris Metcalf <cmetcalf@tilera.com>

Sorry for the late response, but your email came while I was still trying
to catch up with my email from a week's vacation, and I'm just re-triaging
my inbox now :-)

-- 
Chris Metcalf, Tilera Corp.
http://www.tilera.com


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [patch 0/3] tile: Cleanup irq chips and irq_desc accessors
  2011-02-23 20:54 ` [patch 0/3] tile: Cleanup irq chips and irq_desc accessors Chris Metcalf
@ 2011-02-23 20:56   ` Thomas Gleixner
  2011-02-23 21:08     ` Chris Metcalf
  0 siblings, 1 reply; 7+ messages in thread
From: Thomas Gleixner @ 2011-02-23 20:56 UTC (permalink / raw)
  To: Chris Metcalf; +Cc: LKML

On Wed, 23 Feb 2011, Chris Metcalf wrote:

> On 2/6/2011 6:04 PM, Thomas Gleixner wrote:
> > Convert the irq chips to the new callback functions and use proper
> > accessors for irq_desc. Select GENERIC_HARDIRQS_NO_DEPRECATED
> 
> For the series:
> 
> Acked-by: Chris Metcalf <cmetcalf@tilera.com>
> 
> Sorry for the late response, but your email came while I was still trying
> to catch up with my email from a week's vacation, and I'm just re-triaging
> my inbox now :-)

No problem. Can you takes this via your tree for .39 ? It does not
depend on any changes in the core code.

Thanks,

	tglx

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [patch 0/3] tile: Cleanup irq chips and irq_desc accessors
  2011-02-23 20:56   ` Thomas Gleixner
@ 2011-02-23 21:08     ` Chris Metcalf
  0 siblings, 0 replies; 7+ messages in thread
From: Chris Metcalf @ 2011-02-23 21:08 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: LKML

On 2/23/2011 3:56 PM, Thomas Gleixner wrote:
> On Wed, 23 Feb 2011, Chris Metcalf wrote:
>
>> On 2/6/2011 6:04 PM, Thomas Gleixner wrote:
>>> Convert the irq chips to the new callback functions and use proper
>>> accessors for irq_desc. Select GENERIC_HARDIRQS_NO_DEPRECATED
>> For the series:
>>
>> Acked-by: Chris Metcalf <cmetcalf@tilera.com>
>>
>> Sorry for the late response, but your email came while I was still trying
>> to catch up with my email from a week's vacation, and I'm just re-triaging
>> my inbox now :-)
> No problem. Can you takes this via your tree for .39 ? It does not
> depend on any changes in the core code.

Sure.  Done.

-- 
Chris Metcalf, Tilera Corp.
http://www.tilera.com


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-02-23 21:08 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-06 23:04 [patch 0/3] tile: Cleanup irq chips and irq_desc accessors Thomas Gleixner
2011-02-06 23:04 ` [patch 1/3] tile: Convert irq_chip to new functions Thomas Gleixner
2011-02-06 23:04 ` [patch 2/3] tile: Use proper accessor functions in show_interrupt() Thomas Gleixner
2011-02-06 23:04 ` [patch 3/3] tile: Select GENERIC_HARDIRQS_NO_DEPRECATED Thomas Gleixner
2011-02-23 20:54 ` [patch 0/3] tile: Cleanup irq chips and irq_desc accessors Chris Metcalf
2011-02-23 20:56   ` Thomas Gleixner
2011-02-23 21:08     ` Chris Metcalf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.