[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.21.2409242018160.3358@angie.orcam.me.uk>
Date: Tue, 24 Sep 2024 20:23:21 +0100 (BST)
From: "Maciej W. Rozycki" <macro@...am.me.uk>
To: David Hildenbrand <david@...hat.com>
cc: Guenter Roeck <linux@...ck-us.net>,
Geert Uytterhoeven <geert@...ux-m68k.org>, linux-m68k@...ts.linux-m68k.org,
linux-kernel@...r.kernel.org, Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [PATCH v2] m68k: Define NR_CPUS
On Tue, 24 Sep 2024, David Hildenbrand wrote:
> diff --git a/mm/Kconfig b/mm/Kconfig
> index 09aebca1cae3..4c9f5ea13271 100644
> --- a/mm/Kconfig
> +++ b/mm/Kconfig
> @@ -595,6 +595,7 @@ config ARCH_MHP_MEMMAP_ON_MEMORY_ENABLE
> config SPLIT_PTE_PTLOCKS
> def_bool y
> depends on MMU
> + depends on SMP
> depends on NR_CPUS >= 4
I think it might be more intuitive if written as:
depends on SMP && NR_CPUS >= 4
(with a note in the change description to the effect that NR_CPUS will
have been unset and the condition won't work as expected unless SMP).
FWIW,
Maciej
Powered by blists - more mailing lists