projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0dad31d
)
[PATCH] UML: fix wall_to_monotonic initialization
author
Jeff Dike
<jdike@addtoit.com>
Thu, 22 Jun 2006 21:47:09 +0000
(14:47 -0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Thu, 22 Jun 2006 22:05:55 +0000
(15:05 -0700)
Change a variable from unsigned to signed in order to get sign-extension
when the thing is negated. Without this, uptime is horribly confused.
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/um/kernel/time_kern.c
patch
|
blob
|
blame
|
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,