Commit b600ffaebcc4791add19e04306f0478a963abe71

Authored by Linus Torvalds

Merge branch 'irq-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/…

…git/tip/linux-2.6-tip

* 'irq-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
  genirq: Fix UP compile failure caused by irq_thread_check_affinity

Showing 1 changed file Side-by-side Diff

... ... @@ -451,6 +451,7 @@
451 451 return -1;
452 452 }
453 453  
  454 +#ifdef CONFIG_SMP
454 455 /*
455 456 * Check whether we need to change the affinity of the interrupt thread.
456 457 */
... ... @@ -478,6 +479,10 @@
478 479 set_cpus_allowed_ptr(current, mask);
479 480 free_cpumask_var(mask);
480 481 }
  482 +#else
  483 +static inline void
  484 +irq_thread_check_affinity(struct irq_desc *desc, struct irqaction *action) { }
  485 +#endif
481 486  
482 487 /*
483 488 * Interrupt handler thread