From: Pekka Enberg <penberg@cs.helsinki.fi>
To: Richard Weinberger <richard@nod.at>
Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org,
jdike@addtoit.com, user-mode-linux-devel@lists.sourceforge.net,
arjan@linux.intel.com, peterz@infradead.org
Subject: Re: [PATCH 1/1] um: fix global timer issue when using CONFIG_NO_HZ
Date: Sun, 17 Oct 2010 22:23:59 +0300 [thread overview]
Message-ID: <4CBB4D4F.8010904@cs.helsinki.fi> (raw)
In-Reply-To: <1287242638-20968-1-git-send-email-richard@nod.at>
On 16.10.2010 18.23, Richard Weinberger wrote:
> This fixes a issue which was introduced by fe2cc53e.
> timeval_to_ns() returns long long and not int.
> Due to that UML's timer did not work proper and caused timer freezes.
>
> LKML-Reference:<AANLkTik5_TCXeGzTWBZzE8F0Cb2bQq-D228xDXk87rhP () mail ! gmail ! com>
> Signed-off-by: Richard Weinberger<richard@nod.at>
> ---
> arch/um/os-Linux/time.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/arch/um/os-Linux/time.c b/arch/um/os-Linux/time.c
> index dec5678..6e3359d 100644
> --- 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, "
Acked-by: Pekka Enberg <penberg@kernel.org>
next prev parent reply other threads:[~2010-10-17 19:23 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-16 15:23 [PATCH 1/1] um: fix global timer issue when using CONFIG_NO_HZ Richard Weinberger
2010-10-17 19:23 ` Pekka Enberg [this message]
2010-10-18 18:58 ` Pekka Enberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4CBB4D4F.8010904@cs.helsinki.fi \
--to=penberg@cs.helsinki.fi \
--cc=akpm@linux-foundation.org \
--cc=arjan@linux.intel.com \
--cc=jdike@addtoit.com \
--cc=linux-kernel@vger.kernel.org \
--cc=peterz@infradead.org \
--cc=richard@nod.at \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox