Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2719478imj; Mon, 18 Feb 2019 10:53:21 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib/O1YC2aK3bPiPfWqsAwJKgPuNfCC4cdfHrvtlX9cDVNHlkkmaHwM3P/BXOPX8ezomXt6z X-Received: by 2002:a63:4913:: with SMTP id w19mr19876079pga.394.1550516001482; Mon, 18 Feb 2019 10:53:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550516001; cv=none; d=google.com; s=arc-20160816; b=q+xAacKmwaGjnx9k72GU+Y3KiQ19ub/wz404zCCXEluX57OoVUOUBf0cMkHtuHc4J0 u0O8JE/JAwRwGZtPeWDvir4SJyXNPzMQR5Da2I8ksMfwtlUHACTv/zFxA5jFnCUtZzoL 6ZwRptXNf7n5ZJKr7uEAYOCLcGByLbDq82vgpc6Zu/qJpiOdAGB9sPHUZRx9Aw3pizsS k8SnyRo8rffpc7TohXaOeMnvO+8/Ub3XX4rgz3b9V3l4egPSNfR69ND3mfsAJU7XTNov sfvzULJCrisO254ov8Sj+lPhnshBO9u7Ltsc84fvZKysjx8FEGWgkycGSi31EtTACsjb fTBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date; bh=6B3qVN70qy2QBGMim1rd0T8+KBdTBG6qdXgSbtNQZbg=; b=m4m4YYeYYrMfy2CUF/kHDNznKQoHEemvKSxYIjLahn3sAvwtr2bmbYV+rfByENKryt dzOU/b8LmLNq1sX8pzPJAXRUbW/cc8fvnrXBYhe63+QOFx4+Kl2/nSKFCNIEwejfgSa6 pNvbfBAgQ7Yor0t4L7KSg/Y6oaUz32j7Ff1jPW9/5/lhXMbocmhk8AsYRAasFQof073t RJrTKQJjcz3aXVidoEzHTp9ipGZBhBoTVxEtLj+5Me9264fnC77nv1SHiHlf6BRWg3E8 lPbpI7DD+U0U72rKUpm3CF/PaBFovA6sSPkQLUfpPhY+y8iOOw+nwH1ZnhyLsfQFmHj5 iiJw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j10si11609090plk.238.2019.02.18.10.53.06; Mon, 18 Feb 2019 10:53:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389419AbfBRQfI (ORCPT + 99 others); Mon, 18 Feb 2019 11:35:08 -0500 Received: from terminus.zytor.com ([198.137.202.136]:42703 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732547AbfBRQfI (ORCPT ); Mon, 18 Feb 2019 11:35:08 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x1IGYEge2650898 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 18 Feb 2019 08:34:14 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x1IGYCMV2650892; Mon, 18 Feb 2019 08:34:12 -0800 Date: Mon, 18 Feb 2019 08:34:12 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Shaokun Zhang Message-ID: Cc: imammedo@redhat.com, tglx@linutronix.de, puwen@hygon.cn, x86@kernel.org, suravee.suthikulpanit@amd.com, bp@suse.de, mingo@redhat.com, zhenzhong.duan@oracle.com, mingo@kernel.org, yazen.ghannam@amd.com, linux-kernel@vger.kernel.org, zhangshaokun@hisilicon.com, konrad.wilk@oracle.com, rppt@linux.vnet.ibm.com, hpa@zytor.com, alison.schofield@intel.com Reply-To: alison.schofield@intel.com, hpa@zytor.com, konrad.wilk@oracle.com, rppt@linux.vnet.ibm.com, mingo@kernel.org, zhangshaokun@hisilicon.com, yazen.ghannam@amd.com, linux-kernel@vger.kernel.org, mingo@redhat.com, zhenzhong.duan@oracle.com, bp@suse.de, suravee.suthikulpanit@amd.com, x86@kernel.org, imammedo@redhat.com, puwen@hygon.cn, tglx@linutronix.de In-Reply-To: <1550495101-41755-1-git-send-email-zhangshaokun@hisilicon.com> References: <1550495101-41755-1-git-send-email-zhangshaokun@hisilicon.com> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/cleanups] x86/smpboot: Remove unused phys_id variable Git-Commit-ID: f91fecc09e498529230b4d5053cb361619a0c42d X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00, T_DATE_IN_FUTURE_96_Q autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: f91fecc09e498529230b4d5053cb361619a0c42d Gitweb: https://git.kernel.org/tip/f91fecc09e498529230b4d5053cb361619a0c42d Author: Shaokun Zhang AuthorDate: Mon, 18 Feb 2019 21:05:01 +0800 Committer: Borislav Petkov CommitDate: Mon, 18 Feb 2019 17:09:24 +0100 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 --- arch/x86/kernel/smpboot.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/x86/kernel/smpboot.c b/arch/x86/kernel/smpboot.c index ccd1f2a8e557..5d5421b48e55 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