WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ppc-devel

[XenPPC] [pushed] [ppc] assign ticks_per_usec and base it on taimebase_f

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] [pushed] [ppc] assign ticks_per_usec and base it on taimebase_freq
From: jimix@xxxxxxxxxxxxxx
Date: Thu, 30 Mar 2006 18:47:17 -0500
Delivery-date: Thu, 30 Mar 2006 23:46:48 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
changeset:   9714:2389fd7700c5c9d251d0ce8f666d01c48cb13f55
user:        jimix@xxxxxxxxxxxxxxxxxxxxx
date:        Thu Mar 30 18:38:23 2006 -0500
files:       xen/arch/ppc/setup.c xen/arch/ppc/time.c
description:
[ppc] assign ticks_per_usec and base it on taimebase_freq


diff -r ee8ecb4ba54ad07194e8578f26843b6c27de5e6a -r 
2389fd7700c5c9d251d0ce8f666d01c48cb13f55 xen/arch/ppc/setup.c
--- a/xen/arch/ppc/setup.c      Thu Mar 30 16:02:45 2006 -0500
+++ b/xen/arch/ppc/setup.c      Thu Mar 30 18:38:23 2006 -0500
@@ -35,6 +35,7 @@
 #include <asm/desc.h>
 #include <asm/cache.h>
 #include <asm/debugger.h>
+#include <asm/delay.h>
 
 unsigned long xenheap_phys_end;
 
@@ -158,6 +159,8 @@ static void __init __start_xen(multiboot
 
     memcpy(0, exception_vectors, exception_vectors_end - exception_vectors);
     synchronize_caches(0, exception_vectors_end - exception_vectors);
+
+    ticks_per_usec = timebase_freq / 1000000ULL;
 
     /* Parse the command-line options. */
     if ((mbi->flags & MBI_CMDLINE) && (mbi->cmdline != 0))
diff -r ee8ecb4ba54ad07194e8578f26843b6c27de5e6a -r 
2389fd7700c5c9d251d0ce8f666d01c48cb13f55 xen/arch/ppc/time.c
--- a/xen/arch/ppc/time.c       Thu Mar 30 16:02:45 2006 -0500
+++ b/xen/arch/ppc/time.c       Thu Mar 30 18:38:23 2006 -0500
@@ -28,7 +28,7 @@
 #define Dprintk(x...) printk(x)
 
 static int cpu_has_hdec = 1;
-ulong ticks_per_usec = 1000;
+ulong ticks_per_usec;
 
 u64 get_timebase(void)
 {



_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel

<Prev in Thread] Current Thread [Next in Thread>
  • [XenPPC] [pushed] [ppc] assign ticks_per_usec and base it on taimebase_freq, jimix <=