]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen: add steal_clock support on x86
authorJuergen Gross <jgross@suse.com>
Wed, 20 Apr 2016 12:03:32 +0000 (20:03 +0800)
committerBob Liu <bob.liu@oracle.com>
Thu, 20 Oct 2016 07:56:44 +0000 (03:56 -0400)
commit5e9e4a098c52c0561629fa3d62e0c65738bf7df8
tree2a06234b0c9c927206cd72a664d062d935169726
parent3c7a2b5a8ad66e204dc53d5a8f923242a700c904
xen: add steal_clock support on x86

The pv_time_ops structure contains a function pointer for the
"steal_clock" functionality used only by KVM and Xen on ARM. Xen on x86
uses its own mechanism to account for the "stolen" time a thread wasn't
able to run due to hypervisor scheduling.

Add support in Xen arch independent time handling for this feature by
moving it out of the arm arch into drivers/xen and remove the x86 Xen
hack.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
(cherry picked from commit ecb23dc6f2eff0ce64dd60351a81f376f13b12cc)
Signed-off-by: Bob Liu <bob.liu@oracle.com>
Orabug: 24820937

 Conflicts:
arch/arm/xen/enlighten.c
arch/arm/xen/enlighten.c
arch/x86/xen/time.c
drivers/xen/time.c
include/linux/kernel_stat.h
include/xen/xen-ops.h
kernel/sched/cputime.c