projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
157b1a2
)
um: Fix read_persistent_clock fallout
author
Thomas Gleixner
<tglx@linutronix.de>
Tue, 3 Aug 2010 18:34:48 +0000
(20:34 +0200)
committer
Thomas Gleixner
<tglx@linutronix.de>
Tue, 3 Aug 2010 18:36:07 +0000
(20:36 +0200)
commit
9f31f57
(um: Convert to use read_persistent_clock) moved the
code, but not the variable.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/um/kernel/time.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/um/kernel/time.c
b/arch/um/kernel/time.c
index 2b8b262e5c23a979036a860b150e94641818ac31..a08d9fab81f2025c008c23e8b4ed229ff6c65525 100644
(file)
--- 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;
}