aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorJuergen Gross <jgross@suse.com>2016-05-20 03:26:48 -0400
committerDavid Vrabel <david.vrabel@citrix.com>2016-07-06 05:34:48 -0400
commitecb23dc6f2eff0ce64dd60351a81f376f13b12cc (patch)
tree09536e5db2dc00af9dd5209fef72a1e1222f6cf2 /kernel
parentc7ebf9d9c6b4e9402b978da0b0785db4129c1f79 (diff)
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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched/cputime.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/kernel/sched/cputime.c b/kernel/sched/cputime.c
index 75f98c5498d5..8c4c6dcc052c 100644
--- a/kernel/sched/cputime.c
+++ b/kernel/sched/cputime.c
@@ -490,16 +490,6 @@ void account_process_tick(struct task_struct *p, int user_tick)
490} 490}
491 491
492/* 492/*
493 * Account multiple ticks of steal time.
494 * @p: the process from which the cpu time has been stolen
495 * @ticks: number of stolen ticks
496 */
497void account_steal_ticks(unsigned long ticks)
498{
499 account_steal_time(jiffies_to_cputime(ticks));
500}
501
502/*
503 * Account multiple ticks of idle time. 493 * Account multiple ticks of idle time.
504 * @ticks: number of stolen ticks 494 * @ticks: number of stolen ticks
505 */ 495 */