projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[ATM] ENI: Convert to struct timeval to ktime_t.
[powerpc.git]
/
include
/
asm-s390
/
processor.h
diff --git
a/include/asm-s390/processor.h
b/include/asm-s390/processor.h
index
4c1b739
..
33b80ce
100644
(file)
--- a/
include/asm-s390/processor.h
+++ b/
include/asm-s390/processor.h
@@
-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;