diff options
Diffstat (limited to 'arch/s390/include/asm/cpu_mf.h')
-rw-r--r-- | arch/s390/include/asm/cpu_mf.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/arch/s390/include/asm/cpu_mf.h b/arch/s390/include/asm/cpu_mf.h index b0b3059b8d64..09dc5facc0bc 100644 --- a/arch/s390/include/asm/cpu_mf.h +++ b/arch/s390/include/asm/cpu_mf.h | |||
@@ -125,8 +125,7 @@ struct hws_trailer_entry { | |||
125 | unsigned long long flags; /* 0 - 63: All indicators */ | 125 | unsigned long long flags; /* 0 - 63: All indicators */ |
126 | }; | 126 | }; |
127 | unsigned long long overflow; /* 64 - sample Overflow count */ | 127 | unsigned long long overflow; /* 64 - sample Overflow count */ |
128 | unsigned long long timestamp; /* 16 - time-stamp */ | 128 | unsigned char timestamp[16]; /* 16 - 31 timestamp */ |
129 | unsigned long long timestamp1; /* */ | ||
130 | unsigned long long reserved1; /* 32 -Reserved */ | 129 | unsigned long long reserved1; /* 32 -Reserved */ |
131 | unsigned long long reserved2; /* */ | 130 | unsigned long long reserved2; /* */ |
132 | unsigned long long progusage1; /* 48 - reserved for programming use */ | 131 | unsigned long long progusage1; /* 48 - reserved for programming use */ |
@@ -232,6 +231,17 @@ static inline unsigned long sample_rate_to_freq(struct hws_qsi_info_block *qsi, | |||
232 | #define SDB_TE_ALERT_REQ_MASK 0x4000000000000000UL | 231 | #define SDB_TE_ALERT_REQ_MASK 0x4000000000000000UL |
233 | #define SDB_TE_BUFFER_FULL_MASK 0x8000000000000000UL | 232 | #define SDB_TE_BUFFER_FULL_MASK 0x8000000000000000UL |
234 | 233 | ||
234 | /* Return TOD timestamp contained in an trailer entry */ | ||
235 | static inline unsigned long long trailer_timestamp(struct hws_trailer_entry *te) | ||
236 | { | ||
237 | /* TOD in STCKE format */ | ||
238 | if (te->t) | ||
239 | return *((unsigned long long *) &te->timestamp[1]); | ||
240 | |||
241 | /* TOD in STCK format */ | ||
242 | return *((unsigned long long *) &te->timestamp[0]); | ||
243 | } | ||
244 | |||
235 | /* Return pointer to trailer entry of an sample data block */ | 245 | /* Return pointer to trailer entry of an sample data block */ |
236 | static inline unsigned long *trailer_entry_ptr(unsigned long v) | 246 | static inline unsigned long *trailer_entry_ptr(unsigned long v) |
237 | { | 247 | { |