Commit b29230769e3482bbd62a07d6d9485371ee66a18f
1 parent
157b1a2385
Exists in
master
and in
7 other branches
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>
Showing 1 changed file with 2 additions and 3 deletions Side-by-side Diff
arch/um/kernel/time.c
... | ... | @@ -104,15 +104,14 @@ |
104 | 104 | |
105 | 105 | void read_persistent_clock(struct timespec *ts) |
106 | 106 | { |
107 | - nsecs = os_nsecs(); | |
107 | + long long nsecs = os_nsecs(); | |
108 | + | |
108 | 109 | set_normalized_timespec(ts, nsecs / NSEC_PER_SEC, |
109 | 110 | nsecs % NSEC_PER_SEC); |
110 | 111 | } |
111 | 112 | |
112 | 113 | void __init time_init(void) |
113 | 114 | { |
114 | - long long nsecs; | |
115 | - | |
116 | 115 | timer_init(); |
117 | 116 | late_time_init = setup_itimer; |
118 | 117 | } |