Message ID | 20210226201721.510177-2-palmer@dabbelt.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <SRS0=kY6J=H4=kvack.org=owner-linux-mm@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.6 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07416C433E6 for <linux-mm@archiver.kernel.org>; Fri, 26 Feb 2021 20:18:27 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 65DB264F0E for <linux-mm@archiver.kernel.org>; Fri, 26 Feb 2021 20:18:26 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 65DB264F0E Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=dabbelt.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id B0B026B0005; Fri, 26 Feb 2021 15:18:24 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id A77AC6B0072; Fri, 26 Feb 2021 15:18:24 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 827006B0005; Fri, 26 Feb 2021 15:18:24 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0027.hostedemail.com [216.40.44.27]) by kanga.kvack.org (Postfix) with ESMTP id 62ED86B0070 for <linux-mm@kvack.org>; Fri, 26 Feb 2021 15:18:24 -0500 (EST) Received: from smtpin01.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 0C42D2C7C for <linux-mm@kvack.org>; Fri, 26 Feb 2021 20:18:24 +0000 (UTC) X-FDA: 77861531328.01.D10360C Received: from mail-pl1-f179.google.com (mail-pl1-f179.google.com [209.85.214.179]) by imf08.hostedemail.com (Postfix) with ESMTP id C29F780192D4 for <linux-mm@kvack.org>; Fri, 26 Feb 2021 20:18:09 +0000 (UTC) Received: by mail-pl1-f179.google.com with SMTP id e9so5890214plh.3 for <linux-mm@kvack.org>; Fri, 26 Feb 2021 12:18:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20150623.gappssmtp.com; s=20150623; h=subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding:cc:from:to; bh=9E+CJGi9vbnEQTKM+ByNuYS5mQQ+2hX085/dBrdX5hI=; b=eF0N998zDZscF98K/U6KhV/DH/lPR6SR4RV0yhiLLSA1L1B+bsfUSASoBRA24ZBPxi 9YHsHI7STyER7wx8VXHr+pXZiDyeyEFexER1GjWJpW9+RkC9gc0NEKN9c/TxELvKKb6q N0eUIE3mxU66D/6Z+Qg+Usy0C3OfxqxCusn3UEvtAEEsHMPC9CENxdyNzpLUs/DE1tGL TxwO3xig1gv3gSpLs7K6ZF8XThlVlazBd9QNYEEGElv8KDhjDhNKm22QONS1pJx2MXG3 Ri+tY+LYl1sH8hLOR2txXP0Wvn+8UpgIfTUZIFteH5z1pKqgxRJmdEk3VSS0RJ3Hx1Fy 8dFw== 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 :mime-version:content-transfer-encoding:cc:from:to; bh=9E+CJGi9vbnEQTKM+ByNuYS5mQQ+2hX085/dBrdX5hI=; b=PmrDpy9CeYGXDZtgp45vB2g/KUeWkbIzdETQPy/s8qiySItVIB8fVCMIiYvpvsHKcY G9r6CrF0EWcdO08IjCVAVeJDaqau0ziyvKImHKpAMjX8a5VbpAMRZmcgNH5O3d32plVt 9aNGgZAOCxxfJImbscxZwKq+LOX05r0VfFUl2kJHWAKe5scdoKzcNG4mXa8x5nnkG6PS qXQnKayNknjGmjvbOPhyMSSv9CQNfpRLDjQKyMP00jSF2scXPIf5dTtvaWZOXcoyYjv8 yHmNNBi+oxdfcO/WXRuy4ZZj279ArlgYqYmNlDWVrLVLG8OM3Rn7Og6oazZ4E2g6tcf/ nOMQ== X-Gm-Message-State: AOAM533GH09yzNbx0mmcltxaH4tFUUsevVYtGuN88f+/tqQfDIUj5jSA UgGbfx9AQF8B12xnIZ39FI3K+L/rrma0PEYs X-Google-Smtp-Source: ABdhPJyMDe4rbtveTYgncBcjGF3qz45nqxfrUYyHXvTYLo0tBDml/VM1sEKxYwUxRH3SrFB4qZpRcw== X-Received: by 2002:a17:90b:1213:: with SMTP id gl19mr5026942pjb.107.1614370701536; Fri, 26 Feb 2021 12:18:21 -0800 (PST) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id e24sm9202856pjr.13.2021.02.26.12.18.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Feb 2021 12:18:21 -0800 (PST) Subject: [PATCH 2/2] topology: Guard node_reclaim_distance with CONFIFG_NUMA Date: Fri, 26 Feb 2021 12:17:21 -0800 Message-Id: <20210226201721.510177-2-palmer@dabbelt.com> X-Mailer: git-send-email 2.30.1.766.gb4fecdf3b7-goog In-Reply-To: <20210226201721.510177-1-palmer@dabbelt.com> References: <20210226201721.510177-1-palmer@dabbelt.com> MIME-Version: 1.0 Cc: peterz@infradead.org, srikar@linux.vnet.ibm.com, valentin.schneider@arm.com, vbabka@suse.cz, mpe@ellerman.id.au, Palmer Dabbelt <palmerdabbelt@google.com>, linux-kernel@vger.kernel.org, linux-mm@kvack.org, kernel-team@android.com From: Palmer Dabbelt <palmer@dabbelt.com> To: akpm@linux-foundation.org, atishp@atishpatra.org X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: C29F780192D4 X-Stat-Signature: mgcgwigq63hfuysqstqg54nzi4jts5wt Received-SPF: none (dabbelt.com>: No applicable sender policy available) receiver=imf08; identity=mailfrom; envelope-from="<palmer@dabbelt.com>"; helo=mail-pl1-f179.google.com; client-ip=209.85.214.179 X-HE-DKIM-Result: pass/pass X-HE-Tag: 1614370689-723886 Content-Transfer-Encoding: quoted-printable X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
[1/2] mm: Guard a use of node_reclaim_distance with CONFIFG_NUMA
|
expand
|
diff --git a/include/linux/topology.h b/include/linux/topology.h index 7634cd737061..15f02281bdf0 100644 --- a/include/linux/topology.h +++ b/include/linux/topology.h @@ -73,7 +73,9 @@ int arch_update_cpu_topology(void); * *improves* if allowed to reclaim memory and load balance tasks * between NUMA nodes 2-hops apart. */ +#ifdef CONFIG_NUMA extern int __read_mostly node_reclaim_distance; +#endif #ifndef PENALTY_FOR_NODE_WITH_CPUS #define PENALTY_FOR_NODE_WITH_CPUS (1)