Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp223387imm; Thu, 6 Sep 2018 01:08:20 -0700 (PDT) X-Google-Smtp-Source: ANB0VdawlC0RyI09TGLIRFX8Py/ASsPW5pMYgwrrRsxBa7StslrfNmk1U6/iWg7wrdkhnBVCvW/V X-Received: by 2002:a17:902:a58c:: with SMTP id az12-v6mr1490870plb.339.1536221300046; Thu, 06 Sep 2018 01:08:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536221300; cv=none; d=google.com; s=arc-20160816; b=vp9baK3A2MWQ2AcpgcOfRkS4kNJRXQvOX+e/4sQVwvni5YGRHOxHm4kU88Lizsd99g i2Fy3s6zN7CKIttjZZhj+WfF/K2//4CERVHispUB7YaJjAguxB665+EsHoI8oP1xNhbI 3tBwtwASZpyq2VvRc5Rh7lPhwlYo+dFgeOtIDQCOupQQhGGqn4zdlYG6qb0vZ177Iekm L7lt7aA+P75VRXHednYla2yq1irmyP+MIxAZR+wRdbTr4sNQ+0i1Jalr13Szciym1HUe oY6G+pc2Pj0D1RdUuTlGuELjhBSnMiTdpPAtBFQfYVtxX40xULUBgoVriYAKxHEt11xA yzyA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=paJhp/tul1fofnw/HNj9x8lOK+lGzk+qqTu/XSGx6Gw=; b=MpA062fMiYXuUQfGfMgs9PLPYEvI7Zk5J63gVvRpb6E7xWUVzuhWrA5NsmzzGuZ/Z+ FEHrfTpBCLD7h61iY9MWN1+3peAeCNAXFQRRjwm8cHM9hn4JX4xWqlcxOBxPdBJMh/l+ zqKBodciNl36ghf6OP3fI57WY5iknP0leo+/jvq4xlUzw4qYYmL8O0q9w2KJA2PR2RBl 3Bz4ReMpwAeEw02nbw15+pNJUup7A/Zpy/K1/SjeJlHv89+z1zKKvtj8wdn5U1jN8B/p KY5Mpl5L+TanPBSXlbZONdBO5tbbWyuae7YPI+5xZAUf0jcFFe7sCF7kQC1WNM965rMg FqIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=k+BKrsir; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p66-v6si4494592pfp.237.2018.09.06.01.08.04; Thu, 06 Sep 2018 01:08:20 -0700 (PDT) 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; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=k+BKrsir; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=wdc.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728241AbeIFMkj (ORCPT + 99 others); Thu, 6 Sep 2018 08:40:39 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:53554 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726053AbeIFMju (ORCPT ); Thu, 6 Sep 2018 08:39:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1536221195; x=1567757195; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=rn22RKN5Vd3GpklO+NDM1Y4QajHeBOsCO+uMXUM357s=; b=k+BKrsirkPvk9hObUvaQ5VRMiMosjldNN0VzLXE1hEynC4dSoV4NyeWJ gE5Rvtp/0Bf0nh0xvne/gFwuRw6UEXxHqeXcK0ONg0ENCCWObq0p0OQbX UvnQiC4eCaEFxwTxdmFyfIpJ3wEqOtrFvRUSdr8Q59kQySbCcDIUVmXRL CNjWDzPKiy2KFYD1fjTEy1Q1ogAupW4SH6628jAWorQxGtCZBfhRpw8jS Fg7W/AAiwoNNk+9fgD+WEKMwk/cnpETDIEJrD9ZSi/rYc9cqwMLqUGzBG uZ4ToLicWHrVwIoEsaVNpO0dNS/grobMum4SMtdOeN6Gjc9rB4LWJQOIt A==; X-IronPort-AV: E=Sophos;i="5.53,337,1531756800"; d="scan'208";a="186673955" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 06 Sep 2018 16:06:35 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP; 06 Sep 2018 00:52:13 -0700 Received: from jedi-01.sdcorp.global.sandisk.com (HELO jedi-01.int.fusionio.com) ([10.11.143.218]) by uls-op-cesaip02.wdc.com with ESMTP; 06 Sep 2018 01:05:38 -0700 From: Atish Patra To: palmer@sifive.com, linux-riscv@lists.infradead.org, hch@infradead.org, anup@brainfault.org Cc: mark.rutland@arm.com, atish.patra@wdc.com, tglx@linutronix.de, linux-kernel@vger.kernel.org, Damien.LeMoal@wdc.com, marc.zyngier@arm.com, jeremy.linton@arm.com, gregkh@linuxfoundation.org, jason@lakedaemon.net, catalin.marinas@arm.com, dmitriy@oss-tech.org, ard.biesheuvel@linaro.org Subject: [PATCH v3 07/12] RISC-V: Rename im_okay_therefore_i_am to found_boot_cpu Date: Thu, 6 Sep 2018 01:05:30 -0700 Message-Id: <1536221135-182613-8-git-send-email-atish.patra@wdc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1536221135-182613-1-git-send-email-atish.patra@wdc.com> References: <1536221135-182613-1-git-send-email-atish.patra@wdc.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Palmer Dabbelt The old name was a bit odd. Signed-off-by: Palmer Dabbelt Signed-off-by: Atish Patra --- arch/riscv/kernel/smpboot.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/arch/riscv/kernel/smpboot.c b/arch/riscv/kernel/smpboot.c index cfb0b02d..4a232600 100644 --- a/arch/riscv/kernel/smpboot.c +++ b/arch/riscv/kernel/smpboot.c @@ -50,7 +50,8 @@ void __init smp_prepare_cpus(unsigned int max_cpus) void __init setup_smp(void) { struct device_node *dn = NULL; - int hart, im_okay_therefore_i_am = 0; + int hart; + bool found_boot_cpu = false; while ((dn = of_find_node_by_type(dn, "cpu"))) { hart = riscv_of_processor_hartid(dn); @@ -58,13 +59,13 @@ void __init setup_smp(void) set_cpu_possible(hart, true); set_cpu_present(hart, true); if (hart == smp_processor_id()) { - BUG_ON(im_okay_therefore_i_am); - im_okay_therefore_i_am = 1; + BUG_ON(found_boot_cpu); + found_boot_cpu = true; } } } - BUG_ON(!im_okay_therefore_i_am); + BUG_ON(!found_boot_cpu); } int __cpu_up(unsigned int cpu, struct task_struct *tidle) -- 2.7.4