Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1037698imm; Thu, 13 Sep 2018 11:37:44 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYQb6go/dnnrVt0ttSPb/ll0DgZem2o55QEJ8TLXCy8LYs1T/hK4G7ScpuSId9pd0DY5xdm X-Received: by 2002:a17:902:d898:: with SMTP id b24-v6mr8367481plz.218.1536863864409; Thu, 13 Sep 2018 11:37:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536863864; cv=none; d=google.com; s=arc-20160816; b=YXtsDoKoG2faeUqcCZnPfv5QLurOVX8LikP4pBT+98YBgAmy3egDswuW79T6tRBfGL tSdyLEcuhfNjH4Q5UaHXZRp7bLQOFeaCv8on05samAOWR5olH2h6BQ5FWtGpijM+e+Ti 6hu1n+ujsYhlSM79p39zIAnhHqIT9tfVifCiHPqFWOlCDwd66DonBaTbmvnJFy+7YTLp +z/RIGKm01LFyI3gz4JP21mdne72n4na+g/vboYmrFkv21C8Z+DzzWHIFsDLekOeIAFr UllXnG/xp4XYqDT1pjQD+2QJdfLiDfqpSg7RMmWkvUv0J3ixD1y3pIRCzYmumh2y2l1x uSYA== 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=GjY28WBtnmLZdphvHL7kG/E+43wfmeNthI5thTpAxYWS7I6sWNQJ4vsstHXbu6sRc1 V6WCHhmVh/SajLAYWxpoSZWyyFiSSDM8h24qcKk3aNrhCI7P7hsJUwomnqtEG0iHsNy4 nRGvOAzA7zUD+b8prXDYg+fVFkvQ3tzaAJ37rnXsesSSHtnhdP11nat1pTiqcIyY1pPa NxCTJF0C/9DlxLzFwnc8RCLwiwT0kg3XuiNwTJdNkCEs44nHTTtUFstROT2gOaVlwFBb uQeSmH6HkN5Rfo1gL/hf1rsJ4bhHdJG2EDkrTeoUth4ux48nIq5UqwVac38mA1cl7aZn MVOQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=ac2nxzVb; 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 f90-v6si4656221plf.30.2018.09.13.11.37.29; Thu, 13 Sep 2018 11:37:44 -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=ac2nxzVb; 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 S1728257AbeIMXrw (ORCPT + 99 others); Thu, 13 Sep 2018 19:47:52 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:26981 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728031AbeIMXrv (ORCPT ); Thu, 13 Sep 2018 19:47:51 -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=1536863830; x=1568399830; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=0OZ3nt/EEsQssBD+UQWuWr8qJL45NeYy9tco1TnCX6Y=; b=ac2nxzVb9zJ+dWXx7ldQGUARBbbWVNHpWmlfOxw3/tUBHmgUX6PwwwjJ OBvcor/8SkJA1vhfFabg8arGWMU1T2upX8rVwgDFs+lCBMoeu0lUZs/Qs Z7jHOYwVmaI3oK7INBicXjLQWtIuZKH769dWuVT0Yb8bmEGBhLWWeQuyT rCW9Xn5/zsPv1myk+hjZg6BXnWn1LkENJPteFUvm1IgcgX72KVMay08HB PXTYz7+8JW2IoFBdNIaEsvVIrRG+ez92i2mUTVJeyAmyohPeuBbj5aGfk jgo1l0UoTdIjgBepvecroH607LNdsgmmQD+oUTf/sJbUyZKiM3v/WLnFm Q==; X-IronPort-AV: E=Sophos;i="5.53,370,1531756800"; d="scan'208";a="89712024" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 14 Sep 2018 02:37:09 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 13 Sep 2018 11:23:39 -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; 13 Sep 2018 11:37:09 -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, schwab@linux-m68k.org Subject: [PATCH v5 08/12] RISC-V: Rename im_okay_therefore_i_am to found_boot_cpu Date: Thu, 13 Sep 2018 11:37:01 -0700 Message-Id: <1536863825-66808-9-git-send-email-atish.patra@wdc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1536863825-66808-1-git-send-email-atish.patra@wdc.com> References: <1536863825-66808-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