Skip to content

Commit e4d2ebc

Browse files
ftang1KAGA-KOKO
authored andcommitted
x86, apbt: Setup affinity for apb timers acting as per-cpu timer
Commit a5ef2e7 "x86: Sanitize apb timer interrupt handling" forgot the affinity setup when cleaning up the code, this patch just adds the forgotten part Signed-off-by: Feng Tang <feng.tang@intel.com> Cc: Jacob Pan <jacob.jun.pan@intel.com> Cc: Alan Cox <alan@linux.intel.com> LKML-Reference: <1291348298-21263-2-git-send-email-feng.tang@intel.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent 5ec6960 commit e4d2ebc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎arch/x86/kernel/apb_timer.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ static void apbt_setup_irq(struct apbt_dev *adev)
315315

316316
if (system_state == SYSTEM_BOOTING) {
317317
irq_modify_status(adev->irq, 0, IRQ_MOVE_PCNTXT);
318+
irq_set_affinity(adev->irq, cpumask_of(adev->cpu));
318319
/* APB timer irqs are set up as mp_irqs, timer is edge type */
319320
__set_irq_handler(adev->irq, handle_edge_irq, 0, "edge");
320321
if (request_irq(adev->irq, apbt_interrupt_handler,

0 commit comments

Comments
 (0)