From patchwork Mon May 4 03:18:49 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Edgar E. Iglesias" X-Patchwork-Id: 467474 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 326301402A0 for ; Mon, 4 May 2015 13:22:34 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=FRPn+4bs; dkim-atps=neutral Received: from localhost ([::1]:32781 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yp6xj-0002zq-0i for incoming@patchwork.ozlabs.org; Sun, 03 May 2015 23:22:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yp6xV-0002jV-3j for qemu-devel@nongnu.org; Sun, 03 May 2015 23:22:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yp6xR-0000AE-Nf for qemu-devel@nongnu.org; Sun, 03 May 2015 23:22:17 -0400 Received: from mail-oi0-x235.google.com ([2607:f8b0:4003:c06::235]:32991) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yp6xR-0000AA-JP for qemu-devel@nongnu.org; Sun, 03 May 2015 23:22:13 -0400 Received: by oica37 with SMTP id a37so103515830oic.0 for ; Sun, 03 May 2015 20:22:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=QkKRnJ/+hBm2R5ZElcXQAdoYUujkX7X9tWDDcJCkBKw=; b=FRPn+4bsjyKUS1smKEhRZaGQ0CpSmO/8YdrUnz6G4/lTUnseQR4f4TqhCgCEvnrG2I 2Su6zfuSr3xIQr410hg1qK1dQkTTAwYw0xRw3PL96A3WonLxivwVdRfokN2uwt7ykv0+ LZQe7wgFT94Cc86O8ZKZY/+sAuZEWdbxBC1fFpDCE2D/4Rhs9YZLhyEsoc+5U8ohUVfR ZpmHlikP3gZHx7tUQp9HqpE42rUkRce6d2FpRC2V8LS/LORlC7ju9fz0deSn34Vduow6 z8Ul02fDNwdlCf/BkfGyuqBwNZl54cwtMOfeJLmqQuX13REpd5HTxCxM6zVPIPbK6sEH djxQ== X-Received: by 10.60.132.208 with SMTP id ow16mr16477054oeb.66.1430709732600; Sun, 03 May 2015 20:22:12 -0700 (PDT) Received: from localhost ([203.126.243.116]) by mx.google.com with ESMTPSA id u83sm7213055oif.25.2015.05.03.20.22.11 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Sun, 03 May 2015 20:22:12 -0700 (PDT) From: "Edgar E. Iglesias" To: qemu-devel@nongnu.org Date: Mon, 4 May 2015 13:18:49 +1000 Message-Id: <1430709529-4653-1-git-send-email-edgar.iglesias@gmail.com> X-Mailer: git-send-email 1.9.1 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4003:c06::235 Cc: peter.maydell@linaro.org, pbonzini@redhat.com Subject: [Qemu-devel] [PATCH v1 1/1] hw/ptimer: Do not artificially limit timers when using icount X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: "Edgar E. Iglesias" Signed-off-by: Edgar E. Iglesias Reviewed-by: Paolo Bonzini --- 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; }