diff options
author | Glauber de Oliveira Costa <gcosta@redhat.com> | 2008-03-19 13:25:58 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-04-17 11:41:02 -0400 |
commit | c70dcb74309cedfa64f0060f4a84792e873ceb53 (patch) | |
tree | eb2d31f3a9060632e82d4b6e0b648657b4d31859 /include/asm-x86 | |
parent | 9d97d0da71ad6c7ceb76b4e29b02bed1ee9d4cd2 (diff) |
x86: change boot_cpu_id to boot_cpu_physical_apicid
This is to match i386. The former name was cuter,
but the current is more meaningful and more general,
since cpu_id can be a logical id.
Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86')
-rw-r--r-- | include/asm-x86/apic.h | 1 | ||||
-rw-r--r-- | include/asm-x86/smp.h | 3 | ||||
-rw-r--r-- | include/asm-x86/smp_32.h | 5 | ||||
-rw-r--r-- | include/asm-x86/smp_64.h | 4 |
4 files changed, 3 insertions, 10 deletions
diff --git a/include/asm-x86/apic.h b/include/asm-x86/apic.h index 424e1dfe13c9..b804238489a1 100644 --- a/include/asm-x86/apic.h +++ b/include/asm-x86/apic.h | |||
@@ -44,7 +44,6 @@ extern int apic_runs_main_timer; | |||
44 | extern int ioapic_force; | 44 | extern int ioapic_force; |
45 | extern int disable_apic; | 45 | extern int disable_apic; |
46 | extern int disable_apic_timer; | 46 | extern int disable_apic_timer; |
47 | extern unsigned boot_cpu_id; | ||
48 | 47 | ||
49 | /* | 48 | /* |
50 | * Basic functions accessing APICs. | 49 | * Basic functions accessing APICs. |
diff --git a/include/asm-x86/smp.h b/include/asm-x86/smp.h index 78ef16dd194b..2ad2f4ffe498 100644 --- a/include/asm-x86/smp.h +++ b/include/asm-x86/smp.h | |||
@@ -109,6 +109,9 @@ extern void prefill_possible_map(void); | |||
109 | extern unsigned long setup_trampoline(void); | 109 | extern unsigned long setup_trampoline(void); |
110 | 110 | ||
111 | void smp_store_cpu_info(int id); | 111 | void smp_store_cpu_info(int id); |
112 | #define cpu_physical_id(cpu) per_cpu(x86_cpu_to_apicid, cpu) | ||
113 | #else | ||
114 | #define cpu_physical_id(cpu) boot_cpu_physical_apicid | ||
112 | #endif | 115 | #endif |
113 | 116 | ||
114 | #ifdef CONFIG_X86_32 | 117 | #ifdef CONFIG_X86_32 |
diff --git a/include/asm-x86/smp_32.h b/include/asm-x86/smp_32.h index 478f5564630f..f861d0415171 100644 --- a/include/asm-x86/smp_32.h +++ b/include/asm-x86/smp_32.h | |||
@@ -30,8 +30,6 @@ extern void zap_low_mappings (void); | |||
30 | DECLARE_PER_CPU(int, cpu_number); | 30 | DECLARE_PER_CPU(int, cpu_number); |
31 | #define raw_smp_processor_id() (x86_read_percpu(cpu_number)) | 31 | #define raw_smp_processor_id() (x86_read_percpu(cpu_number)) |
32 | 32 | ||
33 | #define cpu_physical_id(cpu) per_cpu(x86_cpu_to_apicid, cpu) | ||
34 | |||
35 | extern int safe_smp_processor_id(void); | 33 | extern int safe_smp_processor_id(void); |
36 | 34 | ||
37 | /* We don't mark CPUs online until __cpu_up(), so we need another measure */ | 35 | /* We don't mark CPUs online until __cpu_up(), so we need another measure */ |
@@ -41,10 +39,7 @@ static inline int num_booting_cpus(void) | |||
41 | } | 39 | } |
42 | 40 | ||
43 | #else /* CONFIG_SMP */ | 41 | #else /* CONFIG_SMP */ |
44 | |||
45 | #define safe_smp_processor_id() 0 | 42 | #define safe_smp_processor_id() 0 |
46 | #define cpu_physical_id(cpu) boot_cpu_physical_apicid | ||
47 | |||
48 | #endif /* !CONFIG_SMP */ | 43 | #endif /* !CONFIG_SMP */ |
49 | 44 | ||
50 | #ifdef CONFIG_X86_LOCAL_APIC | 45 | #ifdef CONFIG_X86_LOCAL_APIC |
diff --git a/include/asm-x86/smp_64.h b/include/asm-x86/smp_64.h index be870a4881fc..fd709cbba4d1 100644 --- a/include/asm-x86/smp_64.h +++ b/include/asm-x86/smp_64.h | |||
@@ -22,7 +22,6 @@ extern int smp_call_function_mask(cpumask_t mask, void (*func)(void *), | |||
22 | #ifdef CONFIG_SMP | 22 | #ifdef CONFIG_SMP |
23 | 23 | ||
24 | #define raw_smp_processor_id() read_pda(cpunumber) | 24 | #define raw_smp_processor_id() read_pda(cpunumber) |
25 | #define cpu_physical_id(cpu) per_cpu(x86_cpu_to_apicid, cpu) | ||
26 | 25 | ||
27 | #define stack_smp_processor_id() \ | 26 | #define stack_smp_processor_id() \ |
28 | ({ \ | 27 | ({ \ |
@@ -41,9 +40,6 @@ static inline int num_booting_cpus(void) | |||
41 | } | 40 | } |
42 | 41 | ||
43 | #else /* CONFIG_SMP */ | 42 | #else /* CONFIG_SMP */ |
44 | |||
45 | extern unsigned int boot_cpu_id; | ||
46 | #define cpu_physical_id(cpu) boot_cpu_id | ||
47 | #define stack_smp_processor_id() 0 | 43 | #define stack_smp_processor_id() 0 |
48 | 44 | ||
49 | #endif /* !CONFIG_SMP */ | 45 | #endif /* !CONFIG_SMP */ |