aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFeng Tang <feng.tang@intel.com>2010-12-09 10:37:45 +0000
committerAlan Cox <alan@linux.intel.com>2010-12-09 10:37:45 +0000
commit96ed38607f2c400539b9fe5cda881737ba668b52 (patch)
treef36d91a63b8f2813ac3f7d2e31602daf1df35c20
parent42ce0d4dd1baf0d91bde739938b848264e8a02e6 (diff)
downloadmrst-s0i3-test-96ed38607f2c400539b9fe5cda881737ba668b52.tar.gz
mrst-s0i3-test-96ed38607f2c400539b9fe5cda881737ba668b52.tar.xz
mrst-s0i3-test-96ed38607f2c400539b9fe5cda881737ba668b52.zip
x86, apbt: setup affinity for apb timers acting as per-cpu timer
Signed-off-by: Feng Tang <feng.tang@intel.com> Signed-off-by: Alan Cox <alan@linux.intel.com>
-rw-r--r--arch/x86/kernel/apb_timer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kernel/apb_timer.c b/arch/x86/kernel/apb_timer.c
index 92543c73cf8..7c9ab59653e 100644
--- a/arch/x86/kernel/apb_timer.c
+++ b/arch/x86/kernel/apb_timer.c
@@ -315,6 +315,7 @@ static void apbt_setup_irq(struct apbt_dev *adev)
if (system_state == SYSTEM_BOOTING) {
irq_modify_status(adev->irq, 0, IRQ_MOVE_PCNTXT);
+ irq_set_affinity(adev->irq, cpumask_of(adev->cpu));
/* APB timer irqs are set up as mp_irqs, timer is edge type */
__set_irq_handler(adev->irq, handle_edge_irq, 0, "edge");
if (request_irq(adev->irq, apbt_interrupt_handler,