diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-01-27 22:02:31 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-01-28 17:20:13 -0500 |
commit | f8987a1093cc7a896137e264c24e04d4048e9f95 (patch) | |
tree | fbe21050e8b5547b64505544296890d9882bca78 /arch/x86/include | |
parent | 7ed248daa56156f2fd7175f90b62fc6397b0c7b7 (diff) |
x86, genapic: rename int_delivery_mode, et. al.
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>
Diffstat (limited to 'arch/x86/include')
-rw-r--r-- | arch/x86/include/asm/bigsmp/apic.h | 4 | ||||
-rw-r--r-- | arch/x86/include/asm/es7000/apic.h | 4 | ||||
-rw-r--r-- | arch/x86/include/asm/genapic.h | 4 | ||||
-rw-r--r-- | arch/x86/include/asm/mach-default/mach_apic.h | 8 | ||||
-rw-r--r-- | arch/x86/include/asm/mach-generic/mach_apic.h | 4 | ||||
-rw-r--r-- | arch/x86/include/asm/numaq/apic.h | 4 | ||||
-rw-r--r-- | arch/x86/include/asm/summit/apic.h | 4 |
7 files changed, 16 insertions, 16 deletions
diff --git a/arch/x86/include/asm/bigsmp/apic.h b/arch/x86/include/asm/bigsmp/apic.h index 42c56df3ff32..8ff8bba88338 100644 --- a/arch/x86/include/asm/bigsmp/apic.h +++ b/arch/x86/include/asm/bigsmp/apic.h | |||
@@ -21,8 +21,8 @@ static inline const cpumask_t *target_cpus(void) | |||
21 | #undef APIC_DEST_LOGICAL | 21 | #undef APIC_DEST_LOGICAL |
22 | #define APIC_DEST_LOGICAL 0 | 22 | #define APIC_DEST_LOGICAL 0 |
23 | #define APIC_DFR_VALUE (APIC_DFR_FLAT) | 23 | #define APIC_DFR_VALUE (APIC_DFR_FLAT) |
24 | #define INT_DELIVERY_MODE (dest_Fixed) | 24 | #define IRQ_DELIVERY_MODE (dest_Fixed) |
25 | #define INT_DEST_MODE (0) /* phys delivery to target proc */ | 25 | #define IRQ_DEST_MODE (0) /* phys delivery to target proc */ |
26 | #define NO_BALANCE_IRQ (0) | 26 | #define NO_BALANCE_IRQ (0) |
27 | 27 | ||
28 | static inline unsigned long check_apicid_used(physid_mask_t bitmap, int apicid) | 28 | static inline unsigned long check_apicid_used(physid_mask_t bitmap, int apicid) |
diff --git a/arch/x86/include/asm/es7000/apic.h b/arch/x86/include/asm/es7000/apic.h index a1819b510de3..830e8731cc05 100644 --- a/arch/x86/include/asm/es7000/apic.h +++ b/arch/x86/include/asm/es7000/apic.h | |||
@@ -27,8 +27,8 @@ static inline const cpumask_t *target_cpus(void) | |||
27 | #define NO_BALANCE_IRQ_CLUSTER (1) | 27 | #define NO_BALANCE_IRQ_CLUSTER (1) |
28 | 28 | ||
29 | #define APIC_DFR_VALUE (APIC_DFR_FLAT) | 29 | #define APIC_DFR_VALUE (APIC_DFR_FLAT) |
30 | #define INT_DELIVERY_MODE (dest_Fixed) | 30 | #define IRQ_DELIVERY_MODE (dest_Fixed) |
31 | #define INT_DEST_MODE (0) /* phys delivery to target procs */ | 31 | #define IRQ_DEST_MODE (0) /* phys delivery to target procs */ |
32 | #define NO_BALANCE_IRQ (0) | 32 | #define NO_BALANCE_IRQ (0) |
33 | #undef APIC_DEST_LOGICAL | 33 | #undef APIC_DEST_LOGICAL |
34 | #define APIC_DEST_LOGICAL 0x0 | 34 | #define APIC_DEST_LOGICAL 0x0 |
diff --git a/arch/x86/include/asm/genapic.h b/arch/x86/include/asm/genapic.h index 108abdf6953b..e998e3df5d23 100644 --- a/arch/x86/include/asm/genapic.h +++ b/arch/x86/include/asm/genapic.h | |||
@@ -23,8 +23,8 @@ struct genapic { | |||
23 | int (*acpi_madt_oem_check)(char *oem_id, char *oem_table_id); | 23 | int (*acpi_madt_oem_check)(char *oem_id, char *oem_table_id); |
24 | int (*apic_id_registered)(void); | 24 | int (*apic_id_registered)(void); |
25 | 25 | ||
26 | u32 int_delivery_mode; | 26 | u32 irq_delivery_mode; |
27 | u32 int_dest_mode; | 27 | u32 irq_dest_mode; |
28 | 28 | ||
29 | const struct cpumask *(*target_cpus)(void); | 29 | const struct cpumask *(*target_cpus)(void); |
30 | 30 | ||
diff --git a/arch/x86/include/asm/mach-default/mach_apic.h b/arch/x86/include/asm/mach-default/mach_apic.h index 6a454fa0b433..b5364793262a 100644 --- a/arch/x86/include/asm/mach-default/mach_apic.h +++ b/arch/x86/include/asm/mach-default/mach_apic.h | |||
@@ -22,8 +22,8 @@ static inline const struct cpumask *target_cpus(void) | |||
22 | 22 | ||
23 | #ifdef CONFIG_X86_64 | 23 | #ifdef CONFIG_X86_64 |
24 | #include <asm/genapic.h> | 24 | #include <asm/genapic.h> |
25 | #define INT_DELIVERY_MODE (apic->int_delivery_mode) | 25 | #define IRQ_DELIVERY_MODE (apic->irq_delivery_mode) |
26 | #define INT_DEST_MODE (apic->int_dest_mode) | 26 | #define IRQ_DEST_MODE (apic->irq_dest_mode) |
27 | #define TARGET_CPUS (apic->target_cpus()) | 27 | #define TARGET_CPUS (apic->target_cpus()) |
28 | #define init_apic_ldr (apic->init_apic_ldr) | 28 | #define init_apic_ldr (apic->init_apic_ldr) |
29 | #define cpu_mask_to_apicid (apic->cpu_mask_to_apicid) | 29 | #define cpu_mask_to_apicid (apic->cpu_mask_to_apicid) |
@@ -35,8 +35,8 @@ static inline const struct cpumask *target_cpus(void) | |||
35 | #define wakeup_secondary_cpu (apic->wakeup_cpu) | 35 | #define wakeup_secondary_cpu (apic->wakeup_cpu) |
36 | extern void setup_apic_routing(void); | 36 | extern void setup_apic_routing(void); |
37 | #else | 37 | #else |
38 | #define INT_DELIVERY_MODE dest_LowestPrio | 38 | #define IRQ_DELIVERY_MODE dest_LowestPrio |
39 | #define INT_DEST_MODE 1 /* logical delivery broadcast to all procs */ | 39 | #define IRQ_DEST_MODE 1 /* logical delivery broadcast to all procs */ |
40 | #define TARGET_CPUS (target_cpus()) | 40 | #define TARGET_CPUS (target_cpus()) |
41 | #define wakeup_secondary_cpu wakeup_secondary_cpu_via_init | 41 | #define wakeup_secondary_cpu wakeup_secondary_cpu_via_init |
42 | /* | 42 | /* |
diff --git a/arch/x86/include/asm/mach-generic/mach_apic.h b/arch/x86/include/asm/mach-generic/mach_apic.h index cc6e9d70f06e..03492f2219ed 100644 --- a/arch/x86/include/asm/mach-generic/mach_apic.h +++ b/arch/x86/include/asm/mach-generic/mach_apic.h | |||
@@ -5,8 +5,8 @@ | |||
5 | 5 | ||
6 | #define esr_disable (apic->ESR_DISABLE) | 6 | #define esr_disable (apic->ESR_DISABLE) |
7 | #define NO_BALANCE_IRQ (apic->no_balance_irq) | 7 | #define NO_BALANCE_IRQ (apic->no_balance_irq) |
8 | #define INT_DELIVERY_MODE (apic->int_delivery_mode) | 8 | #define IRQ_DELIVERY_MODE (apic->irq_delivery_mode) |
9 | #define INT_DEST_MODE (apic->int_dest_mode) | 9 | #define IRQ_DEST_MODE (apic->irq_dest_mode) |
10 | #undef APIC_DEST_LOGICAL | 10 | #undef APIC_DEST_LOGICAL |
11 | #define APIC_DEST_LOGICAL (apic->apic_destination_logical) | 11 | #define APIC_DEST_LOGICAL (apic->apic_destination_logical) |
12 | #define TARGET_CPUS (apic->target_cpus()) | 12 | #define TARGET_CPUS (apic->target_cpus()) |
diff --git a/arch/x86/include/asm/numaq/apic.h b/arch/x86/include/asm/numaq/apic.h index 59b62b19d02c..d885e35df18e 100644 --- a/arch/x86/include/asm/numaq/apic.h +++ b/arch/x86/include/asm/numaq/apic.h | |||
@@ -15,8 +15,8 @@ static inline const cpumask_t *target_cpus(void) | |||
15 | #define NO_BALANCE_IRQ (1) | 15 | #define NO_BALANCE_IRQ (1) |
16 | #define esr_disable (1) | 16 | #define esr_disable (1) |
17 | 17 | ||
18 | #define INT_DELIVERY_MODE dest_LowestPrio | 18 | #define IRQ_DELIVERY_MODE dest_LowestPrio |
19 | #define INT_DEST_MODE 0 /* physical delivery on LOCAL quad */ | 19 | #define IRQ_DEST_MODE 0 /* physical delivery on LOCAL quad */ |
20 | 20 | ||
21 | static inline unsigned long check_apicid_used(physid_mask_t bitmap, int apicid) | 21 | static inline unsigned long check_apicid_used(physid_mask_t bitmap, int apicid) |
22 | { | 22 | { |
diff --git a/arch/x86/include/asm/summit/apic.h b/arch/x86/include/asm/summit/apic.h index a36ef6e4b1ff..0b7d0d14e568 100644 --- a/arch/x86/include/asm/summit/apic.h +++ b/arch/x86/include/asm/summit/apic.h | |||
@@ -24,8 +24,8 @@ static inline const cpumask_t *target_cpus(void) | |||
24 | return &cpumask_of_cpu(0); | 24 | return &cpumask_of_cpu(0); |
25 | } | 25 | } |
26 | 26 | ||
27 | #define INT_DELIVERY_MODE (dest_LowestPrio) | 27 | #define IRQ_DELIVERY_MODE (dest_LowestPrio) |
28 | #define INT_DEST_MODE 1 /* logical delivery broadcast to all procs */ | 28 | #define IRQ_DEST_MODE 1 /* logical delivery broadcast to all procs */ |
29 | 29 | ||
30 | static inline unsigned long check_apicid_used(physid_mask_t bitmap, int apicid) | 30 | static inline unsigned long check_apicid_used(physid_mask_t bitmap, int apicid) |
31 | { | 31 | { |