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