projects
/
wrapfs-3.14.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e454249
)
[PATCH] UML: fix uptime
author
Jeff Dike
<jdike@addtoit.com>
Tue, 20 Jun 2006 22:25:03 +0000
(18:25 -0400)
committer
Chris Wright
<chrisw@sous-sol.org>
Fri, 30 Jun 2006 00:17:16 +0000
(17:17 -0700)
The use of signed instead of unsigned here broke the calculations on
negative numbers that are involved in calculating wall_to_monotonic.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
arch/um/kernel/time_kern.c
patch
|
blob
|
history
diff --git
a/arch/um/kernel/time_kern.c
b/arch/um/kernel/time_kern.c
index 86f51d04c98df366d7a139468cf3afb08c402251..87cdbc560d360a3c62c4c144645e096225765d67 100644
(file)
--- a/
arch/um/kernel/time_kern.c
+++ b/
arch/um/kernel/time_kern.c
@@
-87,7
+87,7
@@
void timer_irq(union uml_pt_regs *regs)
void time_init_kern(void)
{
-
unsigned
long long nsecs;
+ long long nsecs;
nsecs = os_nsecs();
set_normalized_timespec(&wall_to_monotonic, -nsecs / BILLION,