From patchwork Thu Sep 16 08:42:41 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geert Uytterhoeven X-Patchwork-Id: 12498267 Return-Path: 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=-11.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,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 11711C433FE for ; Thu, 16 Sep 2021 08:42:57 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 21416611CE for ; Thu, 16 Sep 2021 08:42:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 21416611CE Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=glider.be Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id A60216B0074; Thu, 16 Sep 2021 04:42:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 9E77A900002; Thu, 16 Sep 2021 04:42:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 8AFB36B0075; Thu, 16 Sep 2021 04:42:55 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0080.hostedemail.com [216.40.44.80]) by kanga.kvack.org (Postfix) with ESMTP id 757686B0072 for ; Thu, 16 Sep 2021 04:42:55 -0400 (EDT) Received: from smtpin19.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay04.hostedemail.com (Postfix) with ESMTP id 3D2862AF0F for ; Thu, 16 Sep 2021 08:42:55 +0000 (UTC) X-FDA: 78592796310.19.E64E907 Received: from michel.telenet-ops.be (michel.telenet-ops.be [195.130.137.88]) by imf19.hostedemail.com (Postfix) with ESMTP id B6559B0000AA for ; Thu, 16 Sep 2021 08:42:54 +0000 (UTC) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed20:39fa:3565:945d:98f4]) by michel.telenet-ops.be with bizsmtp id uYim2500S3mHZPk06YimpP; Thu, 16 Sep 2021 10:42:53 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.93) (envelope-from ) id 1mQmyj-0053tp-S0; Thu, 16 Sep 2021 10:42:45 +0200 Received: from geert by rox.of.borg with local (Exim 4.93) (envelope-from ) id 1mQmyj-004q6a-AI; Thu, 16 Sep 2021 10:42:45 +0200 From: Geert Uytterhoeven To: Matt Fleming , Mel Gorman , Peter Zijlstra , Ingo Molnar , Juri Lelli , Vincent Guittot , Andrew Morton , Vlastimil Babka Cc: Yoshinori Sato , Rich Felker , Gon Solo , linux-mm@kvack.org, linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 0/2] Fix NUMA without SMP Date: Thu, 16 Sep 2021 10:42:41 +0200 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: B6559B0000AA X-Stat-Signature: x5bmosc9813p7maz6so5acircp1ggh9r Authentication-Results: imf19.hostedemail.com; dkim=none; spf=none (imf19.hostedemail.com: domain of geert@linux-m68k.org has no SPF policy when checking 195.130.137.88) smtp.mailfrom=geert@linux-m68k.org; dmarc=none X-HE-Tag: 1631781774-773070 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: Hi all, SuperH is the only architecture which still supports NUMA without SMP, for good reasons (various memories scattered around the address space, each with varying latencies). This series fixes two build errors due to variables and functions used by the NUMA code being provided by SMP-only source files or sections. These are compile-tested only, as the remote Migo-R is MIA. Thanks for your comments! Geert Uytterhoeven (2): mm: Move node_reclaim_distance to fix NUMA without SMP mm: Move fold_vm_numa_events() to fix NUMA without SMP kernel/sched/topology.c | 1 - mm/page_alloc.c | 2 ++ mm/vmstat.c | 56 ++++++++++++++++++++--------------------- 3 files changed, 30 insertions(+), 29 deletions(-)