All of lore.kernel.org
 help / color / mirror / Atom feed
From: Scott Wood <scottwood@freescale.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] Removed CONFIG_NUM_CPUS for 85xx and 86xx Freescale processors.
Date: Tue, 28 Jul 2009 16:47:40 -0500	[thread overview]
Message-ID: <4A6F71FC.3020209@freescale.com> (raw)
In-Reply-To: <1BD5CFC378ED0946B688E0C9BA2EF09512A4D7@zin33exm24.fsl.freescale.net>

Aggrwal Poonam-B10812 wrote:
>  
> 
>> -----Original Message-----
>> From: Wood Scott-B07421 
>> Sent: Wednesday, July 29, 2009 2:39 AM
>> To: Aggrwal Poonam-B10812
>> Cc: u-boot at lists.denx.de
>> Subject: Re: [U-Boot] [PATCH 1/2] Removed CONFIG_NUM_CPUS for 
>> 85xx and 86xx Freescale processors.
>>
>> On Tue, Jul 21, 2009 at 04:17:43PM +0530, Poonam Aggrwal wrote:
>>> +int cpu_numcores() {
>>> +	struct cpu_type *cpu;
>>> +	cpu = gd->cpu;
>>> +	return cpu->num_cores;
>>> +}
>> Shouldn't this check CONFIG_MP and return 1 if not set?  
>> Otherwise you get a weird mix of MP and UP.
>>
>> The checks to warn the user of a UP u-boot on an MP chip 
>> would have to reference cpu->num_cores directly, or we could 
>> add a hard_cpu_numcores(), or similar.
> This function's intent is to just return the number of cores that the
> system has.
> This is more of kind of probong the actual hardware.
> The CONFIG_MP flag will take care of all the multicore stuff in u-boot.
>> -Scott

But you have places that call cpu_numcores() and do per-core stuff that 
don't check CONFIG_MP, as far as I can tell.

-Scott

      reply	other threads:[~2009-07-28 21:47 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-21 10:47 [U-Boot] [PATCH 1/2] Removed CONFIG_NUM_CPUS for 85xx and 86xx Freescale processors Poonam Aggrwal
2009-07-21 11:52 ` Wolfgang Denk
2009-07-21 14:13   ` Kumar Gala
2009-07-21 15:02     ` Wolfgang Denk
2009-07-22 10:14   ` [U-Boot] [PATCH 1/2] Removed CONFIG_NUM_CPUS for 85xx and 86xxFreescale processors Aggrwal Poonam-B10812
2009-07-22 11:30     ` [U-Boot] [PATCH 1/2] Removed CONFIG_NUM_CPUS for 85xx and86xxFreescale processors Aggrwal Poonam-B10812
2009-07-22 15:06     ` [U-Boot] [PATCH 1/2] Removed CONFIG_NUM_CPUS for 85xx and 86xxFreescale processors Kumar Gala
2009-07-28 21:08 ` [U-Boot] [PATCH 1/2] Removed CONFIG_NUM_CPUS for 85xx and 86xx Freescale processors Scott Wood
2009-07-28 21:45   ` Aggrwal Poonam-B10812
2009-07-28 21:47     ` Scott Wood [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4A6F71FC.3020209@freescale.com \
    --to=scottwood@freescale.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.