Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1690290imm; Tue, 2 Oct 2018 12:16:53 -0700 (PDT) X-Google-Smtp-Source: ACcGV61rGE5Sbr7zkfizSgAusqZfAKLn2lCYEOwgHgAxT5X5mii8/NFKDvaXwvKK3Uz0MV7o78N/ X-Received: by 2002:a17:902:f08c:: with SMTP id go12mr14961224plb.263.1538507813653; Tue, 02 Oct 2018 12:16:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538507813; cv=none; d=google.com; s=arc-20160816; b=Zilxv2WouqaLicflk6JHD3cp3T5Ctq096BVYo9IflZb9aNPuMmF9M6Ezkmmibf0cQ0 OME3pCPEVieh5WJzHOOLzGuCuqh8kxRCOEWhDjNigr13pIlsPoUvro/Uk33iePX9EqvK ORdYx31jrKXihCIp5QWSnj1l7pVCRLJTAU7COqACjUtcb4roNp6YcMjsTXRsRlUb5968 FMiq/9bBGSQvjZYJ8xe5iEfuUnC5BUTyW2VPUENoxrsKvd3jnUTn9JSk7TGRHV+3PqI4 yE0W2ikgU7ZB9aVnyOzhYzueG7bWIYSWBmy6xckrKTu4HZSi6YykAoa6Eg2/2CW6+NOD vuDw== 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=wcA2Vv63+cJvSK6+Z0LIU9v22k2hnE5uxe/5TbBq83hbe4EWlsRfZm4zTMoIK1SMCq PMckdr5Haa4ucZb1WPYRRmh/t4jEC5YGHtjXaMbXiBQwdQSrrKFEH+CWimBFbHARXYMp 5oZkIOlPDYaXXU/GFCB1ghR4rVa5eDMFHGSu1qnViU6HjRFLleLe2Jycfvtn23NuKH7G L/Vg6iZ2tagh55JB9QNPrl7LeZEaSvVwif8cxwLT/zC60c+uowZdAxJSlC2C1zJ4d1sC NZtq5jeayuWN7XsuWAhf/liQn7LEnU0edCoqvGs0Tcpn3fk4q3ip84yOzsy4Ng5rWG/S m9gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@wdc.com header.s=dkim.wdc.com header.b=UYb6LVqK; 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 b41-v6si17971950pla.306.2018.10.02.12.16.38; Tue, 02 Oct 2018 12:16:53 -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=UYb6LVqK; 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 S1728356AbeJCCAw (ORCPT + 99 others); Tue, 2 Oct 2018 22:00:52 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:61573 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726781AbeJCCAB (ORCPT ); Tue, 2 Oct 2018 22:00:01 -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=1538507710; x=1570043710; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=0OZ3nt/EEsQssBD+UQWuWr8qJL45NeYy9tco1TnCX6Y=; b=UYb6LVqKRu37iO00YPIqxU5GfcYQo0K8JunTs6C47WLRDld7WLWdvFDw WEIt0CmlC0eRZrdtHiirxDz4BPmKiJZw7ucIh6CMj3VbCMpYJfWZgKPrV dmcvQDX1opVAOiNj7nYQKlIXVCq0IBpwCevcGt8AM5X3KAxfN+47sBtXq aNTsRoBjVPfJU9+KCqey9TeAED+vXyuXhx3luqnbIqplphE0SjNTVVFan yBGsyx8mKoa+QzTcdxCAH8Kh20Ud5it+lUf78g95fcyeGwwQc+1JKXS5r FE+WaGNImaLBuGCqchneRZ673RRzHWbC+cUWFEM22g6rE+tI0u5+FH0Rx Q==; X-IronPort-AV: E=Sophos;i="5.54,332,1534780800"; d="scan'208";a="91076746" 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; 03 Oct 2018 03:15:09 +0800 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP; 02 Oct 2018 12:00:51 -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; 02 Oct 2018 12:15:10 -0700 From: Atish Patra To: linux-riscv@lists.infradead.org, palmer@sifive.com Cc: anup@brainfault.org, hch@infradead.org, linux-kernel@vger.kernel.org, atish.patra@wdc.com Subject: [PATCH v6 08/14] RISC-V: Rename im_okay_therefore_i_am to found_boot_cpu Date: Tue, 2 Oct 2018 12:15:01 -0700 Message-Id: <1538507707-22299-9-git-send-email-atish.patra@wdc.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1538507707-22299-1-git-send-email-atish.patra@wdc.com> References: <1538507707-22299-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