mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-01 15:15:19 -04:00
of/irq: Add interrupt affinity reporting interface
Plug the irq_populate_fwspec_info() helper into the OF layer to offer an interrupt affinity reporting function. Signed-off-by: Marc Zyngier <maz@kernel.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Tested-by: Will Deacon <will@kernel.org> Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com> Link: https://patch.msgid.link/20251020122944.3074811-4-maz@kernel.org
This commit is contained in:
committed by
Thomas Gleixner
parent
5324fe21ba
commit
5404f5c06d
@@ -43,6 +43,8 @@ extern int of_irq_parse_one(struct device_node *device, int index,
|
||||
struct of_phandle_args *out_irq);
|
||||
extern int of_irq_count(struct device_node *dev);
|
||||
extern int of_irq_get(struct device_node *dev, int index);
|
||||
extern const struct cpumask *of_irq_get_affinity(struct device_node *dev,
|
||||
int index);
|
||||
extern int of_irq_get_byname(struct device_node *dev, const char *name);
|
||||
extern int of_irq_to_resource_table(struct device_node *dev,
|
||||
struct resource *res, int nr_irqs);
|
||||
@@ -76,6 +78,11 @@ static inline int of_irq_get_byname(struct device_node *dev, const char *name)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
static inline const struct cpumask *of_irq_get_affinity(struct device_node *dev,
|
||||
int index)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
static inline int of_irq_to_resource_table(struct device_node *dev,
|
||||
struct resource *res, int nr_irqs)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user