update for HEAD-2003091401
[reactos.git] / hal / halx86 / perfcnt.c
diff --git a/hal/halx86/perfcnt.c b/hal/halx86/perfcnt.c
deleted file mode 100644 (file)
index 8d4f76f..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-/* $Id$
- *
- * COPYRIGHT:      See COPYING in the top level directory
- * PROJECT:        ReactOS kernel
- * FILE:           ntoskrnl/hal/x86/perfcnt.c
- * PURPOSE:        Performance counter functions
- * PROGRAMMER:     David Welch (welch@mcmail.com)
- *                 Eric Kohl (ekohl@rz-online.de)
- * UPDATE HISTORY:
- *                 09/06/2000: Created
- */
-
-
-/* INCLUDES ***************************************************************/
-
-#include <ddk/ntddk.h>
-
-/* FUNCTIONS **************************************************************/
-
-
-VOID STDCALL
-HalCalibratePerformanceCounter(ULONG Count)
-{
-   ULONG i;
-
-   /* save flags and disable interrupts */
-   __asm__("pushf\n\t" \
-          "cli\n\t");
-
-   for (i = 0; i < Count; i++);
-
-   /* restore flags */
-   __asm__("popf\n\t");
-}
-
-
-LARGE_INTEGER STDCALL
-KeQueryPerformanceCounter(PLARGE_INTEGER PerformanceFreq)
-/*
- * FUNCTION: Queries the finest grained running count avaiable in the system
- * ARGUMENTS:
- *         PerformanceFreq (OUT) = The routine stores the number of 
- *                                 performance counters tick per second here
- * RETURNS: The performance counter value in HERTZ
- * NOTE: Returns the system tick count or the time-stamp on the pentium
- */
-{
-  if (PerformanceFreq != NULL)
-    {
-      PerformanceFreq->QuadPart = 0;
-      return *PerformanceFreq;
-    }
-  else
-    {
-     LARGE_INTEGER Value;
-
-     Value.QuadPart = 0; 
-     return Value;
-    }
-}
-
-/* EOF */