PPC arch and spinlocks

Geoff Levand geoffrey.levand at am.sony.com
Fri Jun 10 01:19:53 EST 2005


� wrote:
> First of all,tks Jeff for this link. 
> So reading that, I understood that I need to enable the SMP support in
> the makemenuconfig
> in order to use spinlocks even if I'm working on UP platform.
> That's what I did but I now go through compile errors (I'm using a
> montavista PE 3.1):
> 
> In file included from
> /myWorks/en-cours/linux-2.4.20_mvl31/include/linux/smp.h:14,
>                  from ppc4xx_setup.c:34:
> /myWorks/en-cours/linux-2.4.20_mvl31/include/asm/smp.h:28: error:
> `NR_CPUS' undeclared here (not in a function)
> /myWorks/en-cours/linux-2.4.20_mvl31/include/asm/smp.h:30: error:
> `NR_CPUS' undeclared here (not in a function)
> /myWorks/en-cours/linux-2.4.20_mvl31/include/asm/smp.h:31: error:
> `NR_CPUS' undeclared here (not in a function)
> /myWorks/en-cours/linux-2.4.20_mvl31/include/asm/smp.h:31: embrouill�
> par les erreurs pr�c�dentes, abandon
> make[1]: *** [ppc4xx_setup.o] Erreur 1
> make[1]: Quitte le r�pertoire
> `/myWorks/en-cours/linux-2.4.20_mvl31/arch/ppc/kernel'
> make: *** [_dir_arch/ppc/kernel] Erreur 2
> 

ppc4xx core doesn't support SMP.



More information about the Linuxppc-dev mailing list