diff options
author | Jeff Dike <jdike@addtoit.com> | 2006-06-22 14:47:09 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-22 15:05:55 -0700 |
commit | 7f98a44b9d09580036da7e7f8b33e66f411cf374 (patch) | |
tree | d2200ab2fe158e696bcbde408cf4355f91f8d025 /arch/um/kernel | |
parent | 0dad31d2da706ef114bc5c21123123be2f405d5b (diff) | |
download | kernel_samsung_smdk4412-7f98a44b9d09580036da7e7f8b33e66f411cf374.zip kernel_samsung_smdk4412-7f98a44b9d09580036da7e7f8b33e66f411cf374.tar.gz kernel_samsung_smdk4412-7f98a44b9d09580036da7e7f8b33e66f411cf374.tar.bz2 |
[PATCH] UML: fix wall_to_monotonic initialization
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>
Diffstat (limited to 'arch/um/kernel')
-rw-r--r-- | arch/um/kernel/time_kern.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/kernel/time_kern.c b/arch/um/kernel/time_kern.c index 86f51d0..87cdbc5 100644 --- 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, |