sparc,leon: Sparc-Leon SMP support
Support SMP for a Sparc-Leon multiprocessor system. Add Leon specific SMP code to arch/sparc/kernel/leon_smp.c. Signed-off-by: Konrad Eisele <konrad@gaisler.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
b6727b12dd
commit
8401707ff6
@ -106,6 +106,15 @@ static inline int hard_smp4d_processor_id(void)
|
||||
return cpuid;
|
||||
}
|
||||
|
||||
extern inline int hard_smpleon_processor_id(void)
|
||||
{
|
||||
int cpuid;
|
||||
__asm__ __volatile__("rd %%asr17,%0\n\t"
|
||||
"srl %0,28,%0" :
|
||||
"=&r" (cpuid) : );
|
||||
return cpuid;
|
||||
}
|
||||
|
||||
#ifndef MODULE
|
||||
static inline int hard_smp_processor_id(void)
|
||||
{
|
||||
|
Reference in New Issue
Block a user