Author: aandrejevic
Date: Sat Apr 18 00:57:50 2015
New Revision: 67236

URL: http://svn.reactos.org/svn/reactos?rev=67236&view=rev
Log:
[NTVDM]
The "WORKING_TIMER" disabled code is so obsolete that it doesn't even compile 
anymore.


Modified:
    trunk/reactos/subsystems/mvdm/ntvdm/clock.c

Modified: trunk/reactos/subsystems/mvdm/ntvdm/clock.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/mvdm/ntvdm/clock.c?rev=67236&r1=67235&r2=67236&view=diff
==============================================================================
--- trunk/reactos/subsystems/mvdm/ntvdm/clock.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/mvdm/ntvdm/clock.c [iso-8859-1] Sat Apr 18 
00:57:50 2015
@@ -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 @@
         /* 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++)


Reply via email to