[S390] New get_cpu_id() inline assembly
Replace two stidp inline assemblies with one global implementation. Signed-off-by: Michael Holzheu <holzheu@de.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:

committed by
Martin Schwidefsky

parent
6c732de2d3
commit
72960a02c2
@@ -106,7 +106,7 @@ void __devinit cpu_init (void)
|
||||
/*
|
||||
* Store processor id in lowcore (used e.g. in timer_interrupt)
|
||||
*/
|
||||
asm volatile("stidp %0": "=m" (S390_lowcore.cpu_data.cpu_id));
|
||||
get_cpu_id(&S390_lowcore.cpu_data.cpu_id);
|
||||
S390_lowcore.cpu_data.cpu_addr = addr;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user