]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - arch/x86/include/asm/mshyperv.h
Drivers: hv: vmbus: Restructure the clockevents code
[mirror_ubuntu-zesty-kernel.git] / arch / x86 / include / asm / mshyperv.h
index b57b470ac2a7b3baba55a2e0618dedad939a6127..a58c201f34120d3869587017665c6e7628de172f 100644 (file)
@@ -136,6 +136,10 @@ static inline void vmbus_signal_eom(struct hv_message *msg, u32 old_msg_type)
        }
 }
 
+#define hv_get_current_tick(tick) rdmsrl(HV_X64_MSR_TIME_REF_COUNT, tick)
+#define hv_init_timer(timer, tick) wrmsrl(timer, tick)
+#define hv_init_timer_config(config, val) wrmsrl(config, val)
+
 void hyperv_callback_vector(void);
 #ifdef CONFIG_TRACING
 #define trace_hyperv_callback_vector hyperv_callback_vector