18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _PVCLOCK_GTOD_H
38c2ecf20Sopenharmony_ci#define _PVCLOCK_GTOD_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#include <linux/notifier.h>
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ci/*
88c2ecf20Sopenharmony_ci * The pvclock gtod notifier is called when the system time is updated
98c2ecf20Sopenharmony_ci * and is used to keep guest time synchronized with host time.
108c2ecf20Sopenharmony_ci *
118c2ecf20Sopenharmony_ci * The 'action' parameter in the notifier function is false (0), or
128c2ecf20Sopenharmony_ci * true (non-zero) if system time was stepped.
138c2ecf20Sopenharmony_ci */
148c2ecf20Sopenharmony_ciextern int pvclock_gtod_register_notifier(struct notifier_block *nb);
158c2ecf20Sopenharmony_ciextern int pvclock_gtod_unregister_notifier(struct notifier_block *nb);
168c2ecf20Sopenharmony_ci
178c2ecf20Sopenharmony_ci#endif /* _PVCLOCK_GTOD_H */
18