mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
[S390] New get_cpu_id() inline assembly
Replace two stidp inline assemblies with one global implementation. Signed-off-by: Michael Holzheu <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]>
This commit is contained in:
parent
6c732de2d3
commit
72960a02c2
3 changed files with 7 additions and 2 deletions
|
|
@ -36,6 +36,11 @@ typedef struct
|
|||
unsigned int unused : 16;
|
||||
} __attribute__ ((packed)) cpuid_t;
|
||||
|
||||
static inline void get_cpu_id(cpuid_t *ptr)
|
||||
{
|
||||
asm volatile("stidp 0(%1)" : "=m" (*ptr) : "a" (ptr));
|
||||
}
|
||||
|
||||
struct cpuinfo_S390
|
||||
{
|
||||
cpuid_t cpu_id;
|
||||
|
|
|
|||
Loading…
Reference in a new issue