* [PATCH] powerpc/fsl: Use irq_data_get_irq_handler_data() in chain handler
@ 2011-06-01 8:44 Geert Uytterhoeven
2011-06-01 10:14 ` Thomas Gleixner
0 siblings, 1 reply; 2+ messages in thread
From: Geert Uytterhoeven @ 2011-06-01 8:44 UTC (permalink / raw)
To: Linux/PPC Development; +Cc: Thomas Gleixner, Linux Kernel Development
If you already have a pointer to a struct irq_data , it's more efficient
to use irq_data_get_irq_handler_data().
irq_get_handler_data() has to look up the struct irq_desc pointer again,
which was already passed to the chain handler.
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
Completely untested, not even compile-tested.
If this is correct, there are probably more of these?
arch/powerpc/sysdev/fsl_msi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/powerpc/sysdev/fsl_msi.c b/arch/powerpc/sysdev/fsl_msi.c
index 92e7833..9b92c82 100644
--- a/arch/powerpc/sysdev/fsl_msi.c
+++ b/arch/powerpc/sysdev/fsl_msi.c
@@ -193,7 +193,7 @@ static void fsl_msi_cascade(unsigned int irq, struct irq_desc *desc)
u32 have_shift = 0;
struct fsl_msi_cascade_data *cascade_data;
- cascade_data = irq_get_handler_data(irq);
+ cascade_data = irq_data_get_irq_handler_data(idata);
msi_data = cascade_data->msi_data;
raw_spin_lock(&desc->lock);
--
1.7.0.4
Gr{oetje,eeting}s,
Geert
--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org
In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
-- Linus Torvalds
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] powerpc/fsl: Use irq_data_get_irq_handler_data() in chain handler
2011-06-01 8:44 [PATCH] powerpc/fsl: Use irq_data_get_irq_handler_data() in chain handler Geert Uytterhoeven
@ 2011-06-01 10:14 ` Thomas Gleixner
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Gleixner @ 2011-06-01 10:14 UTC (permalink / raw)
To: Geert Uytterhoeven; +Cc: Linux/PPC Development, Linux Kernel Development
On Wed, 1 Jun 2011, Geert Uytterhoeven wrote:
> If you already have a pointer to a struct irq_data , it's more efficient
> to use irq_data_get_irq_handler_data().
> irq_get_handler_data() has to look up the struct irq_desc pointer again,
> which was already passed to the chain handler.
>
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
> ---
> Completely untested, not even compile-tested.
> If this is correct, there are probably more of these?
>
> arch/powerpc/sysdev/fsl_msi.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/powerpc/sysdev/fsl_msi.c b/arch/powerpc/sysdev/fsl_msi.c
> index 92e7833..9b92c82 100644
> --- a/arch/powerpc/sysdev/fsl_msi.c
> +++ b/arch/powerpc/sysdev/fsl_msi.c
> @@ -193,7 +193,7 @@ static void fsl_msi_cascade(unsigned int irq, struct irq_desc *desc)
> u32 have_shift = 0;
> struct fsl_msi_cascade_data *cascade_data;
>
> - cascade_data = irq_get_handler_data(irq);
> + cascade_data = irq_data_get_irq_handler_data(idata);
cascade_data = irq_desc_get_handler_data(desc);
Might compile and work :)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-06-01 10:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-01 8:44 [PATCH] powerpc/fsl: Use irq_data_get_irq_handler_data() in chain handler Geert Uytterhoeven
2011-06-01 10:14 ` Thomas Gleixner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox