Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

irqdomain: Delete irq_domain_add_tree()

No in-tree users anymore.

[ tglx: Remove the reference in the Chinese documentation as well ]

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://patch.msgid.link/20251202202327.1444693-1-andriy.shevchenko@linux.intel.com

authored by

Andy Shevchenko and committed by
Thomas Gleixner
55026a96 89acaa55

-20
-4
Documentation/translations/zh_CN/core-api/irq/irq-domain.rst
··· 109 109 如果hwirq号可以非常大,树状映射是一个很好的选择,因为它不需要分配一个和最大hwirq 110 110 号一样大的表。 缺点是,hwirq到IRQ号的查找取决于表中有多少条目。 111 111 112 - irq_domain_add_tree()和irq_domain_create_tree()在功能上是等价的,除了第一 113 - 个参数不同——前者接受一个Open Firmware特定的 'struct device_node' ,而后者接受 114 - 一个更通用的抽象 'struct fwnode_handle' 。 115 - 116 112 很少有驱动应该需要这个映射。 117 113 118 114 无映射
-16
include/linux/irqdomain.h
··· 730 730 } 731 731 #endif 732 732 733 - static inline struct irq_domain *irq_domain_add_tree(struct device_node *of_node, 734 - const struct irq_domain_ops *ops, 735 - void *host_data) 736 - { 737 - struct irq_domain_info info = { 738 - .fwnode = of_fwnode_handle(of_node), 739 - .hwirq_max = ~0U, 740 - .ops = ops, 741 - .host_data = host_data, 742 - }; 743 - struct irq_domain *d; 744 - 745 - d = irq_domain_instantiate(&info); 746 - return IS_ERR(d) ? NULL : d; 747 - } 748 - 749 733 static inline struct irq_domain *irq_domain_add_linear(struct device_node *of_node, 750 734 unsigned int size, 751 735 const struct irq_domain_ops *ops,