Skip to content

Commit

Permalink
[PATCH] UML: fix wall_to_monotonic initialization
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jeff Dike authored and Linus Torvalds committed Jun 22, 2006
1 parent 0dad31d commit 7f98a44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/um/kernel/time_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7f98a44

Please sign in to comment.