summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
Diffstat (limited to 'arch')
-rw-r--r--arch/um/kernel/time.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/um/kernel/time.c b/arch/um/kernel/time.c
index 2b8b262e5c23..a08d9fab81f2 100644
--- a/arch/um/kernel/time.c
+++ b/arch/um/kernel/time.c
@@ -104,15 +104,14 @@ static void __init setup_itimer(void)
void read_persistent_clock(struct timespec *ts)
{
- nsecs = os_nsecs();
+ long long nsecs = os_nsecs();
+
set_normalized_timespec(ts, nsecs / NSEC_PER_SEC,
nsecs % NSEC_PER_SEC);
}
void __init time_init(void)
{
- long long nsecs;
-
timer_init();
late_time_init = setup_itimer;
}