pvclock_gtod.h 548 B

1234567891011121314151617
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _PVCLOCK_GTOD_H
  3. #define _PVCLOCK_GTOD_H
  4. #include <linux/notifier.h>
  5. /*
  6. * The pvclock gtod notifier is called when the system time is updated
  7. * and is used to keep guest time synchronized with host time.
  8. *
  9. * The 'action' parameter in the notifier function is false (0), or
  10. * true (non-zero) if system time was stepped.
  11. */
  12. extern int pvclock_gtod_register_notifier(struct notifier_block *nb);
  13. extern int pvclock_gtod_unregister_notifier(struct notifier_block *nb);
  14. #endif /* _PVCLOCK_GTOD_H */