[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] x86/MSI: drop local cpumask_t variable from msi_compose_msg()
# HG changeset patch # User Jan Beulich <jbeulich@xxxxxxxx> # Date 1318595655 -7200 # Node ID f63528cc50601b730a3283059fbb7e7896f97674 # Parent c3c0ebfad1024b80a846f5fa20b130aba39348bb x86/MSI: drop local cpumask_t variable from msi_compose_msg() The function gets called only during initialization/resume (when no other CPUs are running) or with the IRQ descriptor lock held, so there's no way for the CPU mask to change under its feet. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Acked-by: Keir Fraser <keir@xxxxxxx> --- diff -r c3c0ebfad102 -r f63528cc5060 xen/arch/x86/msi.c --- a/xen/arch/x86/msi.c Fri Oct 14 12:27:15 2011 +0200 +++ b/xen/arch/x86/msi.c Fri Oct 14 14:34:15 2011 +0200 @@ -123,18 +123,16 @@ void msi_compose_msg(struct irq_desc *desc, struct msi_msg *msg) { unsigned dest; - cpumask_t domain; struct irq_cfg *cfg = desc->chip_data; int vector = cfg->vector; - domain = cfg->cpu_mask; - if ( cpus_empty( domain ) ) { + if ( cpus_empty(cfg->cpu_mask) ) { dprintk(XENLOG_ERR,"%s, compose msi message error!!\n", __func__); - return; + return; } if ( vector ) { - dest = cpu_mask_to_apicid(&domain); + dest = cpu_mask_to_apicid(&cfg->cpu_mask); msg->address_hi = MSI_ADDR_BASE_HI; msg->address_lo = _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |