* [PATCH] s390: Cleanup xtime usage in s390 code
@ 2010-03-05 2:36 John Stultz
2010-03-05 9:17 ` Martin Schwidefsky
0 siblings, 1 reply; 2+ messages in thread
From: John Stultz @ 2010-03-05 2:36 UTC (permalink / raw)
To: lkml; +Cc: John Stultz, Martin Schwidefsky, Thomas Gleixner
This replaces direct xtime usage in the s390 arch with timekeeping accessors,
so we can further clean up the timekeeping core.
Uncompiled and untested.
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: John Stultz <johnstul@us.ibm.com>
---
arch/s390/kernel/time.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/arch/s390/kernel/time.c b/arch/s390/kernel/time.c
index a8f93f1..8b22e7f 100644
--- a/arch/s390/kernel/time.c
+++ b/arch/s390/kernel/time.c
@@ -73,15 +73,15 @@ unsigned long long monotonic_clock(void)
}
EXPORT_SYMBOL(monotonic_clock);
-void tod_to_timeval(__u64 todval, struct timespec *xtime)
+void tod_to_timeval(__u64 todval, struct timespec *xt)
{
unsigned long long sec;
sec = todval >> 12;
do_div(sec, 1000000);
- xtime->tv_sec = sec;
+ xt->tv_sec = sec;
todval -= (sec * 1000000) << 12;
- xtime->tv_nsec = ((todval * 1000) >> 12);
+ xt->tv_nsec = ((todval * 1000) >> 12);
}
EXPORT_SYMBOL(tod_to_timeval);
@@ -216,8 +216,8 @@ void update_vsyscall(struct timespec *wall_time, struct clocksource *clock,
++vdso_data->tb_update_count;
smp_wmb();
vdso_data->xtime_tod_stamp = clock->cycle_last;
- vdso_data->xtime_clock_sec = xtime.tv_sec;
- vdso_data->xtime_clock_nsec = xtime.tv_nsec;
+ vdso_data->xtime_clock_sec = wall_time->tv_sec;
+ vdso_data->xtime_clock_nsec = wall_time->tv_nsec;
vdso_data->wtom_clock_sec = wall_to_monotonic.tv_sec;
vdso_data->wtom_clock_nsec = wall_to_monotonic.tv_nsec;
smp_wmb();
--
1.6.0.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] s390: Cleanup xtime usage in s390 code
2010-03-05 2:36 [PATCH] s390: Cleanup xtime usage in s390 code John Stultz
@ 2010-03-05 9:17 ` Martin Schwidefsky
0 siblings, 0 replies; 2+ messages in thread
From: Martin Schwidefsky @ 2010-03-05 9:17 UTC (permalink / raw)
To: John Stultz; +Cc: lkml, Thomas Gleixner
On Thu, 4 Mar 2010 18:36:35 -0800
John Stultz <johnstul@us.ibm.com> wrote:
> This replaces direct xtime usage in the s390 arch with timekeeping accessors,
> so we can further clean up the timekeeping core.
>
> Uncompiled and untested.
Compiles and works. I'll add it to the git390 tree for the next please pull
--
blue skies,
Martin.
"Reality continues to ruin my life." - Calvin.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-03-05 9:17 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-05 2:36 [PATCH] s390: Cleanup xtime usage in s390 code John Stultz
2010-03-05 9:17 ` Martin Schwidefsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®