diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2012-05-14 04:35:22 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2012-05-16 08:42:44 -0400 |
commit | d652d59682c8891bdaecfccc72b0209cbe91d89f (patch) | |
tree | f04f1d0d174bab1b28496f3666d9d4dc597fcd36 /arch | |
parent | 0544516956c0b949e3190f744df4b473f5ad4853 (diff) |
s390/time: simply Kconfig dependency
Use HAVE_MARCH_Z9_109_FEATURES to figure out if stckf is available
at compile time.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/s390/include/asm/timex.h | 2 | ||||
-rw-r--r-- | arch/s390/kernel/entry64.S | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/s390/include/asm/timex.h b/arch/s390/include/asm/timex.h index 72eaa8511a4f..239ece9e53c1 100644 --- a/arch/s390/include/asm/timex.h +++ b/arch/s390/include/asm/timex.h | |||
@@ -77,7 +77,7 @@ static inline unsigned long long get_clock(void) | |||
77 | { | 77 | { |
78 | unsigned long long clk; | 78 | unsigned long long clk; |
79 | 79 | ||
80 | #if defined(CONFIG_64BIT) && !defined(CONFIG_MARCH_Z900) && !defined(CONFIG_MARCH_Z990) | 80 | #ifdef CONFIG_HAVE_MARCH_Z9_109_FEATURES |
81 | asm volatile(".insn s,0xb27c0000,%0" : "=Q" (clk) : : "cc"); | 81 | asm volatile(".insn s,0xb27c0000,%0" : "=Q" (clk) : : "cc"); |
82 | #else | 82 | #else |
83 | asm volatile("stck %0" : "=Q" (clk) : : "cc"); | 83 | asm volatile("stck %0" : "=Q" (clk) : : "cc"); |
diff --git a/arch/s390/kernel/entry64.S b/arch/s390/kernel/entry64.S index 02b660a7dcd4..02bf601d84bf 100644 --- a/arch/s390/kernel/entry64.S +++ b/arch/s390/kernel/entry64.S | |||
@@ -147,7 +147,7 @@ _TIF_EXIT_SIE = (_TIF_SIGPENDING | _TIF_NEED_RESCHED | _TIF_MCCK_PENDING) | |||
147 | .endm | 147 | .endm |
148 | 148 | ||
149 | .macro STCK savearea | 149 | .macro STCK savearea |
150 | #if defined(CONFIG_64BIT) && !defined(CONFIG_MARCH_Z900) && !defined(CONFIG_MARCH_Z990) | 150 | #ifdef CONFIG_HAVE_MARCH_Z9_109_FEATURES |
151 | .insn s,0xb27c0000,\savearea # store clock fast | 151 | .insn s,0xb27c0000,\savearea # store clock fast |
152 | #else | 152 | #else |
153 | .insn s,0xb2050000,\savearea # store clock | 153 | .insn s,0xb2050000,\savearea # store clock |