[<prev] [next>] [day] [month] [year] [list]
Message-ID: <Z2W5PRgIz5j-A2Du@gourry-fedora-PF4VCD3F>
Date: Fri, 20 Dec 2024 13:36:45 -0500
From: Gregory Price <gourry@...rry.net>
To: David Hildenbrand <david@...hat.com>
Cc: Gregory Price <gourry@...rry.net>, linux-mm@...ck.org,
linux-kernel@...r.kernel.org, osalvador@...e.de,
gregkh@...uxfoundation.org, rafael@...nel.org,
akpm@...ux-foundation.org
Subject: Re: [PATCH] mm: add build-time option to set hotplug default type
On Fri, Dec 20, 2024 at 07:25:57PM +0100, David Hildenbrand wrote:
> > If you have another suggestion, I'm open
>
> I'd just do it like CONFIG_TRANSPARENT_HUGEPAGE_ALWAYS, and simply do
>
> if (IS_ENABLED(MEMHP_DEFAULT_ONLINE_TYPE_ONLINE))
> ...
> else if (IS_ENABLED(MEMHP_DEFAULT_ONLINE_TYPE_ONLINE_MOVABLE))
> ...
>
> No need for parsing strings and dealing with unexpected values.
>
onward to V3 :P
~Gregory
Powered by blists - more mailing lists