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-ia64-devel

[Xen-ia64-devel] RE: [PATCH 24/29] ia64/pv_ops/xen: implement xen pv_tim

To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Subject: [Xen-ia64-devel] RE: [PATCH 24/29] ia64/pv_ops/xen: implement xen pv_time_ops.
From: "Luck, Tony" <tony.luck@xxxxxxxxx>
Date: Fri, 18 Jul 2008 15:44:21 -0700
Accept-language: en-US
Acceptlanguage: en-US
Cc: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>, "xen-ia64-devel@xxxxxxxxxxxxxxxxxxx" <xen-ia64-devel@xxxxxxxxxxxxxxxxxxx>, "linux-ia64@xxxxxxxxxxxxxxx" <linux-ia64@xxxxxxxxxxxxxxx>, Alex Williamson <alex.williamson@xxxxxx>, "virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx" <virtualization@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 18 Jul 2008 15:44:27 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4880E01B.6060902@xxxxxxxx>
List-help: <mailto:xen-ia64-devel-request@lists.xensource.com?subject=help>
List-id: Discussion of the ia64 port of Xen <xen-ia64-devel.lists.xensource.com>
List-post: <mailto:xen-ia64-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-ia64-devel>, <mailto:xen-ia64-devel-request@lists.xensource.com?subject=unsubscribe>
References: <12162606614068-git-send-email-yamahata@xxxxxxxxxxxxx> <12162606623288-git-send-email-yamahata@xxxxxxxxxxxxx> <487EDC6C.5000407@xxxxxxxx> <20080717061127.GF25137%yamahata@xxxxxxxxxxxxx> <487F5571.5000803@xxxxxxxx> <20080718021732.GD26892%yamahata@xxxxxxxxxxxxx> <4880216F.6040900@xxxxxxxx> <57C9024A16AD2D4C97DC78E552063EA3065E3595@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <4880E01B.6060902@xxxxxxxx>
Sender: xen-ia64-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcjpA7VHe/XOZKMoQyutAlBJToZbWQAI35jQ
Thread-topic: [PATCH 24/29] ia64/pv_ops/xen: implement xen pv_time_ops.
>+       if (!time_after(delta_itm + new_itm, ia64_get_itc()))
>+               stolentick = ia64_get_itc() - new_itm;
>+
>+       do_div(stolentick, NS_PER_TICK);
>
>
> Which makes me assume that ia64_get_itc() is returning nanoseconds; does
> it do the adjustment from the itc's actual rate to nanoseconds?  Could
> it also apply an offset?

No. ia64_get_itc() does no scaling it returns the raw value from
the cr.itc register which increments at a frequency that the OS
discovers using a PAL call.

I'm not quite sure what the above code thinks it is doing. NS_PER_TICK
may have been poorly named???

-Tony

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

<Prev in Thread] Current Thread [Next in Thread>