public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [PATCH for review] [140/145] i386: mark cpu_dev structures as __cpuinitdata
@ 2006-08-15  6:46 Chuck Ebbert
  2006-08-15  7:43 ` Arjan van de Ven
  0 siblings, 1 reply; 7+ messages in thread
From: Chuck Ebbert @ 2006-08-15  6:46 UTC (permalink / raw)
  To: Magnus Damm; +Cc: linux-kernel, Andi Kleen

In-Reply-To: <1155518783.5764.10.camel@localhost>

On Mon, 14 Aug 2006 10:26:23 +0900, Magnus Damm wrote:

> > > The different cpu_dev structures are all used from __cpuinit callers what
> > > I can tell. So mark them as __cpuinitdata instead of __initdata. I am a
> > > little bit unsure about arch/i386/common.c:default_cpu, especially when it
> > > comes to the purpose of this_cpu.
> > 
> > But none of these CPUs supports hotplug and only one (AMD) does SMP.
> > So this is just wasting space in the kernel at runtime.
> 
> How could this be wasting space? If you compile with CONFIG_HOTPLUG_CPU
> disabled then __cpuinitdata will become __initdata - ie the same as
> before. Not a single byte wasted what I can tell.

I was talking about wasted space with HOTPLUG_CPU enabled, of course.
Nobody is ever going to hotplug a VIA, Cyrix, Geode, etc. CPU, yet your
patch makes the kernel carry that code and data anyway.

Yes, the checking scripts will complain.  But we know it's OK.

-- 
Chuck


^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: [PATCH for review] [140/145] i386: mark cpu_dev structures as __cpuinitdata
@ 2006-08-11 15:24 Chuck Ebbert
  2006-08-11 16:07 ` Andi Kleen
  2006-08-14  1:26 ` Magnus Damm
  0 siblings, 2 replies; 7+ messages in thread
From: Chuck Ebbert @ 2006-08-11 15:24 UTC (permalink / raw)
  To: Andi Kleen; +Cc: Magnus Damm, linux-kernel

In-Reply-To: <20060810193740.9133413C0B@wotan.suse.de>

On Thu, 10 Aug 2006 21:37:40 +0200, Andi Kleen wrote:

> From: Magnus Damm <magnus@valinux.co.jp>
> 
> The different cpu_dev structures are all used from __cpuinit callers what
> I can tell. So mark them as __cpuinitdata instead of __initdata. I am a
> little bit unsure about arch/i386/common.c:default_cpu, especially when it
> comes to the purpose of this_cpu.

But none of these CPUs supports hotplug and only one (AMD) does SMP.
So this is just wasting space in the kernel at runtime.

If anything I would only do this for AMD.

Same for the other patch that does more of this kind of change.

(IIRC I tried to do this a while ago and was told not to.)

-- 
Chuck

^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <20060810 935.775038000@suse.de>]

end of thread, other threads:[~2006-08-15 17:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-15  6:46 [PATCH for review] [140/145] i386: mark cpu_dev structures as __cpuinitdata Chuck Ebbert
2006-08-15  7:43 ` Arjan van de Ven
2006-08-15 16:59   ` Dave Jones
  -- strict thread matches above, loose matches on Subject: below --
2006-08-11 15:24 Chuck Ebbert
2006-08-11 16:07 ` Andi Kleen
2006-08-14  1:26 ` Magnus Damm
     [not found] <20060810 935.775038000@suse.de>
2006-08-10 19:37 ` Andi Kleen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox