Skip to content

Commit a1652bb

Browse files
jdelvareIngo Molnar
authored andcommitted
x86/boot: Spell out "boot CPU" for BP
It's not obvious to everybody that BP stands for boot processor. At least it was not for me. And BP is also a CPU register on x86, so it is ambiguous. Spell out "boot CPU" everywhere instead. Signed-off-by: Jean Delvare <jdelvare@suse.de> Cc: Alok Kataria <akataria@vmware.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Ingo Molnar <mingo@kernel.org>
1 parent 9e66317 commit a1652bb

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

arch/x86/include/asm/mpspec_def.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ struct mpc_table {
5858
#define MP_TRANSLATION 192
5959

6060
#define CPU_ENABLED 1 /* Processor is available */
61-
#define CPU_BOOTPROCESSOR 2 /* Processor is the BP */
61+
#define CPU_BOOTPROCESSOR 2 /* Processor is the boot CPU */
6262

6363
#define CPU_STEPPING_MASK 0x000F
6464
#define CPU_MODEL_MASK 0x00F0

arch/x86/kernel/apic/apic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1462,7 +1462,7 @@ void setup_local_APIC(void)
14621462
/*
14631463
* Set up LVT0, LVT1:
14641464
*
1465-
* set up through-local-APIC on the BP's LINT0. This is not
1465+
* set up through-local-APIC on the boot CPU's LINT0. This is not
14661466
* strictly necessary in pure symmetric-IO mode, but sometimes
14671467
* we delegate interrupts to the 8259A.
14681468
*/

arch/x86/kernel/cpu/common.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -863,8 +863,8 @@ static void identify_cpu_without_cpuid(struct cpuinfo_x86 *c)
863863
* cache alignment.
864864
* The others are not touched to avoid unwanted side effects.
865865
*
866-
* WARNING: this function is only called on the BP. Don't add code here
867-
* that is supposed to run on all CPUs.
866+
* WARNING: this function is only called on the boot CPU. Don't add code
867+
* here that is supposed to run on all CPUs.
868868
*/
869869
static void __init early_identify_cpu(struct cpuinfo_x86 *c)
870870
{

arch/x86/kernel/setup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ void __init setup_arch(char **cmdline_p)
10451045

10461046
/*
10471047
* VMware detection requires dmi to be available, so this
1048-
* needs to be done after dmi_scan_machine, for the BP.
1048+
* needs to be done after dmi_scan_machine(), for the boot CPU.
10491049
*/
10501050
init_hypervisor_platform();
10511051

arch/x86/kernel/smpboot.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ static void notrace start_secondary(void *unused)
249249
/* otherwise gcc will move up smp_processor_id before the cpu_init */
250250
barrier();
251251
/*
252-
* Check TSC synchronization with the BP:
252+
* Check TSC synchronization with the boot CPU:
253253
*/
254254
check_tsc_sync_target();
255255

0 commit comments

Comments
 (0)