public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: LKML <linux-kernel@vger.kernel.org>
Cc: Steven Miao <realmz6@gmail.com>,
	Jiang Liu <jiang.liu@linux.intel.com>,
	Julia Lawall <julia.lawall@lip6.fr>,
	adi-buildroot-devel@lists.sourceforge.net
Subject: [patch 2/2] blackfin/irq: Use irq_set_handler_locked()
Date: Mon, 13 Jul 2015 20:34:57 -0000	[thread overview]
Message-ID: <20150713125611.731615902@linutronix.de> (raw)
In-Reply-To: 20150713125446.864421561@linutronix.de

[-- Attachment #1: blackfin-irq-Use-irq_set_handler_locked.patch --]
[-- Type: text/plain, Size: 1438 bytes --]

Use irq_set_handler_locked() as it avoids a redundant lookup of the
irq descriptor.

Search and update was done with coccinelle.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Jiang Liu <jiang.liu@linux.intel.com>
Cc: Julia Lawall <julia.lawall@lip6.fr>
Cc: Steven Miao <realmz6@gmail.com>
Cc: adi-buildroot-devel@lists.sourceforge.net
---
 arch/blackfin/mach-common/ints-priority.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Index: tip/arch/blackfin/mach-common/ints-priority.c
===================================================================
--- tip.orig/arch/blackfin/mach-common/ints-priority.c
+++ tip/arch/blackfin/mach-common/ints-priority.c
@@ -686,12 +686,12 @@ void bfin_demux_mac_status_irq(unsigned
 }
 #endif
 
-static inline void bfin_set_irq_handler(unsigned irq, irq_flow_handler_t handle)
+static inline void bfin_set_irq_handler(struct irq_data *d, irq_flow_handler_t handle)
 {
 #ifdef CONFIG_IPIPE
 	handle = handle_level_irq;
 #endif
-	__irq_set_handler_locked(irq, handle);
+	irq_set_handler_locked(d, handle);
 }
 
 #ifdef CONFIG_GPIO_ADI
@@ -803,9 +803,9 @@ static int bfin_gpio_irq_type(struct irq
 	}
 
 	if (type & (IRQ_TYPE_EDGE_RISING | IRQ_TYPE_EDGE_FALLING))
-		bfin_set_irq_handler(irq, handle_edge_irq);
+		bfin_set_irq_handler(d, handle_edge_irq);
 	else
-		bfin_set_irq_handler(irq, handle_level_irq);
+		bfin_set_irq_handler(d, handle_level_irq);
 
 	return 0;
 }



  parent reply	other threads:[~2015-07-13 20:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-13 20:34 [patch 0/2] blackfin: Interrupt cleanups and API change preparation Thomas Gleixner
2015-07-13 20:34 ` [patch 1/2] blackfin/irq: Use access helper irq_data_get_affinity_mask() Thomas Gleixner
2015-07-27 15:54   ` [tip:irq/core] " tip-bot for Jiang Liu
2015-07-13 20:34 ` Thomas Gleixner [this message]
2015-07-27 15:55   ` [tip:irq/core] blackfin/irq: Use irq_set_handler_locked() tip-bot for Thomas Gleixner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150713125611.731615902@linutronix.de \
    --to=tglx@linutronix.de \
    --cc=adi-buildroot-devel@lists.sourceforge.net \
    --cc=jiang.liu@linux.intel.com \
    --cc=julia.lawall@lip6.fr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=realmz6@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox