x86, genapic: rename int_delivery_mode, et. al.
authorIngo Molnar <mingo@elte.hu>
Wed, 28 Jan 2009 03:02:31 +0000 (04:02 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 28 Jan 2009 22:20:13 +0000 (23:20 +0100)
int_delivery_mode is supposed to mean 'interrupt delivery mode', but
it's quite a misnomer as 'int' we usually think of as an integer type ...

The standard naming for such attributes is 'irq' - so rename the following
fields and macros:

 int_delivery_mode => irq_delivery_mode
 INT_DELIVERY_MODE => IRQ_DELIVERY_MODE
 int_dest_mode     => irq_dest_mode
 INT_DEST_MODE     => IRQ_DEST_MODE

Signed-off-by: Ingo Molnar <mingo@elte.hu>
17 files changed:
arch/x86/include/asm/bigsmp/apic.h
arch/x86/include/asm/es7000/apic.h
arch/x86/include/asm/genapic.h
arch/x86/include/asm/mach-default/mach_apic.h
arch/x86/include/asm/mach-generic/mach_apic.h
arch/x86/include/asm/numaq/apic.h
arch/x86/include/asm/summit/apic.h
arch/x86/kernel/genapic_flat_64.c
arch/x86/kernel/genx2apic_cluster.c
arch/x86/kernel/genx2apic_phys.c
arch/x86/kernel/genx2apic_uv_x.c
arch/x86/kernel/io_apic.c
arch/x86/mach-generic/bigsmp.c
arch/x86/mach-generic/default.c
arch/x86/mach-generic/es7000.c
arch/x86/mach-generic/numaq.c
arch/x86/mach-generic/summit.c

index 42c56df3ff32d2331bd11c46f17c7dde419c45a1..8ff8bba88338430db6f0b22543155457e39c1932 100644 (file)
@@ -21,8 +21,8 @@ static inline const cpumask_t *target_cpus(void)
 #undef APIC_DEST_LOGICAL
 #define APIC_DEST_LOGICAL      0
 #define APIC_DFR_VALUE         (APIC_DFR_FLAT)
-#define INT_DELIVERY_MODE      (dest_Fixed)
-#define INT_DEST_MODE          (0)    /* phys delivery to target proc */
+#define IRQ_DELIVERY_MODE      (dest_Fixed)
+#define IRQ_DEST_MODE          (0)    /* phys delivery to target proc */
 #define NO_BALANCE_IRQ         (0)
 
 static inline unsigned long check_apicid_used(physid_mask_t bitmap, int apicid)
index a1819b510de35856981eb157f92422d82a9a5660..830e8731cc05d4131a882e8e6ac05cfd211b8a9d 100644 (file)
@@ -27,8 +27,8 @@ static inline const cpumask_t *target_cpus(void)
 #define NO_BALANCE_IRQ_CLUSTER         (1)
 
 #define APIC_DFR_VALUE         (APIC_DFR_FLAT)
-#define INT_DELIVERY_MODE      (dest_Fixed)
-#define INT_DEST_MODE          (0)    /* phys delivery to target procs */
+#define IRQ_DELIVERY_MODE      (dest_Fixed)
+#define IRQ_DEST_MODE          (0)    /* phys delivery to target procs */
 #define NO_BALANCE_IRQ         (0)
 #undef  APIC_DEST_LOGICAL
 #define APIC_DEST_LOGICAL      0x0
index 108abdf6953b1455db92b4cb733d3b97f6b7fee4..e998e3df5d23a5ba377b127192e67d0ea31eb20f 100644 (file)
@@ -23,8 +23,8 @@ struct genapic {
        int (*acpi_madt_oem_check)(char *oem_id, char *oem_table_id);
        int (*apic_id_registered)(void);
 
-       u32 int_delivery_mode;
-       u32 int_dest_mode;
+       u32 irq_delivery_mode;
+       u32 irq_dest_mode;
 
        const struct cpumask *(*target_cpus)(void);
 
index 6a454fa0b433204eb3d2581743473f216eb6a66b..b5364793262a801bcf6555e20f5cc90bcbe524f2 100644 (file)
@@ -22,8 +22,8 @@ static inline const struct cpumask *target_cpus(void)
 
 #ifdef CONFIG_X86_64
 #include <asm/genapic.h>
-#define INT_DELIVERY_MODE (apic->int_delivery_mode)
-#define INT_DEST_MODE (apic->int_dest_mode)
+#define IRQ_DELIVERY_MODE (apic->irq_delivery_mode)
+#define IRQ_DEST_MODE (apic->irq_dest_mode)
 #define TARGET_CPUS      (apic->target_cpus())
 #define init_apic_ldr (apic->init_apic_ldr)
 #define cpu_mask_to_apicid (apic->cpu_mask_to_apicid)
@@ -35,8 +35,8 @@ static inline const struct cpumask *target_cpus(void)
 #define wakeup_secondary_cpu (apic->wakeup_cpu)
 extern void setup_apic_routing(void);
 #else
-#define INT_DELIVERY_MODE dest_LowestPrio
-#define INT_DEST_MODE 1     /* logical delivery broadcast to all procs */
+#define IRQ_DELIVERY_MODE dest_LowestPrio
+#define IRQ_DEST_MODE 1     /* logical delivery broadcast to all procs */
 #define TARGET_CPUS (target_cpus())
 #define wakeup_secondary_cpu wakeup_secondary_cpu_via_init
 /*
index cc6e9d70f06e2e2f284c8c56e17aab9ed08199c9..03492f2219ed8dc1b5670af95a203edfb0fb2733 100644 (file)
@@ -5,8 +5,8 @@
 
 #define esr_disable (apic->ESR_DISABLE)
 #define NO_BALANCE_IRQ (apic->no_balance_irq)
-#define INT_DELIVERY_MODE (apic->int_delivery_mode)
-#define INT_DEST_MODE (apic->int_dest_mode)
+#define IRQ_DELIVERY_MODE (apic->irq_delivery_mode)
+#define IRQ_DEST_MODE (apic->irq_dest_mode)
 #undef APIC_DEST_LOGICAL
 #define APIC_DEST_LOGICAL (apic->apic_destination_logical)
 #define TARGET_CPUS      (apic->target_cpus())
index 59b62b19d02c13b39da7c8cc0528542a23e195a6..d885e35df18e0e82f3214cb3b35519d0c001d0a7 100644 (file)
@@ -15,8 +15,8 @@ static inline const cpumask_t *target_cpus(void)
 #define NO_BALANCE_IRQ (1)
 #define esr_disable (1)
 
-#define INT_DELIVERY_MODE dest_LowestPrio
-#define INT_DEST_MODE 0     /* physical delivery on LOCAL quad */
+#define IRQ_DELIVERY_MODE dest_LowestPrio
+#define IRQ_DEST_MODE 0     /* physical delivery on LOCAL quad */
  
 static inline unsigned long check_apicid_used(physid_mask_t bitmap, int apicid)
 {
index a36ef6e4b1ff4a6165ca695dba8d936b37cadfbc..0b7d0d14e5689f7fa8d488bc771a7791acd40f3c 100644 (file)
@@ -24,8 +24,8 @@ static inline const cpumask_t *target_cpus(void)
        return &cpumask_of_cpu(0);
 }
 
-#define INT_DELIVERY_MODE (dest_LowestPrio)
-#define INT_DEST_MODE 1     /* logical delivery broadcast to all procs */
+#define IRQ_DELIVERY_MODE (dest_LowestPrio)
+#define IRQ_DEST_MODE 1     /* logical delivery broadcast to all procs */
 
 static inline unsigned long check_apicid_used(physid_mask_t bitmap, int apicid)
 {
index e9233374cef1c5aad7a5f5627f719167a530ddee..0a263d6bb5e270908445c9d5abfd08cde5738b1b 100644 (file)
@@ -180,8 +180,8 @@ struct genapic apic_flat =  {
        .acpi_madt_oem_check            = flat_acpi_madt_oem_check,
        .apic_id_registered             = flat_apic_id_registered,
 
-       .int_delivery_mode              = dest_LowestPrio,
-       .int_dest_mode                  = (APIC_DEST_LOGICAL != 0),
+       .irq_delivery_mode              = dest_LowestPrio,
+       .irq_dest_mode                  = (APIC_DEST_LOGICAL != 0),
 
        .target_cpus                    = flat_target_cpus,
        .ESR_DISABLE                    = 0,
@@ -326,8 +326,8 @@ struct genapic apic_physflat =  {
        .acpi_madt_oem_check            = physflat_acpi_madt_oem_check,
        .apic_id_registered             = flat_apic_id_registered,
 
-       .int_delivery_mode              = dest_Fixed,
-       .int_dest_mode                  = (APIC_DEST_PHYSICAL != 0),
+       .irq_delivery_mode              = dest_Fixed,
+       .irq_dest_mode                  = (APIC_DEST_PHYSICAL != 0),
 
        .target_cpus                    = physflat_target_cpus,
        .ESR_DISABLE                    = 0,
index fc855e503ac4e239dee1a7899f52affd75e8114c..e9ff7dc9a0f6f2cb4f889439b670545d5c025b68 100644 (file)
@@ -182,8 +182,8 @@ struct genapic apic_x2apic_cluster = {
        .acpi_madt_oem_check            = x2apic_acpi_madt_oem_check,
        .apic_id_registered             = x2apic_apic_id_registered,
 
-       .int_delivery_mode              = dest_LowestPrio,
-       .int_dest_mode                  = (APIC_DEST_LOGICAL != 0),
+       .irq_delivery_mode              = dest_LowestPrio,
+       .irq_dest_mode                  = (APIC_DEST_LOGICAL != 0),
 
        .target_cpus                    = x2apic_target_cpus,
        .ESR_DISABLE                    = 0,
index c98361fb7ee1f1d3456f052c6fa69279a36d4f4d..8141b5a88f61bc5eab600aa29b7f553ffa6b062c 100644 (file)
@@ -178,8 +178,8 @@ struct genapic apic_x2apic_phys = {
        .acpi_madt_oem_check            = x2apic_acpi_madt_oem_check,
        .apic_id_registered             = x2apic_apic_id_registered,
 
-       .int_delivery_mode              = dest_Fixed,
-       .int_dest_mode                  = (APIC_DEST_PHYSICAL != 0),
+       .irq_delivery_mode              = dest_Fixed,
+       .irq_dest_mode                  = (APIC_DEST_PHYSICAL != 0),
 
        .target_cpus                    = x2apic_target_cpus,
        .ESR_DISABLE                    = 0,
index 94f606f204a14e546476eb9c2a72e601747413d8..6a73cad0d3e965b8a497a0cb429527cf0d7f9745 100644 (file)
@@ -243,8 +243,8 @@ struct genapic apic_x2apic_uv_x = {
        .acpi_madt_oem_check            = uv_acpi_madt_oem_check,
        .apic_id_registered             = uv_apic_id_registered,
 
-       .int_delivery_mode              = dest_Fixed,
-       .int_dest_mode                  = (APIC_DEST_PHYSICAL != 0),
+       .irq_delivery_mode              = dest_Fixed,
+       .irq_dest_mode                  = (APIC_DEST_PHYSICAL != 0),
 
        .target_cpus                    = uv_target_cpus,
        .ESR_DISABLE                    = 0,
index 7283234229fe89f34db854b9c8a921bd30b82ade..5f967b9c9afdaa672ee7715d18686be6edeaec89 100644 (file)
@@ -1514,9 +1514,9 @@ static int setup_ioapic_entry(int apic_id, int irq,
                memset(&irte, 0, sizeof(irte));
 
                irte.present = 1;
-               irte.dst_mode = INT_DEST_MODE;
+               irte.dst_mode = IRQ_DEST_MODE;
                irte.trigger_mode = trigger;
-               irte.dlvry_mode = INT_DELIVERY_MODE;
+               irte.dlvry_mode = IRQ_DELIVERY_MODE;
                irte.vector = vector;
                irte.dest_id = IRTE_DEST(destination);
 
@@ -1529,8 +1529,8 @@ static int setup_ioapic_entry(int apic_id, int irq,
        } else
 #endif
        {
-               entry->delivery_mode = INT_DELIVERY_MODE;
-               entry->dest_mode = INT_DEST_MODE;
+               entry->delivery_mode = IRQ_DELIVERY_MODE;
+               entry->dest_mode = IRQ_DEST_MODE;
                entry->dest = destination;
        }
 
@@ -1659,10 +1659,10 @@ static void __init setup_timer_IRQ0_pin(unsigned int apic_id, unsigned int pin,
         * We use logical delivery to get the timer IRQ
         * to the first CPU.
         */
-       entry.dest_mode = INT_DEST_MODE;
+       entry.dest_mode = IRQ_DEST_MODE;
        entry.mask = 1;                                 /* mask IRQ now */
        entry.dest = cpu_mask_to_apicid(TARGET_CPUS);
-       entry.delivery_mode = INT_DELIVERY_MODE;
+       entry.delivery_mode = IRQ_DELIVERY_MODE;
        entry.polarity = 0;
        entry.trigger = 0;
        entry.vector = vector;
@@ -3279,9 +3279,9 @@ static int msi_compose_msg(struct pci_dev *pdev, unsigned int irq, struct msi_ms
                memset (&irte, 0, sizeof(irte));
 
                irte.present = 1;
-               irte.dst_mode = INT_DEST_MODE;
+               irte.dst_mode = IRQ_DEST_MODE;
                irte.trigger_mode = 0; /* edge */
-               irte.dlvry_mode = INT_DELIVERY_MODE;
+               irte.dlvry_mode = IRQ_DELIVERY_MODE;
                irte.vector = cfg->vector;
                irte.dest_id = IRTE_DEST(dest);
 
@@ -3299,10 +3299,10 @@ static int msi_compose_msg(struct pci_dev *pdev, unsigned int irq, struct msi_ms
                msg->address_hi = MSI_ADDR_BASE_HI;
                msg->address_lo =
                        MSI_ADDR_BASE_LO |
-                       ((INT_DEST_MODE == 0) ?
+                       ((IRQ_DEST_MODE == 0) ?
                                MSI_ADDR_DEST_MODE_PHYSICAL:
                                MSI_ADDR_DEST_MODE_LOGICAL) |
-                       ((INT_DELIVERY_MODE != dest_LowestPrio) ?
+                       ((IRQ_DELIVERY_MODE != dest_LowestPrio) ?
                                MSI_ADDR_REDIRECTION_CPU:
                                MSI_ADDR_REDIRECTION_LOWPRI) |
                        MSI_ADDR_DEST_ID(dest);
@@ -3310,7 +3310,7 @@ static int msi_compose_msg(struct pci_dev *pdev, unsigned int irq, struct msi_ms
                msg->data =
                        MSI_DATA_TRIGGER_EDGE |
                        MSI_DATA_LEVEL_ASSERT |
-                       ((INT_DELIVERY_MODE != dest_LowestPrio) ?
+                       ((IRQ_DELIVERY_MODE != dest_LowestPrio) ?
                                MSI_DATA_DELIVERY_FIXED:
                                MSI_DATA_DELIVERY_LOWPRI) |
                        MSI_DATA_VECTOR(cfg->vector);
@@ -3711,11 +3711,11 @@ int arch_setup_ht_irq(unsigned int irq, struct pci_dev *dev)
                        HT_IRQ_LOW_BASE |
                        HT_IRQ_LOW_DEST_ID(dest) |
                        HT_IRQ_LOW_VECTOR(cfg->vector) |
-                       ((INT_DEST_MODE == 0) ?
+                       ((IRQ_DEST_MODE == 0) ?
                                HT_IRQ_LOW_DM_PHYSICAL :
                                HT_IRQ_LOW_DM_LOGICAL) |
                        HT_IRQ_LOW_RQEOI_EDGE |
-                       ((INT_DELIVERY_MODE != dest_LowestPrio) ?
+                       ((IRQ_DELIVERY_MODE != dest_LowestPrio) ?
                                HT_IRQ_LOW_MT_FIXED :
                                HT_IRQ_LOW_MT_ARBITRATED) |
                        HT_IRQ_LOW_IRQ_MASKED;
@@ -3763,8 +3763,8 @@ int arch_enable_uv_irq(char *irq_name, unsigned int irq, int cpu, int mmr_blade,
        BUG_ON(sizeof(struct uv_IO_APIC_route_entry) != sizeof(unsigned long));
 
        entry->vector = cfg->vector;
-       entry->delivery_mode = INT_DELIVERY_MODE;
-       entry->dest_mode = INT_DEST_MODE;
+       entry->delivery_mode = IRQ_DELIVERY_MODE;
+       entry->dest_mode = IRQ_DEST_MODE;
        entry->polarity = 0;
        entry->trigger = 0;
        entry->mask = 0;
index 17abf5c624299747884e15b8309491e0cc83bc5b..c15c1aa2dc7f2c55e2610e27847996d22a8eb0b0 100644 (file)
@@ -64,8 +64,8 @@ struct genapic apic_bigsmp = {
        .acpi_madt_oem_check            = NULL,
        .apic_id_registered             = bigsmp_apic_id_registered,
 
-       .int_delivery_mode              = INT_DELIVERY_MODE,
-       .int_dest_mode                  = INT_DEST_MODE,
+       .irq_delivery_mode              = IRQ_DELIVERY_MODE,
+       .irq_dest_mode                  = IRQ_DEST_MODE,
 
        .target_cpus                    = target_cpus,
        .ESR_DISABLE                    = esr_disable,
index 1f30559e9d8d45ff7f6f8a9aaf58531c63fb4cff..d32b175eff88466153651dd01883b74bcf126cd1 100644 (file)
@@ -31,8 +31,8 @@ struct genapic apic_default = {
        .acpi_madt_oem_check            = NULL,
        .apic_id_registered             = default_apic_id_registered,
 
-       .int_delivery_mode              = INT_DELIVERY_MODE,
-       .int_dest_mode                  = INT_DEST_MODE,
+       .irq_delivery_mode              = IRQ_DELIVERY_MODE,
+       .irq_dest_mode                  = IRQ_DEST_MODE,
 
        .target_cpus                    = target_cpus,
        .ESR_DISABLE                    = esr_disable,
index d68ca0bce6757f434760d488ccd26af385ee0681..06653892953ec481d2e5a577136113ab5bf968d1 100644 (file)
@@ -21,8 +21,8 @@
 void __init es7000_update_genapic_to_cluster(void)
 {
        apic->target_cpus = target_cpus_cluster;
-       apic->int_delivery_mode = INT_DELIVERY_MODE_CLUSTER;
-       apic->int_dest_mode = INT_DEST_MODE_CLUSTER;
+       apic->irq_delivery_mode = INT_DELIVERY_MODE_CLUSTER;
+       apic->irq_dest_mode = INT_DEST_MODE_CLUSTER;
        apic->no_balance_irq = NO_BALANCE_IRQ_CLUSTER;
 
        apic->init_apic_ldr = init_apic_ldr_cluster;
@@ -107,8 +107,8 @@ struct genapic apic_es7000 = {
        .acpi_madt_oem_check            = es7000_acpi_madt_oem_check,
        .apic_id_registered             = es7000_apic_id_registered,
 
-       .int_delivery_mode              = INT_DELIVERY_MODE,
-       .int_dest_mode                  = INT_DEST_MODE,
+       .irq_delivery_mode              = IRQ_DELIVERY_MODE,
+       .irq_dest_mode                  = IRQ_DEST_MODE,
 
        .target_cpus                    = target_cpus,
        .ESR_DISABLE                    = esr_disable,
index b22a79b15b191739fc32ee74e212f6c257a08dc6..401957142fda9535d5a6cb3223956ab47c851354 100644 (file)
@@ -51,8 +51,8 @@ struct genapic apic_numaq = {
        .acpi_madt_oem_check            = NULL,
        .apic_id_registered             = numaq_apic_id_registered,
 
-       .int_delivery_mode              = INT_DELIVERY_MODE,
-       .int_dest_mode                  = INT_DEST_MODE,
+       .irq_delivery_mode              = IRQ_DELIVERY_MODE,
+       .irq_dest_mode                  = IRQ_DEST_MODE,
 
        .target_cpus                    = target_cpus,
        .ESR_DISABLE                    = esr_disable,
index 744fa1b86ef4f763de7996cc44902ad3e04baafb..946da7aa7622b45993017fc3dd595aadbbf5088a 100644 (file)
@@ -44,8 +44,8 @@ struct genapic apic_summit = {
        .acpi_madt_oem_check            = summit_acpi_madt_oem_check,
        .apic_id_registered             = summit_apic_id_registered,
 
-       .int_delivery_mode              = INT_DELIVERY_MODE,
-       .int_dest_mode                  = INT_DEST_MODE,
+       .irq_delivery_mode              = IRQ_DELIVERY_MODE,
+       .irq_dest_mode                  = IRQ_DEST_MODE,
 
        .target_cpus                    = target_cpus,
        .ESR_DISABLE                    = esr_disable,