From patchwork Tue Jan 19 11:49:18 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 59986 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp2522472lbb; Tue, 19 Jan 2016 03:49:41 -0800 (PST) X-Received: by 10.55.215.91 with SMTP id m88mr37656860qki.8.1453204181254; Tue, 19 Jan 2016 03:49:41 -0800 (PST) Return-Path: Received: from lists.gnu.org (lists.gnu.org. [2001:4830:134:3::11]) by mx.google.com with ESMTPS id t9si37093547qhb.67.2016.01.19.03.49.41 for (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 19 Jan 2016 03:49:41 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) client-ip=2001:4830:134:3::11; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 2001:4830:134:3::11 as permitted sender) smtp.mailfrom=qemu-devel-bounces+patch=linaro.org@nongnu.org; dkim=fail header.i=@linaro.org Received: from localhost ([::1]:36369 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLUn6-0007b7-St for patch@linaro.org; Tue, 19 Jan 2016 06:49:40 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47359) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLUmj-0007J7-KH for qemu-devel@nongnu.org; Tue, 19 Jan 2016 06:49:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aLUmg-0002LO-Eo for qemu-devel@nongnu.org; Tue, 19 Jan 2016 06:49:17 -0500 Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]:36442) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLUmf-0002L9-TB for qemu-devel@nongnu.org; Tue, 19 Jan 2016 06:49:14 -0500 Received: by mail-wm0-x233.google.com with SMTP id l65so134781655wmf.1 for ; Tue, 19 Jan 2016 03:49:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id; bh=IS2bPz/Tsu7CjE1geKo5dpHioF3d0LwkXr3Q/B0XxNQ=; b=XnPeg85RrJMPTiGUb4SLljkX0MTtPY9uZLJ9AN4C8aS3jS+/b5E4yBkue2kTUTc2Ca QILCqI1ZILumzqSgXK9AYHHIBnEs/FfnnRM4fdllq16Z7ocSxcNJW2bfli19NurY3PxB DF/n+B+OP0kpsftKgJFsHUZRriayQo6wUGqzM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=IS2bPz/Tsu7CjE1geKo5dpHioF3d0LwkXr3Q/B0XxNQ=; b=JNtZl6cyKdixoWlQd+IXwDXwkmCZLjPSPhdjYV4kGz4cSQO78v/7waHshCHGkHgBP8 36+vmsbMspo8g4pRAlUDJnyZFQJbvUtaBncCpLQ50m2BWDvBh4Y4npOShlJ80jHCh2i/ RTzM6qpH+ZjeuymF/xqUjOKdGCsT3zmcOKodESDPZV3sdZR+W+yQEN30cRj6FxergX9s Pt/FEHhTL4QLYsU++QcbFoIy9C8ZXJX9TugN1jzj1gO6/Kg0+PyV9xgzLhQCFOHhbSHw 8c1AL6x/2GZX+YW9T+ICAfkaJ6sPcoDSPi3hodLKNSSwe/qOfL0djnySjHjBBrQpza96 Yx2w== X-Gm-Message-State: ALoCoQnfWjglShyp8IXOO2Ez2Xw4R7FPdsz9ZqGonQQORiT5IRSF9/4MZ4hT+hDyhwy2/t9Wwf35vs3W5rDXKoJP0l4lSRzkPg== X-Received: by 10.194.113.227 with SMTP id jb3mr30202932wjb.49.1453204152921; Tue, 19 Jan 2016 03:49:12 -0800 (PST) Received: from localhost.localdomain ([94.18.191.146]) by smtp.gmail.com with ESMTPSA id w8sm28136283wjx.21.2016.01.19.03.49.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 19 Jan 2016 03:49:12 -0800 (PST) From: Christoffer Dall To: qemu-devel@nongnu.org Date: Tue, 19 Jan 2016 12:49:18 +0100 Message-Id: <1453204158-11412-1-git-send-email-christoffer.dall@linaro.org> X-Mailer: git-send-email 2.1.2.330.g565301e.dirty X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::233 Cc: Christoffer Dall Subject: [Qemu-devel] [PATCH] hw/arm/virt: Add always-on property to the virt board timer 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org The virt board has an arch timer, which is always on. Emit the "always-on" property to indicate to Linux that it can switch off the periodic timer and reduces the amount of interrupts injected into a guest. Signed-off-by: Christoffer Dall --- hw/arm/virt.c | 1 + 1 file changed, 1 insertion(+) -- 2.1.2.330.g565301e.dirty Reviewed-by: Andrew Jones diff --git a/hw/arm/virt.c b/hw/arm/virt.c index 05f9087..265fe9a 100644 --- a/hw/arm/virt.c +++ b/hw/arm/virt.c @@ -291,6 +291,7 @@ static void fdt_add_timer_nodes(const VirtBoardInfo *vbi, int gictype) qemu_fdt_setprop_string(vbi->fdt, "/timer", "compatible", "arm,armv7-timer"); } + qemu_fdt_setprop(vbi->fdt, "/timer", "always-on", NULL, 0); qemu_fdt_setprop_cells(vbi->fdt, "/timer", "interrupts", GIC_FDT_IRQ_TYPE_PPI, ARCH_TIMER_S_EL1_IRQ, irqflags, GIC_FDT_IRQ_TYPE_PPI, ARCH_TIMER_NS_EL1_IRQ, irqflags,