From 7087659a28d11f145f42ce87678da7c42edce1a2 Mon Sep 17 00:00:00 2001 From: Aleksandar Andrejevic Date: Sat, 18 Apr 2015 00:57:50 +0000 Subject: [PATCH] [NTVDM] The "WORKING_TIMER" disabled code is so obsolete that it doesn't even compile anymore. svn path=/trunk/; revision=67236 --- reactos/subsystems/mvdm/ntvdm/clock.c | 25 ++++--------------------- 1 file changed, 4 insertions(+), 21 deletions(-) diff --git a/reactos/subsystems/mvdm/ntvdm/clock.c b/reactos/subsystems/mvdm/ntvdm/clock.c index 82d5f8204fa..f03d6c69057 100644 --- a/reactos/subsystems/mvdm/ntvdm/clock.c +++ b/reactos/subsystems/mvdm/ntvdm/clock.c @@ -33,11 +33,6 @@ */ // #define IPS_DISPLAY -/* - * Activate WORKING_TIMER when the PIT timing problem is fixed. - */ -// #define WORKING_TIMER - /* Processor speed */ #define STEPS_PER_CYCLE 1024 @@ -75,22 +70,10 @@ VOID ClockUpdate(VOID) /* Get the current number of ticks */ DWORD CurrentTickCount = GetTickCount(); -#ifdef WORKING_TIMER - if ((PitResolution <= 1000) && (RtcFrequency <= 1000)) - { - /* Calculate the approximate performance counter value instead */ - Counter.QuadPart = StartPerfCount.QuadPart - + ((CurrentTickCount - StartTickCount) - * Frequency.QuadPart) / 1000; - } - else -#endif - { - /* Get the current performance counter value */ - /// DWORD_PTR oldmask = SetThreadAffinityMask(GetCurrentThread(), 0); - NtQueryPerformanceCounter(&Counter, NULL); - /// SetThreadAffinityMask(GetCurrentThread(), oldmask); - } + /* Get the current performance counter value */ + /// DWORD_PTR oldmask = SetThreadAffinityMask(GetCurrentThread(), 0); + NtQueryPerformanceCounter(&Counter, NULL); + /// SetThreadAffinityMask(GetCurrentThread(), oldmask); /* Continue CPU emulation */ for (i = 0; VdmRunning && CpuRunning && (i < STEPS_PER_CYCLE); i++) -- 2.17.1