mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
um: fix global timer issue when using CONFIG_NO_HZ
commit482db6df17upstream. This fixes a issue which was introduced byfe2cc53e("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> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
f412651038
commit
87e8f969fc
@@ -60,7 +60,7 @@ static inline long long timeval_to_ns(const struct timeval *tv)
|
||||
long long disable_timer(void)
|
||||
{
|
||||
struct itimerval time = ((struct itimerval) { { 0, 0 }, { 0, 0 } });
|
||||
int remain, max = UM_NSEC_PER_SEC / UM_HZ;
|
||||
long long remain, max = UM_NSEC_PER_SEC / UM_HZ;
|
||||
|
||||
if (setitimer(ITIMER_VIRTUAL, &time, &time) < 0)
|
||||
printk(UM_KERN_ERR "disable_timer - setitimer failed, "
|
||||
|
||||
Reference in New Issue
Block a user