Skip to contentSkip to conversation

s390: fix do_gettimeoffset

PATCH In review Heiko Carstens 2 participants 2 messages Aug 28, 2006 s390

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s390: fix do_gettimeoffset

From: Heiko Carstens <[email protected]>

kill-wall_jiffies.patch breaks s390's do_gettimeoffset(). Fix this and do a small whitespace cleanup while we are at it.

Cc Atsushi Nemoto <[email protected]>
Cc Martin Schwidefsky <[email protected]>

---

 arch/s390/kernel/time.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/s390/kernel/time.c +2 -1
Index: linux-2.6.18-rc4-mm3/arch/s390/kernel/time.c
===================================================================
@@ -85,7 +85,8 @@
 {
 	__u64 now;
 
-        now = (get_clock() - jiffies_timer_cc) >> 12;
+	now = (get_clock() - jiffies_timer_cc) >> 12;
+	now -= (__u64) jiffies * USECS_PER_JIFFY;
 	return (unsigned long) now;
 }
 
#1 lore raw
Quoted 4 lines · Heiko Carstens

From: Heiko Carstens <[email protected]>

kill-wall_jiffies.patch breaks s390's do_gettimeoffset(). Fix this and do a small whitespace cleanup while we are at it.

Oops, my fault. Thank you for fixing it.

---
Atsushi Nemoto