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 2/2] genirq: use sensible function name
Date: Tue, 17 Mar 2015 16:41:47 +0800 [thread overview]
Message-ID: <1426581707-9248-3-git-send-email-wuyun.wu@huawei.com> (raw)
In-Reply-To: <1426581707-9248-1-git-send-email-wuyun.wu@huawei.com>
It's easier to accept the name of msi_chip_set_affinity() than
msi_domain_set_affinity(), since function of setting interrupt
affinity is actually provided by IRQ chips.
Signed-off-by: Yun Wu <wuyun.wu@huawei.com>
---
include/linux/msi.h | 4 ++--
kernel/irq/msi.c | 6 +++---
2 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/include/linux/msi.h b/include/linux/msi.h
index 8ac4a68..c099e6c 100644
--- a/include/linux/msi.h
+++ b/include/linux/msi.h
@@ -210,8 +210,8 @@ enum {
MSI_FLAG_PCI_MSIX = (1 << 4),
};
-int msi_domain_set_affinity(struct irq_data *data, const struct cpumask *mask,
- bool force);
+int msi_chip_set_affinity(struct irq_data *data, const struct cpumask *mask,
+ bool force);
struct irq_domain *msi_create_irq_domain(struct device_node *of_node,
struct msi_domain_info *info,
diff --git a/kernel/irq/msi.c b/kernel/irq/msi.c
index b773708..3261480 100644
--- a/kernel/irq/msi.c
+++ b/kernel/irq/msi.c
@@ -39,7 +39,7 @@ static inline void irq_chip_write_msi_msg(struct irq_data *data,
}
/**
- * msi_domain_set_affinity - Generic affinity setter function for MSI domains
+ * msi_chip_set_affinity - Generic affinity setter function for MSI domains
* @irq_data: The irq data associated to the interrupt
* @mask: The affinity mask to set
* @force: Flag to enforce setting (disable online checks)
@@ -47,7 +47,7 @@ static inline void irq_chip_write_msi_msg(struct irq_data *data,
* Intended to be used by MSI interrupt controllers which are
* implemented with hierarchical domains.
*/
-int msi_domain_set_affinity(struct irq_data *irq_data,
+int msi_chip_set_affinity(struct irq_data *irq_data,
const struct cpumask *mask, bool force)
{
struct msi_msg msg;
@@ -216,7 +216,7 @@ static void msi_domain_update_chip_ops(struct msi_domain_info *info)
if (!chip->irq_unmask)
chip->irq_unmask = pci_msi_unmask_irq;
if (!chip->irq_set_affinity)
- chip->irq_set_affinity = msi_domain_set_affinity;
+ chip->irq_set_affinity = msi_chip_set_affinity;
}
/**
--
1.8.0
prev parent 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 ` [PATCH 1/2] genirq: use proper interface Yun Wu
2015-03-17 8:41 ` Yun Wu [this message]
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-3-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®