um: fix global timer issue when using CONFIG_NO_HZ
authorRichard Weinberger <richard@nod.at>
Tue, 26 Oct 2010 21:21:13 +0000 (14:21 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Oct 2010 23:52:03 +0000 (16:52 -0700)
commit482db6df1746c4fa7d64a2441d4cb2610249c679
tree9e18f6c3121bbceeb520c9b5f43f1e629f0f93cd
parentb7f50cfa3630b6e079929ffccfd442d65064ee1f
um: fix global timer issue when using CONFIG_NO_HZ

This fixes a issue which was introduced by fe2cc53e ("uml: track and make
up lost ticks").

timeval_to_ns() returns long long and not int.  Due to that UML's timer
did not work properlt and caused timer freezes.

Signed-off-by: Richard Weinberger <richard@nod.at>
Acked-by: Pekka Enberg <penberg@kernel.org>
Cc: Jeff Dike <jdike@addtoit.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/um/os-Linux/time.c