projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7f50cf
)
um: fix global timer issue when using CONFIG_NO_HZ
author
Richard Weinberger
<
[email protected]
>
Tue, 26 Oct 2010 21:21:13 +0000
(14:21 -0700)
committer
Linus Torvalds
<
[email protected]
>
Tue, 26 Oct 2010 23:52:03 +0000
(16:52 -0700)
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 <
[email protected]
>
Acked-by: Pekka Enberg <
[email protected]
>
Cc: Jeff Dike <
[email protected]
>
Cc: <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
arch/um/os-Linux/time.c
patch
|
blob
|
history
diff --git
a/arch/um/os-Linux/time.c
b/arch/um/os-Linux/time.c
index dec5678fc17f7b65ef5b1113d8f6246f910bab79..6e3359d6a8394c0d2f811a28a24f41e673e8793c 100644
(file)
--- a/
arch/um/os-Linux/time.c
+++ b/
arch/um/os-Linux/time.c
@@
-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, "