From patchwork Wed Oct 9 19:42:38 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans de Goede X-Patchwork-Id: 281994 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)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id A7EBA2C011C for ; Thu, 10 Oct 2013 06:44:51 +1100 (EST) Received: from localhost ([::1]:43595 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTzgf-0000J5-23 for incoming@patchwork.ozlabs.org; Wed, 09 Oct 2013 15:44:49 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40397) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTzeu-0006kb-3v for qemu-devel@nongnu.org; Wed, 09 Oct 2013 15:43:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VTzeo-0000zS-6b for qemu-devel@nongnu.org; Wed, 09 Oct 2013 15:43:00 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43729) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VTzen-0000zM-V7 for qemu-devel@nongnu.org; Wed, 09 Oct 2013 15:42:54 -0400 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r99JgiKk030476 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 9 Oct 2013 15:42:44 -0400 Received: from shalem.localdomain.com (vpn1-5-6.ams2.redhat.com [10.36.5.6]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r99JgeHj022429; Wed, 9 Oct 2013 15:42:43 -0400 From: Hans de Goede To: malc Date: Wed, 9 Oct 2013 21:42:38 +0200 Message-Id: <1381347758-5016-2-git-send-email-hdegoede@redhat.com> In-Reply-To: <1381347758-5016-1-git-send-email-hdegoede@redhat.com> References: <1381347758-5016-1-git-send-email-hdegoede@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: Paolo Bonzini , qemu-devel@nongnu.org, Alex Bligh , Hans de Goede Subject: [Qemu-devel] [PATCH 2/2] audio: Lower default wakeup rate to 100 times / second 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 This is more then plenty to keep audio card fifos filles / emptied. This drops host cpu-load for audio playback inside a linux vm from 13% to 9%. Signed-off-by: Hans de Goede --- audio/audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/audio/audio.c b/audio/audio.c index b3db679..fc77511 100644 --- a/audio/audio.c +++ b/audio/audio.c @@ -95,7 +95,7 @@ static struct { } }, - .period = { .hertz = 250 }, + .period = { .hertz = 100 }, .plive = 0, .log_to_monitor = 0, .try_poll_in = 1,