Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2780417rdb; Mon, 12 Feb 2024 17:09:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IE4FeaHZjCP3gK6Rn0EJncVmVLk1H5/hNlRPuRMeEPsYu3oUVYLH+a0ksVvopfKwrOqFC7m X-Received: by 2002:a17:902:7484:b0:1d9:50ca:c4e4 with SMTP id h4-20020a170902748400b001d950cac4e4mr7329213pll.27.1707786575922; Mon, 12 Feb 2024 17:09:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707786575; cv=pass; d=google.com; s=arc-20160816; b=a5BI+dyDLfs48bBdZ4hVKOoBBTZM+8QKLg6Cg76m+ScnRPcTftMgyldMSI3L9dAjzi Le17hiZRfdhdYT7VrPWe4weAS4EDmL1M+m5Ozs3Wc4zSc1KHdHnPzvG60g1Mvgt0IhBs 5thXTN+9yUUs/1PJapSUyOq9/JuXzouYEftQ9oDOjf0hkOzLR7ekeNod9G+7kLdxLpLM mF/zrJPYFx/bAHNMIXt1BrU0KvLTCya3koBmOQUY0uU7AnpGprfkj+tpuiyJHkKu1RVL r8GZHoGThUAg06uTZEojQoY84DURV3FiVvzP2h87RqysmMtFiJsXGFNijAPcOFU9bv6H FEPw== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=sP812zMWD7yYzhwRR1wMG0RZX+Rsxd4sjGuepwQPMkI=; fh=q2P+FLRK7fxq8WWSUV0+DLpmzS93Skavh9ZFyKuCSos=; b=UgTFoO3SHfNmT3sDBjlzefhoMc34mae1ElbtadeAJBV2BflCoNgkQVT220xeLN1TiA 6WrCkoo0GtLkQozbxumIZMLHPapY8UhlfpW6O9t6kXqTSmgcITe04bzvPW5KMShSzdDc TfuBYi38pDXJOqphWIHsGpH2t4OlKP6dqSw8vT/PIvY7LiTvwnRxcKZ+ttDeY99bDUDy hn5g+OmuSbl8GPKMBm09GKs7/xrtWoMFn86wOl9f6QDPMSwyJtEAnhOxlK+bU3Xct0gD +ZbYalhCtr6bmSY6Y2WS2TdvaNJUuL9nv82k1gK8UOcgCdiOyw+KYIU2cPLzHFmnoSCQ /4TA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=j0z2DTt0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-62704-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62704-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCUtWM9I1gWnBtix0EvtGT834pgPY50+6cypGBL6Ya4nwf5ffWMaSOx/pkcfoQfTtI4O8lIFXpS+zDcu92BldQT/UrcqmfvxM5VxELTFzg== Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id d12-20020a170902cecc00b001d714d28060si1106939plg.199.2024.02.12.17.09.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 17:09:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62704-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=j0z2DTt0; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-62704-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62704-linux.lists.archive=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 1A453B23531 for ; Tue, 13 Feb 2024 00:55:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5ABA680632; Tue, 13 Feb 2024 00:23:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="j0z2DTt0" 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 813A68061B; Tue, 13 Feb 2024 00:23:05 +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=1707783785; cv=none; b=kQ4Fsd2bWOt1QC8KNB4dx22pBsOxT8aFqip3TM8JZSEaXPYtohOk/PzoLcuDPad5o18kj7RIj9slLBWlWbEAW9h0FFp9enIovq4sogX3I6CnfPL2/OP5TklGylXxWp4lJoMGMYUky/aL4+Im7Ox4Oo4xdALAPl5RFskE2FTraZ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707783785; c=relaxed/simple; bh=U2gIa04sBLTHzW3iW2xOjULlwobPHjNmK6vAiygan7E=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=AZRtiatzK3PVaSYV8rLMI1So/DixrpFwf5sOXWhS/jZtF/jJW9Ibc81S0omx1rH299JHhV3a/OxaSGFlssiEjbnXf/XYYQTq0T2YGxCPpMF0CaXJcgnLxg+X8PuubHCZNsGXHROiZIAP6R2x+77p2id8R03cadHtEEhf8k0zpsA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=j0z2DTt0; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22C26C433F1; Tue, 13 Feb 2024 00:23:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707783785; bh=U2gIa04sBLTHzW3iW2xOjULlwobPHjNmK6vAiygan7E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=j0z2DTt0xImN+QCP4DgUEcyeFjAoZIouTQNiAiUM91LuOEWgOj4zZ5IzV8sx8EEzU 2tJUExE+uDCocWGqba3/C8NJiS+0Ol4Iw3PPBivI+COlI6DfzgEPh9pls3DjTGmprP kPk94dGS6S1lxvzjUFzahSEy7ef9JUV0J0BOuaFSM0gng7E3rKcyjBr01GScisVoxL APRfkQsZz1Tzad83WT//sSBiBdmbC/6ia5Vf/Xj7TqsLAX85l3QYq7GjeTq1P5nZxE po1wq7Exr4ph6ztafqOiJvauOvb+RfbrVva+bHXljIuDv9F7+R+F/VfcFevQ9iiONX NUXRPM6g/JcWw== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Masahiro Yamada , Huacai Chen , Sasha Levin , chenhuacai@kernel.org, loongarch@lists.linux.dev Subject: [PATCH AUTOSEL 6.1 20/28] LoongArch: Select ARCH_ENABLE_THP_MIGRATION instead of redefining it Date: Mon, 12 Feb 2024 19:22:18 -0500 Message-ID: <20240213002235.671934-20-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240213002235.671934-1-sashal@kernel.org> References: <20240213002235.671934-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.1.77 Content-Transfer-Encoding: 8bit From: Masahiro Yamada [ Upstream commit b3ff2d9c3a9c64cd0a011cdd407ffc38a6ea8788 ] ARCH_ENABLE_THP_MIGRATION is supposed to be selected by arch Kconfig. Signed-off-by: Masahiro Yamada Signed-off-by: Huacai Chen Signed-off-by: Sasha Levin --- arch/loongarch/Kconfig | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/arch/loongarch/Kconfig b/arch/loongarch/Kconfig index e737dc8cd660..b1b4396dbac6 100644 --- a/arch/loongarch/Kconfig +++ b/arch/loongarch/Kconfig @@ -9,6 +9,7 @@ config LOONGARCH select ARCH_BINFMT_ELF_STATE 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_NON_OVERLAPPING_ADDRESS_SPACE select ARCH_HAS_PTE_SPECIAL @@ -495,10 +496,6 @@ config ARCH_SPARSEMEM_ENABLE or have huge holes in the physical address space for other reasons. See 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.43.0