mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Yun Wu <wuyun.wu@huawei.com>
To: <tglx@linutronix.de>, <jiang.liu@linux.intel.com>
Cc: <linux-kernel@vger.kernel.org>, Yun Wu <wuyun.wu@huawei.com>
Subject: [PATCH 1/2] genirq: use proper interface
Date: Tue, 17 Mar 2015 16:41:46 +0800	[thread overview]
Message-ID: <1426581707-9248-2-git-send-email-wuyun.wu@huawei.com> (raw)
In-Reply-To: <1426581707-9248-1-git-send-email-wuyun.wu@huawei.com>

An interface provided by kernel/irq/chip.c is designed to do the
same thing, so just use it.

Signed-off-by: Yun Wu <wuyun.wu@huawei.com>
---
 kernel/irq/msi.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/kernel/irq/msi.c b/kernel/irq/msi.c
index 3e18163..b773708 100644
--- a/kernel/irq/msi.c
+++ b/kernel/irq/msi.c
@@ -50,11 +50,10 @@ static inline void irq_chip_write_msi_msg(struct irq_data *data,
 int msi_domain_set_affinity(struct irq_data *irq_data,
 			    const struct cpumask *mask, bool force)
 {
-	struct irq_data *parent = irq_data->parent_data;
 	struct msi_msg msg;
 	int ret;

-	ret = parent->chip->irq_set_affinity(parent, mask, force);
+	ret = irq_chip_set_affinity_parent(irq_data, mask, force);
 	if (ret >= 0 && ret != IRQ_SET_MASK_OK_DONE) {
 		BUG_ON(irq_chip_compose_msi_msg(irq_data, &msg));
 		irq_chip_write_msi_msg(irq_data, &msg);
--
1.8.0



  reply	other threads:[~2015-03-17  8:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-17  8:41 [PATCH 0/2] genirq: minor fixes for setting MSI affinity Yun Wu
2015-03-17  8:41 ` Yun Wu [this message]
2015-03-17  8:41 ` [PATCH 2/2] genirq: use sensible function name Yun Wu

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=1426581707-9248-2-git-send-email-wuyun.wu@huawei.com \
    --to=wuyun.wu@huawei.com \
    --cc=jiang.liu@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=tglx@linutronix.de \
    /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

all inboxes | Powered by JetHome®