]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - include/asm-s390/processor.h
[LLC]: Use skb_reset_mac_header in llc_mac_hdr_init
[linux-2.6-omap-h63xx.git] / include / asm-s390 / processor.h
index 4c1b739403519839aa8a0b50d37191e66e07816f..33b80ced4bc1767546af9afe44f75abfe2d61dec 100644 (file)
@@ -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;