Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6232375imm; Mon, 27 Aug 2018 12:00:47 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYCaRRnwmLZMzhrB//Iu6slntsDshjOpx5SkuDxjEIHtKLCpXrhwEuoXkL0TbrXLvxRDFBM X-Received: by 2002:a63:f751:: with SMTP id f17-v6mr13434468pgk.410.1535396447849; Mon, 27 Aug 2018 12:00:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535396447; cv=none; d=google.com; s=arc-20160816; b=PCqWzi07v+LcwqzgZi0AwyKM44V+wWUPp/mgkNl0aRXavesVoQMRr5gKjfJBUw8pIT 0CKYaDygadqPtFu5uud/sFLQq/opJxApNCm+5ZK/UF/ZWdcEI3fTrJi5lDhptmN+jU4W bwOYiYBF1+tU6y6GJ0K03h9eagpyOccpf7hYIqY5SN3LfMf/ZGz78v/wFwBeO2VPEOCH UUezs7jWXe+Y1wcGR73Nd+AwqVIs3FXT8RTNT3HP/jGe/IXkhfs6euxxWeTUFuHFQTY5 /FcPcvZ5IvvsQIWqhDL6pAH9j7eGGhimpAaX3rpbkYZG912nYQxYdWChyqgKX/+QdL5P G2sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:from:cc:references:in-reply-to :message-id:date:subject:dkim-signature:arc-authentication-results; bh=bNKko3u8kBTJzVjDJntTO3XHS/eMwTd63KoZkoMaobw=; b=i5qDu3BFG00KKfeqGq4s16aCfANG+ulYIzHa+MrQbkwwHU1w/r7au/MivpfyZc/MK6 IEI/C1NlLbySLIs+oM4OmNRAMUrtJIVaxLqK9aDzCDdwttMRQ0z+abh3TeAa4t7V6Gy8 mM/d/CQtYMbrZnyvHtF2YdVkEkXtp9MFw0tC69n7GNJLvMuFe9G/Ytnc60zap5yixVdz FGZHVvTShP/T3bFZjjHup+pF2t/81hfFDlYTs22VgMDUslD9LTQRnZsV1mjbw1L7724w 4lQNLTQdEKWwMFcDhecwpSCCXTTXuC4qi4H2kaZ4Xap0w42au/49wrbxbnZ5BZtFSJDd r89A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sifive.com header.s=google header.b=FGexe4i5; 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 w3-v6si19357pgb.119.2018.08.27.12.00.32; Mon, 27 Aug 2018 12:00:47 -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=pass header.i=@sifive.com header.s=google header.b=FGexe4i5; 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 S1728010AbeH0Wqj (ORCPT + 99 others); Mon, 27 Aug 2018 18:46:39 -0400 Received: from mail-pg1-f193.google.com ([209.85.215.193]:34776 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727991AbeH0Wqi (ORCPT ); Mon, 27 Aug 2018 18:46:38 -0400 Received: by mail-pg1-f193.google.com with SMTP id u10-v6so16542pgr.1 for ; Mon, 27 Aug 2018 11:58:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sifive.com; s=google; h=subject:date:message-id:in-reply-to:references:cc:from:to; bh=bNKko3u8kBTJzVjDJntTO3XHS/eMwTd63KoZkoMaobw=; b=FGexe4i5Fw5vCfnRhM1XDv2jH7eBbhmVr5lPv7Uk+8FeZH/AgCQBsshpdtc2pI0phv oAe1oGlTKsgpibyClvcDVlFzw/c2L6LK7j02bnuYqaMkayk5eax3reASA/57iFxE82IJ 7MUyS/QAVmjYT05tIjtaeBn02s4sj1HceW0vlSqUyloVbzeXVgm26XUCpPd6m5dKlUwE Z8yEt9a0ghrBV8J6skAtuGROv5ErQ/c6fUe7fxoHBuDZVM2OQczYiNde0MKxeA3aIOOP zj0a17E24SnuXs7rQRul8XfIutVBMLpoO49dm/pch7sEP3EPGafGiSe36hgRPLtya+BG tKqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:date:message-id:in-reply-to:references :cc:from:to; bh=bNKko3u8kBTJzVjDJntTO3XHS/eMwTd63KoZkoMaobw=; b=U2pqcpTSZ9MBcCgMJXf1dil6rhFAeoUeQq+f5QBigRKyigS+DBbOKDFJuSQ9K8m2TN HZIKy0t12k/c/QUlsDik+Ysq2GjhJeOO2OPL8l+ECSw6vBwDEWUEdL+xD3xgfYvM+SGf SU+OcXqBf9UgWaLGg39VzlkNLAY3J8JkVcIo2ZqViIFsPdhfiH4XX37P+J7YQNX49tc/ hh86C57OtP/X+5XHK/96yki2yvvFVnE8OEDbN21EomHGGC73UFKwKXVah21q/xOp6UOU P96AgMIYGEUTabOj07yKQQ0R+JbEPKKXE7qhinheCpHz7JIVjK6mXCckUvV9SOC/J80B eTyQ== X-Gm-Message-State: APzg51BJjJ31ye4YyBPQG1VEbXWxbaTPPPu2LCgYqXL0jzPrIdNcp3xr OFw69vFiQfXhkVCms045WNmF+A== X-Received: by 2002:a62:83ca:: with SMTP id h193-v6mr15484347pfe.123.1535396328410; Mon, 27 Aug 2018 11:58:48 -0700 (PDT) Received: from localhost ([12.206.222.5]) by smtp.gmail.com with ESMTPSA id l27-v6sm32876574pfi.180.2018.08.27.11.58.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Aug 2018 11:58:47 -0700 (PDT) Subject: [PATCH 5/8] RISC-V: Rename im_okay_therefore_i_am to found_boot_cpu Date: Mon, 27 Aug 2018 11:42:40 -0700 Message-Id: <20180827184243.25344-6-palmer@sifive.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20180827184243.25344-1-palmer@sifive.com> References: <20180827184243.25344-1-palmer@sifive.com> Cc: Palmer Dabbelt , aou@eecs.berkeley.edu, daniel.lezcano@linaro.org, tglx@linutronix.de, jason@lakedaemon.net, marc.zyngier@arm.com, atish.patra@wdc.com, dmitriy@oss-tech.org, catalin.marinas@arm.com, ard.biesheuvel@linaro.org, Greg KH , jeremy.linton@arm.com, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org From: Palmer Dabbelt To: linux-riscv@lists.infradead.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The old name was a bit odd. Signed-off-by: Palmer Dabbelt --- arch/riscv/kernel/smpboot.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/riscv/kernel/smpboot.c b/arch/riscv/kernel/smpboot.c index 5f29f8562cf6..e1f6a5ad0416 100644 --- a/arch/riscv/kernel/smpboot.c +++ b/arch/riscv/kernel/smpboot.c @@ -50,7 +50,7 @@ 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, found_boot_cpu = 0; while ((dn = of_find_node_by_type(dn, "cpu"))) { hart = riscv_of_processor_hartid(dn); @@ -58,13 +58,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 = 1; } } } - BUG_ON(!im_okay_therefore_i_am); + BUG_ON(!found_boot_cpu); } int __cpu_up(unsigned int cpu, struct task_struct *tidle) -- 2.16.4