* Re: [RFC PATCH 2/4] x86: use dmi check to treat disabled cpus as hotplug cpus.
[not found] ` <alpine.LFD.2.00.1001120823120.17145@localhost.localdomain>
@ 2010-01-12 17:17 ` Valdis.Kletnieks
0 siblings, 0 replies; only message in thread
From: Valdis.Kletnieks @ 2010-01-12 17:17 UTC (permalink / raw)
To: Linus Torvalds, Roman Zippel, linux-kbuild
Cc: Yinghai Lu, Suresh Siddha, ananth@in.ibm.com, Ingo Molnar,
Thomas Gleixner, H. Peter Anvin, Andrew Morton, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1497 bytes --]
On Tue, 12 Jan 2010 08:26:22 PST, Linus Torvalds said:
>
>
> On Tue, 12 Jan 2010, Valdis.Kletnieks@vt.edu wrote:
> >
> > OK, I'll bite - how do you build an X86-64 kernel that doesn't have
> > CONFIG_HOTPLUG_CPU selected? Try as I might, even if I have PM_SLEEP=n,
> > PM_SLEEP_SMP insists on being set, and then selecting HOTPLUG_SMP.
>
> If that is true, then there is some bug in the kconfig parser.
> PM_SLEEP_SMP depends on PM_SLEEP, so with PM_SLEEP=n it should never be
> set.
So now I go back and check, and it *was* possible to get a PM_SLEEP_SMP=n.
Apparently in my previous attempts, I tried turning stuff off and PM_SLEEP_SMP
stayed on just like this time as long as I was puttering around in menuconfig.
But turning it off, *exiting menuconfig*, and then re-starting menuconfig made
it work. Weird. It seems like if something does a 'select' on something
that isn't a visible symbol, and the symbol gets toggled, the selects
aren't redriven - and since it's not a visible symbol, you can't toggle it
yourself. But saving and restarting menuconfig forces a refresh and things
start acting right. Adding Roman and the kbuild list to the cc:
And turning off PM_SLEEP and HOTPLUG_CPU ended up saving a chunk of memory:
Before:
% size vmlinux
text data bss dec hex filename
8964445 1377200 6094320 16435965 facafd vmlinux
After:
% size vmlinux
text data bss dec hex filename
8889523 1378768 6089648 16357939 f99a33 vmlinux
[-- Attachment #2: Type: application/pgp-signature, Size: 227 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-01-12 17:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <1263264483-3959-1-git-send-email-yinghai@kernel.org>
[not found] ` <1263264483-3959-4-git-send-email-yinghai@kernel.org>
[not found] ` <alpine.LFD.2.00.1001111906300.17145@localhost.localdomain>
[not found] ` <6686.1263312874@localhost>
[not found] ` <alpine.LFD.2.00.1001120823120.17145@localhost.localdomain>
2010-01-12 17:17 ` [RFC PATCH 2/4] x86: use dmi check to treat disabled cpus as hotplug cpus Valdis.Kletnieks
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).