From: Julien Grall Subject: [PATCH] xen/arm: Set up Versatile Express timer frequency to 24 Mhz Date: Mon, 24 Jun 2013 14:10:58 +0100 Message-ID: <1372079458-7884-1-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: patches@linaro.org, ian.campbell@citrix.com, Julien Grall , Stefano.Stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org On TC2, the timer frequency was set to 100 Mhz which slows down the whole platform. When Linux is running on bare metal, the frequency is 24 Mhz. "sleep 60" in dom0 takes: - 4 mins with a frequency equals to 100 Mhz - 1 min with a frequency equals to 24 Mhz Signed-off-by: Julien Grall --- xen/include/asm-arm/platforms/vexpress.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/include/asm-arm/platforms/vexpress.h b/xen/include/asm-arm/platforms/vexpress.h index 982a293..014509b 100644 --- a/xen/include/asm-arm/platforms/vexpress.h +++ b/xen/include/asm-arm/platforms/vexpress.h @@ -39,7 +39,7 @@ int vexpress_syscfg(int write, int function, int device, uint32_t *data); #define V2M_GIC_BASE_ADDRESS 0x2c000000 /* Timer's frequency */ -#define V2M_TIMER_FREQUENCY 0x5f5e100 /* 100 Mhz */ +#define V2M_TIMER_FREQUENCY (24 * 1000 * 1000) /* 24 Mhz */ #endif /* __ASSEMBLY__ */ -- 1.7.10.4