From patchwork Wed Apr 27 18:07:09 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Daney X-Patchwork-Id: 8961171 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 991E2BF29F for ; Wed, 27 Apr 2016 18:10:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id CB2FD2015A for ; Wed, 27 Apr 2016 18:10:21 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id F1B3F20138 for ; Wed, 27 Apr 2016 18:10:20 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1avTtS-0008Pg-Ie; Wed, 27 Apr 2016 18:08:58 +0000 Received: from mail-pa0-x241.google.com ([2607:f8b0:400e:c03::241]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1avTsV-0007ad-6l for linux-arm-kernel@lists.infradead.org; Wed, 27 Apr 2016 18:07:59 +0000 Received: by mail-pa0-x241.google.com with SMTP id yl2so5678429pac.1 for ; Wed, 27 Apr 2016 11:07:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=O8dXMRuyianIe4664OHcu1WqeX7PFJSTdZcasyn8WRM=; b=SDQB+0JG3G0ys7EN9p3mjjrpaCrGE9DYUXwxXjcDzs13CPGyhZvOsl8CxBttkB5Rai YAQh1YPNsr7wWmAD6O7JAwAtukhRo/D+BTA1BUBmX8kMby529A1lfQxReSSZBV5kwjJE Liq+k6/NF+rKKc/peG3bUWZ/x2BwlZukJB75Qgo41ZNAKjGfT+EPuJp8U0hWWD/qUwuL nhDWN4L4Y8LCSTVRpFWKB4+c1KnFkCMRKn/+RJZ5OPUT/q8XITY2U7wZpuFvwNq2wGUe DbKfW5+mV8pt1FUlTgMUdYDgq9CIV43e524IclNcxjjsEeXYFVTtrR5dk04OgYUARhoB IOEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=O8dXMRuyianIe4664OHcu1WqeX7PFJSTdZcasyn8WRM=; b=Qczu8JyYR3KXJw94lVnLLwnsdE1gGsFCoWSVGd3tr4a5036t63kwKYNq5qH1JDsDz5 crLHYy3ecrqScmrakPz3NS3C9GGIzwc6urqMB7FqAPOYV5Igaf1rfR72MgCTUP/+i/uH mvkoPKcAtikwrEB6T0JlJ+Htx8AK3p68GVIG+bCp35L+y2NyTtYAccHX3RuY9nxN8eTh OlOXnKQRHI3pUEytA5PoSismn+trYXYTTaHZLN+jNdNsd4OW//ZMWSt0MlISUb9rMR8g U3PH0oZdJqiwwD18SrYrMBGCOXbNp/z+ixDQ1XoAFJYGY37m3KoXrYQ88aVnTxYbbRmm /DDA== X-Gm-Message-State: AOPr4FXakJM5+eC7UcjS3Z4qyYCWwWejxVNTpg0AGqdxqqaab9jQWFZK47r1wLiZcFXguw== X-Received: by 10.66.34.68 with SMTP id x4mr13969783pai.57.1461780459973; Wed, 27 Apr 2016 11:07:39 -0700 (PDT) Received: from dl.caveonetworks.com ([64.2.3.194]) by smtp.gmail.com with ESMTPSA id u63sm8257990pfu.18.2016.04.27.11.07.32 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 27 Apr 2016 11:07:34 -0700 (PDT) Received: from dl.caveonetworks.com (localhost.localdomain [127.0.0.1]) by dl.caveonetworks.com (8.14.5/8.14.5) with ESMTP id u3RI7V7g027259; Wed, 27 Apr 2016 11:07:31 -0700 Received: (from ddaney@localhost) by dl.caveonetworks.com (8.14.5/8.14.5/Submit) id u3RI7VbN027258; Wed, 27 Apr 2016 11:07:31 -0700 From: David Daney To: Will Deacon , linux-arm-kernel@lists.infradead.org, Mark Rutland , Catalin Marinas , Tony Luck , Fenghua Yu , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , x86@kernel.org, "Rafael J. Wysocki" , Len Brown , Rob Herring , Frank Rowand , Grant Likely , Robert Moore , Lv Zheng , Hanjun Guo , Marc Zyngier , linux-ia64@vger.kernel.org, linux-acpi@vger.kernel.org, devel@acpica.org Subject: [PATCH v6 07/14] arm64, numa: Cleanup NUMA disabled messages. Date: Wed, 27 Apr 2016 11:07:09 -0700 Message-Id: <1461780436-27182-8-git-send-email-ddaney.cavm@gmail.com> X-Mailer: git-send-email 1.7.11.7 In-Reply-To: <1461780436-27182-1-git-send-email-ddaney.cavm@gmail.com> References: <1461780436-27182-1-git-send-email-ddaney.cavm@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160427_110759_367783_CFE3DED6 X-CRM114-Status: GOOD ( 15.68 ) X-Spam-Score: -2.7 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Robert Richter , linux-kernel@vger.kernel.org, David Daney MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: David Daney As noted by Dennis Chen, we don't want to print "No NUMA configuration found" if NUMA was forced off from the command line. Change the type of numa_off to bool, and clean up printing code. Print "NUMA disabled" if forced off on command line and "No NUMA configuration found" if there was no firmware NUMA information. Signed-off-by: David Daney Acked-by: Catalin Marinas --- arch/arm64/mm/numa.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/arch/arm64/mm/numa.c b/arch/arm64/mm/numa.c index 6cb03f9..1def1de 100644 --- a/arch/arm64/mm/numa.c +++ b/arch/arm64/mm/numa.c @@ -29,7 +29,7 @@ static int cpu_to_node_map[NR_CPUS] = { [0 ... NR_CPUS-1] = NUMA_NO_NODE }; static int numa_distance_cnt; static u8 *numa_distance; -static int numa_off; +static bool numa_off; static __init int numa_parse_early_param(char *opt) { @@ -37,7 +37,7 @@ static __init int numa_parse_early_param(char *opt) return -EINVAL; if (!strncmp(opt, "off", 3)) { pr_info("%s\n", "NUMA turned off"); - numa_off = 1; + numa_off = true; } return 0; } @@ -362,7 +362,10 @@ static int __init dummy_numa_init(void) int ret; struct memblock_region *mblk; - pr_info("%s\n", "No NUMA configuration found"); + if (numa_off) + pr_info("NUMA disabled\n"); /* Forced off on command line. */ + else + pr_info("No NUMA configuration found\n"); pr_info("NUMA: Faking a node at [mem %#018Lx-%#018Lx]\n", 0LLU, PFN_PHYS(max_pfn) - 1); @@ -375,7 +378,7 @@ static int __init dummy_numa_init(void) return ret; } - numa_off = 1; + numa_off = true; return 0; }