X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=include%2Fasm-s390%2Fprocessor.h;h=33b80ced4bc1767546af9afe44f75abfe2d61dec;hb=8570419fb7be0af84085ac8f13307392a748482c;hp=4c1b739403519839aa8a0b50d37191e66e07816f;hpb=b22364c8eec89e6b0c081a237f3b6348df87796f;p=powerpc.git diff --git a/include/asm-s390/processor.h b/include/asm-s390/processor.h index 4c1b739403..33b80ced4b 100644 --- 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;