x86/time: report correct frequency of Xen PV clocksource
authorIgor Druzhinin <igor.druzhinin@citrix.com>
Tue, 4 Feb 2020 21:49:37 +0000 (21:49 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 14 Feb 2020 18:01:52 +0000 (18:01 +0000)
commitc52bd545de461127f3ca67c48e8fef7145402035
tree5db7c8150ce4bd315524ce2d2c98a1d7092f26e1
parenta7a3ecd82e289a9a2ecc1d3b5128580e0b577cc7
x86/time: report correct frequency of Xen PV clocksource

The value of the counter represents the number of nanoseconds
since host boot. That means the correct frequency is always 1GHz.

This inconsistency caused time to go slower in PV shim on most
platforms.

Signed-off-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/time.c