From: Scott Wood Date: Tue, 28 Jul 2009 16:08:50 -0500 Subject: [U-Boot] [PATCH 1/2] Removed CONFIG_NUM_CPUS for 85xx and 86xx Freescale processors. In-Reply-To: <1248173263-30516-1-git-send-email-poonam.aggrwal@freescale.com> References: <1248173263-30516-1-git-send-email-poonam.aggrwal@freescale.com> Message-ID: <20090728210850.GC28808@b07421-ec1.am.freescale.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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. -Scott