Commit b2923076 authored by Thomas Gleixner's avatar Thomas Gleixner

um: Fix read_persistent_clock fallout

commit 9f31f577(um: Convert to use read_persistent_clock) moved the
code, but not the variable.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 157b1a23
...@@ -104,15 +104,14 @@ static void __init setup_itimer(void) ...@@ -104,15 +104,14 @@ static void __init setup_itimer(void)
void read_persistent_clock(struct timespec *ts) void read_persistent_clock(struct timespec *ts)
{ {
nsecs = os_nsecs(); long long nsecs = os_nsecs();
set_normalized_timespec(ts, nsecs / NSEC_PER_SEC, set_normalized_timespec(ts, nsecs / NSEC_PER_SEC,
nsecs % NSEC_PER_SEC); nsecs % NSEC_PER_SEC);
} }
void __init time_init(void) void __init time_init(void)
{ {
long long nsecs;
timer_init(); timer_init();
late_time_init = setup_itimer; late_time_init = setup_itimer;
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment