[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Xen-devel] [PATCH v5] new config option vtsc_tolerance_khz to avoid TSC emulation
- To: Jan Beulich <JBeulich@xxxxxxxx>
- From: Olaf Hering <olaf@xxxxxxxxx>
- Date: Thu, 29 Mar 2018 12:05:32 +0200
- Cc: Tim Deegan <tim@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wei.liu2@xxxxxxxxxx>, George Dunlap <George.Dunlap@xxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Ian Jackson <ian.jackson@xxxxxxxxxxxxx>, Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxx, Julien Grall <julien.grall@xxxxxxx>
- Delivery-date: Thu, 29 Mar 2018 10:05:51 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On Thu, Mar 29, Jan Beulich wrote:
> Actually I was wrong - we have an abstraction already, just that
> it's upper case: ABS(). But it requires its input to have signed type.
Would this be acceptable?
khz_diff = ABS((long)cpu_khz - (long)gtsc_khz);
Olaf
Attachment:
signature.asc
Description: PGP signature
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel
|