summaryrefslogtreecommitdiffstats
path: root/include/linux/pvclock_gtod.h
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2012-11-27 23:28:59 -0200
committerMarcelo Tosatti <mtosatti@redhat.com>2012-11-27 23:29:12 -0200
commite0b306fef90556233797d2e1747bd6a3ae35ea93 (patch)
tree0340c76e923fc02a47e5be8bd88c1d75ee0a84f1 /include/linux/pvclock_gtod.h
parent886b470cb14733a0286e365c77f1844c240c33a4 (diff)
downloadlinux-stable-e0b306fef90556233797d2e1747bd6a3ae35ea93.tar.gz
linux-stable-e0b306fef90556233797d2e1747bd6a3ae35ea93.tar.bz2
linux-stable-e0b306fef90556233797d2e1747bd6a3ae35ea93.zip
time: export time information for KVM pvclock
As suggested by John, export time data similarly to how its done by vsyscall support. This allows KVM to retrieve necessary information to implement vsyscall support in KVM guests. Acked-by: John Stultz <johnstul@us.ibm.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'include/linux/pvclock_gtod.h')
-rw-r--r--include/linux/pvclock_gtod.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/pvclock_gtod.h b/include/linux/pvclock_gtod.h
new file mode 100644
index 000000000000..0ca75825b60d
--- /dev/null
+++ b/include/linux/pvclock_gtod.h
@@ -0,0 +1,9 @@
+#ifndef _PVCLOCK_GTOD_H
+#define _PVCLOCK_GTOD_H
+
+#include <linux/notifier.h>
+
+extern int pvclock_gtod_register_notifier(struct notifier_block *nb);
+extern int pvclock_gtod_unregister_notifier(struct notifier_block *nb);
+
+#endif /* _PVCLOCK_GTOD_H */