Skip to content

Commit b292307

Browse files
committed
um: Fix read_persistent_clock fallout
commit 9f31f57(um: Convert to use read_persistent_clock) moved the code, but not the variable. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent 157b1a2 commit b292307

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎arch/um/kernel/time.c‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,14 @@ static void __init setup_itimer(void)
104104

105105
void read_persistent_clock(struct timespec *ts)
106106
{
107-
nsecs = os_nsecs();
107+
long long nsecs = os_nsecs();
108+
108109
set_normalized_timespec(ts, nsecs / NSEC_PER_SEC,
109110
nsecs % NSEC_PER_SEC);
110111
}
111112

112113
void __init time_init(void)
113114
{
114-
long long nsecs;
115-
116115
timer_init();
117116
late_time_init = setup_itimer;
118117
}

0 commit comments

Comments
 (0)