From: Marc-Aurel Zent <mzent(a)codeweavers.com> --- programs/wineboot/wineboot.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/programs/wineboot/wineboot.c b/programs/wineboot/wineboot.c index a19046a6439..dc9fcdfccdd 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. */ +#ifdef __linux__ 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; @@ -310,6 +314,7 @@ static BOOL is_tsc_trusted_by_the_kernel(void) ret = FALSE; CloseHandle( handle ); +#endif return ret; } -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/4409