Fixed idle loop to use HLT to save power and cpu time under vmware
authorPhillip Susi <phreak@iag.net>
Sun, 14 Apr 2002 16:01:19 +0000 (16:01 +0000)
committerPhillip Susi <phreak@iag.net>
Sun, 14 Apr 2002 16:01:19 +0000 (16:01 +0000)
svn path=/trunk/; revision=2846

reactos/ntoskrnl/ps/idle.c

index 8bd0eec..f19ac14 100644 (file)
@@ -39,6 +39,7 @@ PsIdleThreadMain(PVOID Context)
           KeLowerIrql(oldlvl);
         }
        NtYieldExecution();
+       __asm__( "hlt" );
      }
 }