time.c (664b0bae0b87f69bc9deb098f5e0158b9cf18e04) | time.c (5c83511bdb9832c86be20fb86b783356e2f58062) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Xen stolen ticks accounting. 4 */ 5#include <linux/kernel.h> 6#include <linux/kernel_stat.h> 7#include <linux/math64.h> 8#include <linux/gfp.h> --- 161 unchanged lines hidden (view full) --- 170 171void __init xen_time_setup_guest(void) 172{ 173 bool xen_runstate_remote; 174 175 xen_runstate_remote = !HYPERVISOR_vm_assist(VMASST_CMD_enable, 176 VMASST_TYPE_runstate_update_flag); 177 | 1// SPDX-License-Identifier: GPL-2.0 2/* 3 * Xen stolen ticks accounting. 4 */ 5#include <linux/kernel.h> 6#include <linux/kernel_stat.h> 7#include <linux/math64.h> 8#include <linux/gfp.h> --- 161 unchanged lines hidden (view full) --- 170 171void __init xen_time_setup_guest(void) 172{ 173 bool xen_runstate_remote; 174 175 xen_runstate_remote = !HYPERVISOR_vm_assist(VMASST_CMD_enable, 176 VMASST_TYPE_runstate_update_flag); 177 |
178 pv_time_ops.steal_clock = xen_steal_clock; | 178 pv_ops.time.steal_clock = xen_steal_clock; |
179 180 static_key_slow_inc(¶virt_steal_enabled); 181 if (xen_runstate_remote) 182 static_key_slow_inc(¶virt_steal_rq_enabled); 183} | 179 180 static_key_slow_inc(¶virt_steal_enabled); 181 if (xen_runstate_remote) 182 static_key_slow_inc(¶virt_steal_rq_enabled); 183} |