diff options
author | Jan Glauber <jan.glauber@de.ibm.com> | 2008-04-17 05:46:16 (GMT) |
---|---|---|
committer | Heiko Carstens <heiko.carstens@de.ibm.com> | 2008-04-17 05:47:02 (GMT) |
commit | c0015f91d8414f55d2debfe9984a04b98b48f087 (patch) | |
tree | 114cfd865dda4b1c5860391c219a1b34dc74eacb /arch/s390 | |
parent | 2f7c8bd6dc6540aa3275c0ad9f657401985c00e9 (diff) | |
download | linux-fsl-qoriq-c0015f91d8414f55d2debfe9984a04b98b48f087.tar.xz |
[S390] switch sched_clock to store-clock-extended.
Add get_clock_xt to read an 8 byte clock value using store clock
extended (STCKE) and use get_clock_xt for sched_clock. STCKE should
be faster than STCK on newer machines.
Signed-off-by: Jan Glauber <jan.glauber@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/kernel/time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/time.c b/arch/s390/kernel/time.c index cb232c1..925f9dc 100644 --- a/arch/s390/kernel/time.c +++ b/arch/s390/kernel/time.c @@ -66,7 +66,7 @@ static u64 xtime_cc; */ unsigned long long sched_clock(void) { - return ((get_clock() - jiffies_timer_cc) * 125) >> 9; + return ((get_clock_xt() - jiffies_timer_cc) * 125) >> 9; } /* |