OSDN Git Service

x86/xen: prefer TSC over xen clocksource for dom0
authorPalik, Imre <imrep@amazon.de>
Tue, 13 Jan 2015 08:14:22 +0000 (09:14 +0100)
committerDavid Vrabel <david.vrabel@citrix.com>
Tue, 20 Jan 2015 18:44:24 +0000 (18:44 +0000)
commit94dd85f6a0688245dbb5a452a86a2a545dee96c1
tree05fbe0a0606ab1490e1af197c5f1947a99c5421d
parent35c8ab4c5c31bbe9e90ee63ba1b199cb979f6520
x86/xen: prefer TSC over xen clocksource for dom0

In Dom0's the use of the TSC clocksource (whenever it is stable enough to
be used) instead of the Xen clocksource should not cause any issues, as
Dom0 VMs never live-migrated.  The TSC clocksource is somewhat more
efficient than the Xen paravirtualised clocksource, thus it should have
higher rating.

This patch decreases the rating of the Xen clocksource in Dom0s to 275.
Which is half-way between the rating of the TSC clocksource (300) and the
hpet clocksource (250).

Cc: Anthony Liguori <aliguori@amazon.com>
Signed-off-by: Imre Palik <imrep@amazon.de>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
arch/x86/xen/time.c