aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/msi.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2011-09-18 00:24:37 +0100
committerJan Beulich <jbeulich@suse.com>2011-09-18 00:24:37 +0100
commita71eeb324fcc21bb2789917601326a2dfc220704 (patch)
tree5a7a8dd18c9663490af6c74b53705fc378fba6d7 /xen/arch/x86/msi.c
parent6ac9f9c55cce7e94445120ee8751a165dfe2d9d3 (diff)
downloadxen-a71eeb324fcc21bb2789917601326a2dfc220704.tar.gz
xen-a71eeb324fcc21bb2789917601326a2dfc220704.tar.bz2
xen-a71eeb324fcc21bb2789917601326a2dfc220704.zip
pass struct irq_desc * to set_affinity() IRQ accessors
This is because the descriptor is generally more useful (with the IRQ number being accessible in it if necessary) and going forward will hopefully allow to remove all direct accesses to the IRQ descriptor array, in turn making it possible to make this some other, more efficient data structure. Signed-off-by: Jan Beulich <jbeulich@suse.com>
Diffstat (limited to 'xen/arch/x86/msi.c')
-rw-r--r--xen/arch/x86/msi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xen/arch/x86/msi.c b/xen/arch/x86/msi.c
index fb02f1afef..d169a15676 100644
--- a/xen/arch/x86/msi.c
+++ b/xen/arch/x86/msi.c
@@ -266,11 +266,10 @@ static void write_msi_msg(struct msi_desc *entry, struct msi_msg *msg)
}
}
-void set_msi_affinity(unsigned int irq, const cpumask_t *mask)
+void set_msi_affinity(struct irq_desc *desc, const cpumask_t *mask)
{
struct msi_msg msg;
unsigned int dest;
- struct irq_desc *desc = irq_to_desc(irq);
struct msi_desc *msi_desc = desc->msi_desc;
struct irq_cfg *cfg = desc->chip_data;