Make sure timers don't go completely out of sync upon altering TSC via WRMSR
This commit is contained in:
@@ -185,6 +185,9 @@ timer_set_p(pc_timer_t *timer, void *priv)
|
||||
extern void timer_stop(pc_timer_t *timer);
|
||||
extern void timer_on_auto(pc_timer_t *timer, double period);
|
||||
|
||||
/* Change TSC, taking into account the timers. */
|
||||
extern void timer_set_new_tsc(uint64_t new_tsc);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user