Message ID | 20240204134813.61884-1-masahiroy@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-51679-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp359270dyb; Sun, 4 Feb 2024 05:48:35 -0800 (PST) X-Google-Smtp-Source: AGHT+IEYO0SaKojMpGYcL+IqjPGE4AHeyG17fo67P5pOJM47azFjjh9UidIY/BFu3UXbm2n1ucG0 X-Received: by 2002:a17:903:1206:b0:1d8:ce58:f4ad with SMTP id l6-20020a170903120600b001d8ce58f4admr14302091plh.1.1707054515440; Sun, 04 Feb 2024 05:48:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707054515; cv=pass; d=google.com; s=arc-20160816; b=ZjIRDFL1FporQZ7DP3tp197Lzfn5m2QmV56mHaLoaeixfgF+H3tLJ3r9Ykh8+4jQv3 oZFKot+AdsFmLturi+j6oUWijDzABCZ4/9/uReYjQBXgLWUT36J04QPZwr0Q11zrx9f3 EuSBVO8TMASP2snt0ZfNmGRBt31DnrBK3x+mmM6CeijMl1AU/kY1N9/2TGRM/h/RW+7q oabI3pMQ1I3+/H5JfUHndVzSgae1m+D7KkifFb3aEy4GtedklAKRPHMxwxDjx9+zixQD POYIiC31Yisz2LCFfcurqAIO+4/SC+gXfTN0ZvdcZ5H1cx9K86/BIfS375kQEb8RvtXm nRfg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=ClUSfiBb2S70GESxFspte7VgDYhFvS/+yGKusO74jrc=; fh=52V7K0RA9me9oKrUEP/qwzJtlasEDxZg+Op+G3aAeQg=; b=Ls2bKuu/CGNYO4H+1dQh002g9dUW/JBTv4M348FLxADk9IEx+Zoq9Jtk5rAw0bjCUW a4leD+b0lm84KVPTAwjqmgwxDClWcK0V1vbvX9T5UFjopJHiC5RYseLptB6WZlD1mqnD nJo6Vz85R1l364BRqUaE8HN1mQRHpIcHrlJ3a8FelP6POQ7XCbyZdMSfU+HLgY3WHFog Rv0Oajt3vqIYiFHmuKXKHFt6zCF4RRIv06StFTEPRRbuqdGybw86y1RTRhQY1/HjpFUZ oFNhC1RfqeI/VmEeeYVO9190FrGNirerIjdUOOYjANgaGWmJukFeXGOnGNSbaaI9uarv RZVA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="f/5+USez"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-51679-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51679-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=1; AJvYcCUX2fRd5sLJ0P7ScfyQtclnsEgo6hlwGkRXp40D8gAVFMS5T7qauBKBPm2FpQCXbBidkXwQtqZvmIoZyn4lY0VJmCI/Jg== Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d8-20020a170903230800b001d765f39633si2439599plh.329.2024.02.04.05.48.35 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 04 Feb 2024 05:48:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-51679-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="f/5+USez"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-51679-ouuuleilei=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-51679-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 35600283A4E for <ouuuleilei@gmail.com>; Sun, 4 Feb 2024 13:48:35 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4E8E0225D2; Sun, 4 Feb 2024 13:48:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="f/5+USez" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AC098224D5; Sun, 4 Feb 2024 13:48:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707054498; cv=none; b=Ys9/EFZR7g9Eci2KnnPR7zAuG6VOk57NwvuG51n1yRkbDzGIwILOKD/PyqrVw5i3Im8m6v1TFYzYHk5//+H2j6abPGTfHO9azdmizIb0AaECLtPz2k/Ijl4amBKLPsjViOIfilTSD/rQm+e5HJzRWWY2HCixCrynAYDhEszsQnk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707054498; c=relaxed/simple; bh=pbFol7VNmd3tct1WsWD/tL2wyqtctZ8CFhs3ERzA23g=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=m61JEi2+E7QfO+NScyLik2mFIz9vLRcJOFg8Q6FSj8583xbNnezAhAyZm6kFVR9vQpHZh5ze9loCUOp6AdwgK2ftdz6WHj58coJrAnvlp43UZG4gH8KMrH6dURhvJ5oJBSrFoTUUzuCXmAoTL+JL5Vh8LZctQFVnfUhIWwmlR6s= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=f/5+USez; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 49520C433C7; Sun, 4 Feb 2024 13:48:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707054498; bh=pbFol7VNmd3tct1WsWD/tL2wyqtctZ8CFhs3ERzA23g=; h=From:To:Cc:Subject:Date:From; b=f/5+USezgTLyfezcNrR7Cno5IfS3PIOfa7X5zj0cQ6uBFc3JA+11gNxbHfZYgdsNu BECV7hi1JKDdKA6Kjwsb3euBBhhVBuRy6gPRvW3xbxc3fmq9yKNKikKMmWnbk2xrB0 MZMOBxUYopvS6VwoImutCcQQ3cgDHKx3C3XyKlIYoHHiG8iPclfktVy1b5HqjUqiJh 2EaSj6JFTfjzPzAEmFvcKd4BJyv3voOXvZREnet+5NbvmtUHC/SzWMcAWmh/RXIIfF auChcNFIEvBgp8omb0N4zEg1SCB5aMhcRDTS69h/HgX6WQYbzZAeoBq3Sa07x6rVvl ABY+YfK45SguQ== From: Masahiro Yamada <masahiroy@kernel.org> To: Huacai Chen <chenhuacai@kernel.org>, WANG Xuerui <kernel@xen0n.name>, loongarch@lists.linux.dev Cc: Masahiro Yamada <masahiroy@kernel.org>, linux-kernel@vger.kernel.org Subject: [PATCH] loongarch: select ARCH_ENABLE_THP_MIGRATION instead of redefining it Date: Sun, 4 Feb 2024 22:48:13 +0900 Message-Id: <20240204134813.61884-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789976395409451801 X-GMAIL-MSGID: 1789976395409451801 |
Series |
loongarch: select ARCH_ENABLE_THP_MIGRATION instead of redefining it
|
|
Commit Message
Masahiro Yamada
Feb. 4, 2024, 1:48 p.m. UTC
ARCH_ENABLE_THP_MIGRATION is supposed to be selected by arch Kconfig.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---
arch/loongarch/Kconfig | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
Comments
Queued, thanks. Huacai On Sun, Feb 4, 2024 at 9:48 PM Masahiro Yamada <masahiroy@kernel.org> wrote: > > ARCH_ENABLE_THP_MIGRATION is supposed to be selected by arch Kconfig. > > Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> > --- > > arch/loongarch/Kconfig | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig > index 10959e6c3583..64e9a01c7f36 100644 > --- a/arch/loongarch/Kconfig > +++ b/arch/loongarch/Kconfig > @@ -12,6 +12,7 @@ config LOONGARCH > select ARCH_DISABLE_KASAN_INLINE > select ARCH_ENABLE_MEMORY_HOTPLUG > select ARCH_ENABLE_MEMORY_HOTREMOVE > + select ARCH_ENABLE_THP_MIGRATION if TRANSPARENT_HUGEPAGE > select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI > select ARCH_HAS_CPU_FINALIZE_INIT > select ARCH_HAS_FORTIFY_SOURCE > @@ -667,10 +668,6 @@ config ARCH_SPARSEMEM_ENABLE > or have huge holes in the physical address space for other reasons. > See <file:Documentation/mm/numa.rst> for more. > > -config ARCH_ENABLE_THP_MIGRATION > - def_bool y > - depends on TRANSPARENT_HUGEPAGE > - > config ARCH_MEMORY_PROBE > def_bool y > depends on MEMORY_HOTPLUG > -- > 2.40.1 > >
diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig index 10959e6c3583..64e9a01c7f36 100644 --- a/arch/loongarch/Kconfig +++ b/arch/loongarch/Kconfig @@ -12,6 +12,7 @@ config LOONGARCH select ARCH_DISABLE_KASAN_INLINE select ARCH_ENABLE_MEMORY_HOTPLUG select ARCH_ENABLE_MEMORY_HOTREMOVE + select ARCH_ENABLE_THP_MIGRATION if TRANSPARENT_HUGEPAGE select ARCH_HAS_ACPI_TABLE_UPGRADE if ACPI select ARCH_HAS_CPU_FINALIZE_INIT select ARCH_HAS_FORTIFY_SOURCE @@ -667,10 +668,6 @@ config ARCH_SPARSEMEM_ENABLE or have huge holes in the physical address space for other reasons. See <file:Documentation/mm/numa.rst> for more. -config ARCH_ENABLE_THP_MIGRATION - def_bool y - depends on TRANSPARENT_HUGEPAGE - config ARCH_MEMORY_PROBE def_bool y depends on MEMORY_HOTPLUG