From 4616e8a33471646a51e244e664e2abd9136edb6c Mon Sep 17 00:00:00 2001 From: Tk-Glitch Date: Mon, 23 Jan 2023 15:35:45 +0100 Subject: [PATCH] linux 6.1.y: NR_CPUS is buggy on 6.1, let's ignore the setting with a warning https://bugzilla.kernel.org/show_bug.cgi?id=216823 https://github.com/Frogging-Family/linux-tkg/issues/696 --- linux-tkg-config/prepare | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/linux-tkg-config/prepare b/linux-tkg-config/prepare index 76a7e70..e6184ca 100644 --- a/linux-tkg-config/prepare +++ b/linux-tkg-config/prepare @@ -1573,9 +1573,13 @@ CONFIG_DEBUG_INFO_BTF_MODULES=y\r fi # NR_CPUS - if [ -n "$_NR_CPUS_value" ]; then - scripts/config --set-val "NR_CPUS" "$_NR_CPUS_value" - _enable "FORCE_NR_CPUS" + if [ "$_basever" != "601" ]; then + if [ -n "$_NR_CPUS_value" ]; then + scripts/config --set-val "NR_CPUS" "$_NR_CPUS_value" + _enable "FORCE_NR_CPUS" + fi + else + warning "NR_CPUS is bugged on 6.1.y, so your setting was ignored" fi fi