* [PATCH 2/8] sh, irq: Remove irq_reserve_irq calling
[not found] <1398986302-30455-1-git-send-email-yinghai@kernel.org>
@ 2014-05-01 23:18 ` Yinghai Lu
2014-05-02 2:38 ` Simon Horman
2014-05-02 15:19 ` Sergei Shtylyov
0 siblings, 2 replies; 3+ messages in thread
From: Yinghai Lu @ 2014-05-01 23:18 UTC (permalink / raw)
To: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, Tony Luck
Cc: linux-kernel, Yinghai Lu, Simon Horman, Magnus Damm, linux-sh
in sh calling path:
register_intc_controller
=> irq_create_identity_mapping/irq_create_strict_mappins
=>irq_alloc_desc: it will set bits on allocate_irq
=> intc_register_irq
=> irq_reserve_irq: set bits again
so we can kill this irq_reserve_irq calling.
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Cc: Simon Horman <horms@verge.net.au>
Cc: Magnus Damm <magnus.damm@gmail.com>
Cc: linux-sh@vger.kernel.org
---
drivers/sh/intc/core.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/sh/intc/core.c b/drivers/sh/intc/core.c
index 8f32a13..05118f92 100644
--- a/drivers/sh/intc/core.c
+++ b/drivers/sh/intc/core.c
@@ -81,11 +81,8 @@ static void __init intc_register_irq(struct intc_desc *desc,
unsigned long flags;
/*
- * Register the IRQ position with the global IRQ map, then insert
- * it in to the radix tree.
+ * insert it in to the radix tree.
*/
- irq_reserve_irq(irq);
-
raw_spin_lock_irqsave(&intc_big_lock, flags);
radix_tree_insert(&d->tree, enum_id, intc_irq_xlate_get(irq));
raw_spin_unlock_irqrestore(&intc_big_lock, flags);
--
1.8.4.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 2/8] sh, irq: Remove irq_reserve_irq calling
2014-05-01 23:18 ` [PATCH 2/8] sh, irq: Remove irq_reserve_irq calling Yinghai Lu
@ 2014-05-02 2:38 ` Simon Horman
2014-05-02 15:19 ` Sergei Shtylyov
1 sibling, 0 replies; 3+ messages in thread
From: Simon Horman @ 2014-05-02 2:38 UTC (permalink / raw)
To: Yinghai Lu
Cc: Thomas Gleixner, Ingo Molnar, H. Peter Anvin, Tony Luck,
linux-kernel, Magnus Damm, linux-sh
On Thu, May 01, 2014 at 04:18:16PM -0700, Yinghai Lu wrote:
> in sh calling path:
> register_intc_controller
> => irq_create_identity_mapping/irq_create_strict_mappins
> =>irq_alloc_desc: it will set bits on allocate_irq
> => intc_register_irq
> => irq_reserve_irq: set bits again
>
> so we can kill this irq_reserve_irq calling.
Thanks, this looks fine to me.
As the file in question has not been updated in well over a year
and I'm not aware of any other outstanding updates to it I think
that the chance of conflicts is low. With that in mind I'm happy
for whoever takes the reset of this series to take this patch too.
Acked-by: Simon Horman <horms+renesas@verge.net.au>
> Signed-off-by: Yinghai Lu <yinghai@kernel.org>
> Cc: Simon Horman <horms@verge.net.au>
> Cc: Magnus Damm <magnus.damm@gmail.com>
> Cc: linux-sh@vger.kernel.org
> ---
> drivers/sh/intc/core.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/drivers/sh/intc/core.c b/drivers/sh/intc/core.c
> index 8f32a13..05118f92 100644
> --- a/drivers/sh/intc/core.c
> +++ b/drivers/sh/intc/core.c
> @@ -81,11 +81,8 @@ static void __init intc_register_irq(struct intc_desc *desc,
> unsigned long flags;
>
> /*
> - * Register the IRQ position with the global IRQ map, then insert
> - * it in to the radix tree.
> + * insert it in to the radix tree.
> */
> - irq_reserve_irq(irq);
> -
> raw_spin_lock_irqsave(&intc_big_lock, flags);
> radix_tree_insert(&d->tree, enum_id, intc_irq_xlate_get(irq));
> raw_spin_unlock_irqrestore(&intc_big_lock, flags);
> --
> 1.8.4.5
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-sh" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH 2/8] sh, irq: Remove irq_reserve_irq calling
2014-05-01 23:18 ` [PATCH 2/8] sh, irq: Remove irq_reserve_irq calling Yinghai Lu
2014-05-02 2:38 ` Simon Horman
@ 2014-05-02 15:19 ` Sergei Shtylyov
1 sibling, 0 replies; 3+ messages in thread
From: Sergei Shtylyov @ 2014-05-02 15:19 UTC (permalink / raw)
To: Yinghai Lu, Thomas Gleixner, Ingo Molnar, H. Peter Anvin,
Tony Luck
Cc: linux-kernel, Simon Horman, Magnus Damm, linux-sh
Hello.
On 05/02/2014 03:18 AM, Yinghai Lu wrote:
> in sh calling path:
> register_intc_controller
> => irq_create_identity_mapping/irq_create_strict_mappins
> =>irq_alloc_desc: it will set bits on allocate_irq
> => intc_register_irq
> => irq_reserve_irq: set bits again
> so we can kill this irq_reserve_irq calling.
> Signed-off-by: Yinghai Lu <yinghai@kernel.org>
> Cc: Simon Horman <horms@verge.net.au>
> Cc: Magnus Damm <magnus.damm@gmail.com>
> Cc: linux-sh@vger.kernel.org
> ---
> drivers/sh/intc/core.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
> diff --git a/drivers/sh/intc/core.c b/drivers/sh/intc/core.c
> index 8f32a13..05118f92 100644
> --- a/drivers/sh/intc/core.c
> +++ b/drivers/sh/intc/core.c
> @@ -81,11 +81,8 @@ static void __init intc_register_irq(struct intc_desc *desc,
> unsigned long flags;
>
> /*
> - * Register the IRQ position with the global IRQ map, then insert
> - * it in to the radix tree.
> + * insert it in to the radix tree.
It makes sense to convert this comment to one-liner now. I'd also have
started it with a capital letter.
> */
> - irq_reserve_irq(irq);
> -
> raw_spin_lock_irqsave(&intc_big_lock, flags);
> radix_tree_insert(&d->tree, enum_id, intc_irq_xlate_get(irq));
> raw_spin_unlock_irqrestore(&intc_big_lock, flags);
WBR, Sergei
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-05-02 15:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1398986302-30455-1-git-send-email-yinghai@kernel.org>
2014-05-01 23:18 ` [PATCH 2/8] sh, irq: Remove irq_reserve_irq calling Yinghai Lu
2014-05-02 2:38 ` Simon Horman
2014-05-02 15:19 ` Sergei Shtylyov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).