Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2418039imj; Mon, 18 Feb 2019 05:45:45 -0800 (PST) X-Google-Smtp-Source: AHgI3IZJx6b65KxU9lCPKvod/veWjY7f1NlFyYmwW89KMXCKYDKnk2rWCVoEUrYG3VekOpTRqXRi X-Received: by 2002:a17:902:7890:: with SMTP id q16mr3400354pll.63.1550497545310; Mon, 18 Feb 2019 05:45:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550497545; cv=none; d=google.com; s=arc-20160816; b=iDWmb5v+ZFRLWSsteADzo6C2zCzQAttjJZ8mY8Lp3jFUsC4RxIjWEMlBZxx02qxO7K +nrqxj9ih85diSDQqZ2XXimpCXNK2o45YYpOuCnouhbRoMWiQAN179QxIgnJDn1sYoUD VqjkOaDenBnNXrwBBBRnQEBlNemTPyL5KnM9JqAIMGE2dKnaq65YaEPQMrIDj35Zlf5y zVce56bG5SSqizWSnjwzhMlm8QCPM6g33gU4z88ahsuxv9fMp9ZX4O3/jFhVnLX/EAcQ b7cb7yUZPPRA3dqMKfSA+hStDfT14pomVbO+ajriZ8jR/h8eTm9Rlc+U5oGfi3RQ2pP9 JFVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=a9LmG37eTfLv+IFvBrAqPTDw4qKKS5La4PBgLc1O/i0=; b=JMwB8LHQuOgXHqnsAp9KcnMahzjFZ2x6WjJ+VuguL8PuD0GGKJHeTC/fyR8DlG+yl8 zdjZPxSxHMwTgXmCRH+GovhN953k+5/3OXOR9E11hm7rRztexwrIJz4ZtW0Ri1c6yLMU OUfZGeALZvz97gjqkIq4Q9Oej6OBdoRWzHECFLzGBts7lcKWtYwZQtCf6AvF4HrqIEwL eKhB8LIiYba0NhqjcMadU9ySQ9wdS9X80MK38kOXDuUPTW6VuIwgM1Jq2yycLHIIaJV8 DpwTA03h7SbQQjvDtXu3FAfES3GEkREb4Iczk/c3ZMz9UAgaxgfq7ewGyKeemE7A1a7u jvGw== 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 l33si13875627pld.142.2019.02.18.05.45.29; Mon, 18 Feb 2019 05:45:45 -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 S1729990AbfBRNF7 (ORCPT + 99 others); Mon, 18 Feb 2019 08:05:59 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:3665 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728833AbfBRNF7 (ORCPT ); Mon, 18 Feb 2019 08:05:59 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 19A6297C14510CBF73B7; Mon, 18 Feb 2019 21:05:54 +0800 (CST) Received: from localhost.localdomain (10.67.212.132) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.408.0; Mon, 18 Feb 2019 21:05:48 +0800 From: Shaokun Zhang To: , CC: Shaokun Zhang , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Igor Mammedov Subject: [PATCH] x86/smpboot: Remove unused phys_id variable Date: Mon, 18 Feb 2019 21:05:01 +0800 Message-ID: <1550495101-41755-1-git-send-email-zhangshaokun@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.212.132] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: "H. Peter Anvin" Cc: Igor Mammedov Signed-off-by: Shaokun Zhang --- 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 @@ -160,11 +160,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 * CPU, first the APIC. (this is probably redundant on most -- 2.7.4