All of lore.kernel.org
 help / color / mirror / Atom feed
* RE : PPC arch and spinlocks
@ 2005-06-09  9:28 Garcia Jérémie
  2005-06-09 15:19 ` Geoff Levand
  2005-06-09 22:42 ` Benjamin Herrenschmidt
  0 siblings, 2 replies; 3+ messages in thread
From: Garcia Jérémie @ 2005-06-09  9:28 UTC (permalink / raw)
  To: jeff; +Cc: linuxppc-dev

First of all,tks Jeff for this link.=20
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=E9 =
par les erreurs pr=E9c=E9dentes, abandon
make[1]: *** [ppc4xx_setup.o] Erreur 1
make[1]: Quitte le r=E9pertoire =
`/myWorks/en-cours/linux-2.4.20_mvl31/arch/ppc/kernel'
make: *** [_dir_arch/ppc/kernel] Erreur 2

Is it a known problem for the montavista ppc users??

-------- Message d'origine--------
De: Jeff Angielski [mailto:jeff@theptrgroup.com]
Date: mer. 08/06/2005 17:26
=C0: Garcia J=E9r=E9mie
Cc: linuxppc-dev@ozlabs.org
Objet : Re: PPC arch and spinlocks
=20
On Wed, 2005-06-08 at 16:29 +0200, Garcia J=E9r=E9mie wrote:
> Hi everybody, I need your help one more time.
> I'm new to kernel device driver (linux newbie) and I'd like to control =
concurrent access
> to our hardware resources. (I'm working on a ppc405EP platform =
uniprocessor)

You might find this guide useful:

http://www.kernelnewbies.org/documents/kdoc/kernel-locking/lklockingguide=
.html



Jeff Angielski
The PTR Group

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: RE : PPC arch and spinlocks
  2005-06-09  9:28 RE : PPC arch and spinlocks Garcia Jérémie
@ 2005-06-09 15:19 ` Geoff Levand
  2005-06-09 22:42 ` Benjamin Herrenschmidt
  1 sibling, 0 replies; 3+ messages in thread
From: Geoff Levand @ 2005-06-09 15:19 UTC (permalink / raw)
  To: �; +Cc: linuxppc-dev

� 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.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: RE : PPC arch and spinlocks
  2005-06-09  9:28 RE : PPC arch and spinlocks Garcia Jérémie
  2005-06-09 15:19 ` Geoff Levand
@ 2005-06-09 22:42 ` Benjamin Herrenschmidt
  1 sibling, 0 replies; 3+ messages in thread
From: Benjamin Herrenschmidt @ 2005-06-09 22:42 UTC (permalink / raw)
  To: Garcia Jérémie; +Cc: linuxppc-dev

On Thu, 2005-06-09 at 11:28 +0200, Garcia Jérémie 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):

No, spinlocks are always around, though they do nothing on UP (except if
you use the _irq variants). Also, SMP isn't supported on 4xx.

You should do what Hollis says :)

Ben.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2005-06-09 22:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-09  9:28 RE : PPC arch and spinlocks Garcia Jérémie
2005-06-09 15:19 ` Geoff Levand
2005-06-09 22:42 ` Benjamin Herrenschmidt

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.