From: Marc-Aurel Zent <mzent(a)codeweavers.com> --- programs/wineboot/wineboot.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/programs/wineboot/wineboot.c b/programs/wineboot/wineboot.c index a19046a6439..c1ac7c07d38 100644 --- a/programs/wineboot/wineboot.c +++ b/programs/wineboot/wineboot.c @@ -302,6 +302,10 @@ static BOOL is_tsc_trusted_by_the_kernel(void) HANDLE handle; BOOL ret = TRUE; +/* Darwin for x86-64 uses the TSC internally for timekeeping, so it can always + * be trusted. + * For BSDs there seems to be no unified interface to query TSC quality. + * If there is a sysfs entry with clocksource information, use it to check though.*/ handle = CreateFileA( "\\??\\unix\\sys\\bus\\clocksource\\devices\\clocksource0\\current_clocksource", GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, 0 ); if (handle == INVALID_HANDLE_VALUE) return TRUE; -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/4409