projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1c6306
)
genirq: Provide irq_get_effective_affinity()
author
Thomas Gleixner
<tglx@linutronix.de>
Thu, 10 Dec 2020 19:25:40 +0000
(20:25 +0100)
committer
Thomas Gleixner
<tglx@linutronix.de>
Tue, 15 Dec 2020 15:19:30 +0000
(16:19 +0100)
Provide an accessor to the effective interrupt affinity mask. Going to be
used to replace open coded fiddling with the irq descriptor.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link:
https://lore.kernel.org/r/20201210194042.967177918@linutronix.de
include/linux/irq.h
patch
|
blob
|
history
diff --git
a/include/linux/irq.h
b/include/linux/irq.h
index
c332871
..
4aeb1c4
100644
(file)
--- a/
include/linux/irq.h
+++ b/
include/linux/irq.h
@@
-906,6
+906,13
@@
struct cpumask *irq_data_get_effective_affinity_mask(struct irq_data *d)
}
#endif
+static inline struct cpumask *irq_get_effective_affinity_mask(unsigned int irq)
+{
+ struct irq_data *d = irq_get_irq_data(irq);
+
+ return d ? irq_data_get_effective_affinity_mask(d) : NULL;
+}
+
unsigned int arch_dynirq_lower_bound(unsigned int from);
int __irq_alloc_descs(int irq, unsigned int from, unsigned int cnt, int node,