]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
x86/boot: Spell out "boot CPU" for BP
authorJean Delvare <jdelvare@suse.de>
Tue, 3 Oct 2017 09:47:27 +0000 (11:47 +0200)
committerIngo Molnar <mingo@kernel.org>
Tue, 3 Oct 2017 16:41:23 +0000 (18:41 +0200)
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>
arch/x86/include/asm/mpspec_def.h
arch/x86/kernel/apic/apic.c
arch/x86/kernel/cpu/common.c
arch/x86/kernel/setup.c
arch/x86/kernel/smpboot.c

index b31f8c098271ffc59c59002c18701e1f4ab54d33..298ce6284b5632cbeb7f7dc1453acfc30b4e52f3 100644 (file)
@@ -58,7 +58,7 @@ struct mpc_table {
 #define        MP_TRANSLATION          192
 
 #define CPU_ENABLED            1       /* Processor is available */
-#define CPU_BOOTPROCESSOR      2       /* Processor is the BP */
+#define CPU_BOOTPROCESSOR      2       /* Processor is the boot CPU */
 
 #define CPU_STEPPING_MASK      0x000F
 #define CPU_MODEL_MASK         0x00F0
index d705c769f77d52ce55e4f7d5d32b9853ceb40394..0b7079f0fb9c3b77f8f2970faa8fc40b70a4fc49 100644 (file)
@@ -1462,7 +1462,7 @@ void setup_local_APIC(void)
        /*
         * Set up LVT0, LVT1:
         *
-        * set up through-local-APIC on the BP's LINT0. This is not
+        * set up through-local-APIC on the boot CPU's LINT0. This is not
         * strictly necessary in pure symmetric-IO mode, but sometimes
         * we delegate interrupts to the 8259A.
         */
index c9176bae7fd8cdb0e85f6d60766a809b9b36aa42..03f9a1a8a314b713afb6293fb3180b6642f15ef6 100644 (file)
@@ -863,8 +863,8 @@ static void identify_cpu_without_cpuid(struct cpuinfo_x86 *c)
  * cache alignment.
  * The others are not touched to avoid unwanted side effects.
  *
- * WARNING: this function is only called on the BP.  Don't add code here
- * that is supposed to run on all CPUs.
+ * WARNING: this function is only called on the boot CPU.  Don't add code
+ * here that is supposed to run on all CPUs.
  */
 static void __init early_identify_cpu(struct cpuinfo_x86 *c)
 {
index 0957dd73d127554803f35d5be45dcddb845ca741..cb71626d49da7d89c3f8f7de96df2d9d84828a04 100644 (file)
@@ -1045,7 +1045,7 @@ void __init setup_arch(char **cmdline_p)
 
        /*
         * VMware detection requires dmi to be available, so this
-        * needs to be done after dmi_scan_machine, for the BP.
+        * needs to be done after dmi_scan_machine(), for the boot CPU.
         */
        init_hypervisor_platform();
 
index ad59edd84de70cfb978b8c0bc2ac38b892418b71..a98253e183be84d343ad306f817c90847cf572e3 100644 (file)
@@ -249,7 +249,7 @@ static void notrace start_secondary(void *unused)
        /* otherwise gcc will move up smp_processor_id before the cpu_init */
        barrier();
        /*
-        * Check TSC synchronization with the BP:
+        * Check TSC synchronization with the boot CPU:
         */
        check_tsc_sync_target();