[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20140217225111.GA2561@khazad-dum.debian.net>
Date: Mon, 17 Feb 2014 19:51:11 -0300
From: Henrique de Moraes Holschuh <hmh@....eng.br>
To: Petr Tesarik <ptesarik@...e.cz>
Cc: Jan Beulich <JBeulich@...e.com>, Borislav Petkov <bp@...en8.de>,
x86@...nel.org, Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, linux-kernel@...r.kernel.org,
"H. Peter Anvin" <hpa@...or.com>
Subject: Re: [PATCH] x86: Issue a warning if number of present CPUs > maxcpus
and CONFIG_HOTPLUG=n
On Mon, 17 Feb 2014, Petr Tesarik wrote:
> > I'd rather no warnings were printed at all (user asked for that nr_cpus,
> > there is no reason to warn him about it),
> >[...]
>
> Agreed. This needs some cleanup.
>
> This code used to check against NR_CPUS, which is a compile-time
> constant, so the warning was printed when the user booted a kernel
> incapable of using all available CPUs in the system. And this was a
> good thing, because there was no (easy) way to find out this constant
> from a given kernel binary.
>
> I can post a clean-up patch that doesn't issue any warnings for user
> overrides (but does issue warnings for exceeding hard-coded kernel
> limits).
That'd be really nice. Thank you!
> But I'll do it separately and only after I know if the current patch
> gets accepted or not. ;-)
:-)
--
"One disk to rule them all, One disk to find them. One disk to bring
them all and in the darkness grind them. In the Land of Redmond
where the shadows lie." -- The Silicon Valley Tarot
Henrique Holschuh
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists