[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [XenPPC] [pushed] [ppc] assign ticks_per_usec and base it on taimebase_freq
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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |