aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hpet.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2011-12-13 11:38:57 +0100
committerJan Beulich <jbeulich@suse.com>2011-12-13 11:38:57 +0100
commit3c419d3521b66c78e22da14fcf287b586e5df4b7 (patch)
tree2a367d69aad197034ed1b999c8de62d19d50fb81 /xen/arch/x86/hpet.c
parentdd02b58523c43bf517bb6e9d69b4983068e6b89c (diff)
downloadxen-3c419d3521b66c78e22da14fcf287b586e5df4b7.tar.gz
xen-3c419d3521b66c78e22da14fcf287b586e5df4b7.tar.bz2
xen-3c419d3521b66c78e22da14fcf287b586e5df4b7.zip
VT-d: bind IRQs to CPUs local to the node the IOMMU is on
This extends create_irq() to take a node parameter, allowing the resulting IRQ to have its destination set to a CPU on that node right away, which is more natural than having to post-adjust this (and get e.g. a new IRQ vector assigned despite a fresh one was just obtained). All other callers of create_irq() pass NUMA_NO_NODE for the time being. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/hpet.c')
-rw-r--r--xen/arch/x86/hpet.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/xen/arch/x86/hpet.c b/xen/arch/x86/hpet.c
index c503790cb5..0f6d1a1fbb 100644
--- a/xen/arch/x86/hpet.c
+++ b/xen/arch/x86/hpet.c
@@ -11,6 +11,7 @@
#include <xen/smp.h>
#include <xen/softirq.h>
#include <xen/irq.h>
+#include <xen/numa.h>
#include <asm/fixmap.h>
#include <asm/div64.h>
#include <asm/hpet.h>
@@ -334,7 +335,7 @@ static int __init hpet_assign_irq(unsigned int idx)
{
int irq;
- if ( (irq = create_irq()) < 0 )
+ if ( (irq = create_irq(NUMA_NO_NODE)) < 0 )
return irq;
if ( hpet_setup_msi_irq(irq, hpet_events + idx) )