diff options
author | Michael Holzheu <holzheu@linux.vnet.ibm.com> | 2010-05-17 04:00:20 -0400 |
---|---|---|
committer | Martin Schwidefsky <sky@mschwide.boeblingen.de.ibm.com> | 2010-05-17 04:00:17 -0400 |
commit | 57b28f66316d287b9dbf7b28358ca90257230769 (patch) | |
tree | 9486fff9e7c746721dbcbbbeb34ddd1307460e89 /arch/s390/include/asm | |
parent | cc961d400e06e78c7aa39aeab1f001eb8f76ef90 (diff) |
[S390] s390_hypfs: Add new attributes
In order to access the data of the hypfs diagnose calls from user
space also in binary form, this patch adds two new attributes in
debugfs:
* z/VM: s390_hypfs/d2fc_bin
* LPAR: s390_hypfs/d204_bin
Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch/s390/include/asm')
-rw-r--r-- | arch/s390/include/asm/timex.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/s390/include/asm/timex.h b/arch/s390/include/asm/timex.h index f174bdaa6b59..09d345a701dc 100644 --- a/arch/s390/include/asm/timex.h +++ b/arch/s390/include/asm/timex.h | |||
@@ -61,11 +61,15 @@ static inline unsigned long long get_clock (void) | |||
61 | return clk; | 61 | return clk; |
62 | } | 62 | } |
63 | 63 | ||
64 | static inline void get_clock_ext(char *clk) | ||
65 | { | ||
66 | asm volatile("stcke %0" : "=Q" (*clk) : : "cc"); | ||
67 | } | ||
68 | |||
64 | static inline unsigned long long get_clock_xt(void) | 69 | static inline unsigned long long get_clock_xt(void) |
65 | { | 70 | { |
66 | unsigned char clk[16]; | 71 | unsigned char clk[16]; |
67 | 72 | get_clock_ext(clk); | |
68 | asm volatile("stcke %0" : "=Q" (clk) : : "cc"); | ||
69 | return *((unsigned long long *)&clk[1]); | 73 | return *((unsigned long long *)&clk[1]); |
70 | } | 74 | } |
71 | 75 | ||