summaryrefslogtreecommitdiffstats
path: root/drivers/xen
diff options
context:
space:
mode:
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-03-15 16:40:33 -0400
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-03-15 16:40:33 -0400
commit44626e4a3bd764283193e14e64f9324e48b4bfd8 (patch)
treed6e47e75b03a5bc006a856696e845db32f983035 /drivers/xen
parenta7b807ce8c86925eef92fe6aa79cea4ac7f097c4 (diff)
downloadtalos-obmc-linux-44626e4a3bd764283193e14e64f9324e48b4bfd8.tar.gz
talos-obmc-linux-44626e4a3bd764283193e14e64f9324e48b4bfd8.zip
xen: events: Fix compile error if CONFIG_SMP is not defined.
drivers/xen/events.c:396: error: 'struct irq_data' has no member named 'affinity' Reported-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen')
-rw-r--r--drivers/xen/events.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/xen/events.c b/drivers/xen/events.c
index dc8177950d05..4591853f6ebc 100644
--- a/drivers/xen/events.c
+++ b/drivers/xen/events.c
@@ -392,8 +392,10 @@ static void xen_irq_init(unsigned irq)
struct irq_info *info;
struct irq_desc *desc = irq_to_desc(irq);
+#ifdef CONFIG_SMP
/* By default all event channels notify CPU#0. */
cpumask_copy(desc->irq_data.affinity, cpumask_of(0));
+#endif
info = kzalloc(sizeof(*info), GFP_KERNEL);
if (info == NULL)
OpenPOWER on IntegriCloud