diff options
| author | Will Deacon <will@kernel.org> | 2021-05-24 10:58:14 +0100 |
|---|---|---|
| committer | Will Deacon <will@kernel.org> | 2021-05-24 10:58:14 +0100 |
| commit | da3862e7277bdb0d2cb4fd9511a186b0462448bf (patch) | |
| tree | 5683ed87679bcf01f09aa80dc7bad33ad2b5f252 /include/linux | |
| parent | c4681547bcce777daf576925a966ffa824edd09d (diff) | |
| parent | 4d80d6ca5d77fde9880da8466e5b64f250e5bf82 (diff) | |
| download | cachepc-linux-da3862e7277bdb0d2cb4fd9511a186b0462448bf.tar.gz cachepc-linux-da3862e7277bdb0d2cb4fd9511a186b0462448bf.zip | |
Merge tag 'irq-export-set-affinity' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip into for-next/perf
Export irq_set_affinity() for cleaning up drivers/perf
Pull export of irq_set_affinity() from Thomas Gleixner, so we can convert
all new and exiting Arm PMU drivers to the new interface.
* tag 'irq-export-set-affinity' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip:
genirq: Export affinity setter for modules
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/interrupt.h | 35 |
1 files changed, 2 insertions, 33 deletions
diff --git a/include/linux/interrupt.h b/include/linux/interrupt.h index 4777850a6dc7..35a374241515 100644 --- a/include/linux/interrupt.h +++ b/include/linux/interrupt.h @@ -319,39 +319,8 @@ struct irq_affinity_desc { extern cpumask_var_t irq_default_affinity; -/* Internal implementation. Use the helpers below */ -extern int __irq_set_affinity(unsigned int irq, const struct cpumask *cpumask, - bool force); - -/** - * irq_set_affinity - Set the irq affinity of a given irq - * @irq: Interrupt to set affinity - * @cpumask: cpumask - * - * Fails if cpumask does not contain an online CPU - */ -static inline int -irq_set_affinity(unsigned int irq, const struct cpumask *cpumask) -{ - return __irq_set_affinity(irq, cpumask, false); -} - -/** - * irq_force_affinity - Force the irq affinity of a given irq - * @irq: Interrupt to set affinity - * @cpumask: cpumask - * - * Same as irq_set_affinity, but without checking the mask against - * online cpus. - * - * Solely for low level cpu hotplug code, where we need to make per - * cpu interrupts affine before the cpu becomes online. - */ -static inline int -irq_force_affinity(unsigned int irq, const struct cpumask *cpumask) -{ - return __irq_set_affinity(irq, cpumask, true); -} +extern int irq_set_affinity(unsigned int irq, const struct cpumask *cpumask); +extern int irq_force_affinity(unsigned int irq, const struct cpumask *cpumask); extern int irq_can_set_affinity(unsigned int irq); extern int irq_select_affinity(unsigned int irq); |
