]> www.infradead.org Git - nvme.git/commitdiff
irqdomain: Rename irq_get_default_host() to irq_get_default_domain()
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Wed, 19 Mar 2025 09:28:56 +0000 (10:28 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 4 Apr 2025 14:39:10 +0000 (16:39 +0200)
Naming interrupt domains host is confusing at best and the irqdomain code
uses both domain and host inconsistently.

Therefore rename irq_get_default_host() to irq_get_default_domain().

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250319092951.37667-4-jirislaby@kernel.org
arch/mips/pci/pci-xtalk-bridge.c
arch/powerpc/kvm/book3s_hv.c
arch/powerpc/kvm/book3s_xive.c
arch/powerpc/platforms/powernv/pci-ioda.c
arch/powerpc/platforms/pseries/msi.c
drivers/irqchip/irq-armada-370-xp.c
include/linux/irqdomain.h
kernel/irq/irqdomain.c

index dae856fb3e5bb22698b985f8f962077595ae6cd0..e00c38620d140f5b9e99a04ef054f849bbb10ad7 100644 (file)
@@ -620,7 +620,7 @@ static int bridge_probe(struct platform_device *pdev)
        if (bridge_get_partnum(virt_to_phys((void *)bd->bridge_addr), partnum))
                return -EPROBE_DEFER; /* not available yet */
 
-       parent = irq_get_default_host();
+       parent = irq_get_default_domain();
        if (!parent)
                return -ENODEV;
        fn = irq_domain_alloc_named_fwnode("BRIDGE");
index 86bff159c51e3d1d465feb8d8e013b7503341bef..19f4d298dd17491f50cf128c977151eb2b37f18f 100644 (file)
@@ -6041,7 +6041,7 @@ static int kvmppc_set_passthru_irq(struct kvm *kvm, int host_irq, int guest_gsi)
         * the underlying calls, which will EOI the interrupt in real
         * mode, need an HW IRQ number mapped in the XICS IRQ domain.
         */
-       host_data = irq_domain_get_irq_data(irq_get_default_host(), host_irq);
+       host_data = irq_domain_get_irq_data(irq_get_default_domain(), host_irq);
        irq_map->r_hwirq = (unsigned int)irqd_to_hwirq(host_data);
 
        if (i == pimap->n_mapped)
index 1362c672387e3289f5fcad53ce8e2a4b529daf97..1302b5ac56728b370160bdaed879218fd00ec6f1 100644 (file)
@@ -1555,7 +1555,7 @@ int kvmppc_xive_set_mapped(struct kvm *kvm, unsigned long guest_irq,
        struct kvmppc_xive_src_block *sb;
        struct kvmppc_xive_irq_state *state;
        struct irq_data *host_data =
-               irq_domain_get_irq_data(irq_get_default_host(), host_irq);
+               irq_domain_get_irq_data(irq_get_default_domain(), host_irq);
        unsigned int hw_irq = (unsigned int)irqd_to_hwirq(host_data);
        u16 idx;
        u8 prio;
index d2a8e0287811d8a864676eec35a622d86ca44b4b..ae4b549b5ca0aa2661fd6cc0667226c48ce27455 100644 (file)
@@ -1881,7 +1881,7 @@ static const struct irq_domain_ops pnv_irq_domain_ops = {
 static int __init pnv_msi_allocate_domains(struct pci_controller *hose, unsigned int count)
 {
        struct pnv_phb *phb = hose->private_data;
-       struct irq_domain *parent = irq_get_default_host();
+       struct irq_domain *parent = irq_get_default_domain();
 
        hose->fwnode = irq_domain_alloc_named_id_fwnode("PNV-MSI", phb->opal_id);
        if (!hose->fwnode)
index fdc2f7f38dc9a18b4be89597e1ec450f30728166..f9d80111c322f25c58b2e8a48bc3487ff5282db6 100644 (file)
@@ -611,7 +611,7 @@ static const struct irq_domain_ops pseries_irq_domain_ops = {
 static int __pseries_msi_allocate_domains(struct pci_controller *phb,
                                          unsigned int count)
 {
-       struct irq_domain *parent = irq_get_default_host();
+       struct irq_domain *parent = irq_get_default_domain();
 
        phb->fwnode = irq_domain_alloc_named_id_fwnode("pSeries-MSI",
                                                       phb->global_number);
index 6218e5d20b50b7c9555324add25dd622f634cd9c..2aa6a51e05d0cf4a88f10d9adb222f3694e406d3 100644 (file)
@@ -564,7 +564,7 @@ static void mpic_reenable_percpu(struct mpic *mpic)
 
 static int mpic_starting_cpu(unsigned int cpu)
 {
-       struct mpic *mpic = irq_get_default_host()->host_data;
+       struct mpic *mpic = irq_get_default_domain()->host_data;
 
        mpic_perf_init(mpic);
        mpic_smp_cpu_init(mpic);
@@ -700,7 +700,7 @@ static void mpic_handle_cascade_irq(struct irq_desc *desc)
 
 static void __exception_irq_entry mpic_handle_irq(struct pt_regs *regs)
 {
-       struct mpic *mpic = irq_get_default_host()->host_data;
+       struct mpic *mpic = irq_get_default_domain()->host_data;
        irq_hw_number_t i;
        u32 irqstat;
 
index 4b5c495b5710d5fb1ffc61b3f5fee79f83a06b17..e9ab95fbc5a96714503b864662a7d3dd7c0d1b6b 100644 (file)
@@ -353,7 +353,7 @@ struct irq_domain *irq_domain_create_legacy(struct fwnode_handle *fwnode,
 struct irq_domain *irq_find_matching_fwspec(struct irq_fwspec *fwspec,
                                            enum irq_domain_bus_token bus_token);
 void irq_set_default_domain(struct irq_domain *domain);
-struct irq_domain *irq_get_default_host(void);
+struct irq_domain *irq_get_default_domain(void);
 int irq_domain_alloc_descs(int virq, unsigned int nr_irqs,
                           irq_hw_number_t hwirq, int node,
                           const struct irq_affinity_desc *affinity);
index 480fdc9e769ea96eb2ea1723cfb577fd768d240a..9d5c8651492de3d5ed1669c1888b3aab0a83badb 100644 (file)
@@ -590,7 +590,7 @@ void irq_set_default_domain(struct irq_domain *domain)
 EXPORT_SYMBOL_GPL(irq_set_default_domain);
 
 /**
- * irq_get_default_host() - Retrieve the "default" irq domain
+ * irq_get_default_domain() - Retrieve the "default" irq domain
  *
  * Returns: the default domain, if any.
  *
@@ -598,11 +598,11 @@ EXPORT_SYMBOL_GPL(irq_set_default_domain);
  * systems that cannot implement a firmware->fwnode mapping (which
  * both DT and ACPI provide).
  */
-struct irq_domain *irq_get_default_host(void)
+struct irq_domain *irq_get_default_domain(void)
 {
        return irq_default_domain;
 }
-EXPORT_SYMBOL_GPL(irq_get_default_host);
+EXPORT_SYMBOL_GPL(irq_get_default_domain);
 
 static bool irq_domain_is_nomap(struct irq_domain *domain)
 {