projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'sched-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel...
[firefly-linux-kernel-4.4.55.git]
/
arch
/
x86
/
kvm
/
x86.h
diff --git
a/arch/x86/kvm/x86.h
b/arch/x86/kvm/x86.h
index 0ca2f3e4803c2a5846be297a51eb5c1cf67aff4a..2f822cd886c26cb631d50c38fb933d5898bcc0c0 100644
(file)
--- a/
arch/x86/kvm/x86.h
+++ b/
arch/x86/kvm/x86.h
@@
-147,6
+147,11
@@
static inline void kvm_register_writel(struct kvm_vcpu *vcpu,
return kvm_register_write(vcpu, reg, val);
}
+static inline u64 get_kernel_ns(void)
+{
+ return ktime_get_boot_ns();
+}
+
static inline bool kvm_check_has_quirk(struct kvm *kvm, u64 quirk)
{
return !(kvm->arch.disabled_quirks & quirk);