Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Marcelo Tosatti | e0b306f | 2012-11-27 23:28:59 -0200 | [diff] [blame] | 2 | #ifndef _PVCLOCK_GTOD_H |
| 3 | #define _PVCLOCK_GTOD_H |
| 4 | |
| 5 | #include <linux/notifier.h> |
| 6 | |
David Vrabel | 780427f | 2013-06-27 11:35:46 +0100 | [diff] [blame] | 7 | /* |
| 8 | * The pvclock gtod notifier is called when the system time is updated |
| 9 | * and is used to keep guest time synchronized with host time. |
| 10 | * |
| 11 | * The 'action' parameter in the notifier function is false (0), or |
| 12 | * true (non-zero) if system time was stepped. |
| 13 | */ |
Marcelo Tosatti | e0b306f | 2012-11-27 23:28:59 -0200 | [diff] [blame] | 14 | extern int pvclock_gtod_register_notifier(struct notifier_block *nb); |
| 15 | extern int pvclock_gtod_unregister_notifier(struct notifier_block *nb); |
| 16 | |
| 17 | #endif /* _PVCLOCK_GTOD_H */ |