[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] xen/arm: Set up Versatile Express timer frequency to 24 Mhz



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 <julien.grall@xxxxxxxxxx>
---
 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


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.