From: Shaokun Zhang Date: Mon, 18 Feb 2019 13:05:01 +0000 (+0800) Subject: x86/smpboot: Remove unused phys_id variable X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f91fecc09e498529230b4d5053cb361619a0c42d;p=linux.git x86/smpboot: Remove unused phys_id variable The 'phys_id' local variable became unused after commit ce4b1b16502b ("x86/smpboot: Initialize secondary CPU only if master CPU will wait for it"). Remove it. Signed-off-by: Shaokun Zhang Signed-off-by: Borislav Petkov Cc: Alison Schofield Cc: "H. Peter Anvin" Cc: Igor Mammedov Cc: Ingo Molnar Cc: Konrad Rzeszutek Wilk Cc: Mike Rapoport Cc: Pu Wen Cc: Suravee Suthikulpanit Cc: Thomas Gleixner Cc: x86-ml Cc: Yazen Ghannam Cc: Zhenzhong Duan Link: https://lkml.kernel.org/r/1550495101-41755-1-git-send-email-zhangshaokun@hisilicon.com --- diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index ccd1f2a8e5577..5d5421b48e557 100644 --- a/arch/x86/kernel/smpboot.c +++ b/arch/x86/kernel/smpboot.c @@ -149,7 +149,7 @@ static inline void smpboot_restore_warm_reset_vector(void) */ static void smp_callin(void) { - int cpuid, phys_id; + int cpuid; /* * If waken up by an INIT in an 82489DX configuration @@ -159,11 +159,6 @@ static void smp_callin(void) */ cpuid = smp_processor_id(); - /* - * (This works even if the APIC is not enabled.) - */ - phys_id = read_apic_id(); - /* * the boot CPU has finished the init stage and is spinning * on callin_map until we finish. We are free to set up this