From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:38557) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpCfD-0005Wh-O9 for qemu-devel@nongnu.org; Mon, 04 May 2015 05:27:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YpCfB-0007bs-2j for qemu-devel@nongnu.org; Mon, 04 May 2015 05:27:47 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37235) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpCfA-0007bn-Sa for qemu-devel@nongnu.org; Mon, 04 May 2015 05:27:45 -0400 Message-ID: <55473B88.2080704@redhat.com> Date: Mon, 04 May 2015 11:27:36 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1430709529-4653-1-git-send-email-edgar.iglesias@gmail.com> In-Reply-To: <1430709529-4653-1-git-send-email-edgar.iglesias@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v1 1/1] hw/ptimer: Do not artificially limit timers when using icount List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Edgar E. Iglesias" , qemu-devel@nongnu.org Cc: peter.maydell@linaro.org On 04/05/2015 05:18, Edgar E. Iglesias wrote: > From: "Edgar E. Iglesias" > > Signed-off-by: Edgar E. Iglesias > --- > hw/core/ptimer.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/hw/core/ptimer.c b/hw/core/ptimer.c > index 2abad1f..8437bd6 100644 > --- a/hw/core/ptimer.c > +++ b/hw/core/ptimer.c > @@ -189,7 +189,7 @@ void ptimer_set_limit(ptimer_state *s, uint64_t limit, int reload) > * on the current generation of host machines. > */ > > - if (limit * s->period < 10000 && s->period) { > + if (!use_icount && limit * s->period < 10000 && s->period) { > limit = 10000 / s->period; > } > > Reviewed-by: Paolo Bonzini