]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
x86/xen/time: set pvclock flags on xen_time_init()
authorJoao Martins <joao.m.martins@oracle.com>
Wed, 8 Nov 2017 17:19:56 +0000 (17:19 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Jan 2019 07:13:47 +0000 (08:13 +0100)
commit4f3498a06330cfddc29a7876738eca7a497c81e7
tree6912d16b137ceb596776c7db5b54392372a13a24
parent9a12f78a86fc17af6f8326ffb991a931c34b82b9
x86/xen/time: set pvclock flags on xen_time_init()

commit b888808093113ae7d63d213272d01fea4b8329ed upstream.

Specifically check for PVCLOCK_TSC_STABLE_BIT and if this bit is set,
then set it too on pvclock flags. This allows Xen clocksource to use it
and thus speeding up xen_clocksource_read() callers (i.e. sched_clock())

Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/xen/time.c