Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp4512972imm; Tue, 11 Sep 2018 13:06:26 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ+hUOZDnyLzYuHE8k3qdstl8CK1PbW/jVcJnqG8JRULHbzKnS0vGp3MMk4YQ+Zb5MHRaFJ X-Received: by 2002:a63:ce43:: with SMTP id r3-v6mr30807099pgi.439.1536696386444; Tue, 11 Sep 2018 13:06:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536696386; cv=none; d=google.com; s=arc-20160816; b=bWlDxXnREqUL2FMMEtk/WpqQB9BIot0ouBEfAvKlRZ2Kq8VqDGfe0cDM3iO9HjI6bH 8VjltTrdb6SQaeuNy5/ZFQWDq7kVPs/1U7OI8KvcMao8hOdQPKSkCuPlakwQ4B7JigC9 DzlzzkqFYnh9AasmfHfBd9bdpe58UXvDktEfgJip+s4452L6gKxMiRTawvPuPtZpyKys JL79BPrs5OOiQAGXgA7ROmKqtW2YUFURWLD71PlNbmUpiA8TfykIEM2E7p5GLRGHjKOd Z0za2zxDbLc6mAMe1906eh+eaZvNJuuixxycvtujAAkTpEsv0VEIQCXPy5HLDysExuqh /PWQ== 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=B3fs+DGnci6nctVer+4Ikt/PUjWjsQpy4O2xvXLB9is=; b=TPqbzCZsZiY6RL6dt1/BLIXeUN8b8ren6W8HnDwVmjGJCi1lUHnVVsOCbg053vPaHs cVi6rwkwdmEtf33JAUwuJIafoFbbmalg6My3Z3fwzNevwLkzMArkjiCE7QQYb1EOUfnL jXQz6G1nYvz8L/uuvbfroyn/xUjum/ydEo/JcSi3At6RQ0XT2hv8F4ENJya7Fi1hR3AY ctB5h6SD/Q+sMWaoSG941z5oW40tkawIbVdV+BpAVRuru1lk9Y62FkgHWoxkMSoKyBik vsdlQoYsHI10BkacG136Zcrg5pjUOO7V8+IdyrBaqvnZ0RaM7rqFNTbXptsZi4zjscOD Xsiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=gXhz7Ran; 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 f21-v6si22891747pgk.418.2018.09.11.13.06.11; Tue, 11 Sep 2018 13:06:26 -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=gXhz7Ran; 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 S1728159AbeILBGj (ORCPT + 99 others); Tue, 11 Sep 2018 21:06:39 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:52888 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727983AbeILBGh (ORCPT ); Tue, 11 Sep 2018 21:06:37 -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=1536696345; x=1568232345; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=0OZ3nt/EEsQssBD+UQWuWr8qJL45NeYy9tco1TnCX6Y=; b=gXhz7RanQn4r4a6e0XBr6C3YmrTBo0fJK97BrerQCHP4TS1UkyCd1IN8 WGppNcfDMIAXapb3+i96BzPYzeMFdQehHf5uLjoIiUeauGtzI1OZpFBFx HxBFvsv459ujUktiYQaEBEEKawE/3AHoNMIEKp4RuSDfHP3BmRv+h2d9c 84Qc0j5XzrmALoWJD3aOhtddZRAzWd7VTuKck2OIZEUn9egJs8bhsMOqz Tcg7oSCmuOqec5MIiNNzGJU+k26KRwmmmZKuGguLOn4u13nkMgPf7Rcis ETBGNDWCbH1jnKsfvrztCh+HlUIyiDh1cShN+7kMD7mgPJC4snFf7jRxS Q==; X-IronPort-AV: E=Sophos;i="5.53,361,1531756800"; d="scan'208";a="193728835" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 12 Sep 2018 04:05:42 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 11 Sep 2018 12:52:17 -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; 11 Sep 2018 13:05:43 -0700 From: Atish Patra To: palmer@sifive.com, linux-riscv@lists.infradead.org Cc: mark.rutland@arm.com, hch@infradead.org, anup@brainfault.org, 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 v4 08/12] RISC-V: Rename im_okay_therefore_i_am to found_boot_cpu Date: Tue, 11 Sep 2018 13:05:35 -0700 Message-Id: <1536696339-15204-9-git-send-email-atish.patra@wdc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1536696339-15204-1-git-send-email-atish.patra@wdc.com> References: <1536696339-15204-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 Reviewed-by: Christoph Hellwig --- 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