Code cleanup:

- Move NtGlobalFlag declaration to wdm.h (which Emanuele wanted to do since it was committed in revision 1137).
- Remove unneeded declarations added by Filip in revision 9660 and Thomas in revision 14058, they all are in the proper headers already for a long time.

svn path=/trunk/; revision=32516
This commit is contained in:
Aleksey Bragin 2008-02-27 20:35:51 +00:00
parent ce7c9d5844
commit 13dff8f1b1

View file

@ -1,12 +1,11 @@
/* $Id$ /*
*
* COPYRIGHT: See COPYING in the top level directory * COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS kernel * PROJECT: ReactOS kernel
* FILE: ntoskrnl/ex/sysinfo.c * FILE: ntoskrnl/ex/sysinfo.c
* PURPOSE: System information functions * PURPOSE: System information functions
* *
* PROGRAMMERS: David Welch (welch@mcmail.com) * PROGRAMMERS: David Welch (welch@mcmail.com)
* Aleksey Bragin (aleksey@studiocerebral.com) * Aleksey Bragin (aleksey@reactos.org)
*/ */
/* INCLUDES *****************************************************************/ /* INCLUDES *****************************************************************/
@ -15,10 +14,6 @@
#define NDEBUG #define NDEBUG
#include <internal/debug.h> #include <internal/debug.h>
extern PEPROCESS PsIdleProcess;
extern ULONG NtGlobalFlag; /* FIXME: it should go in a ddk/?.h */
ULONGLONG STDCALL KeQueryInterruptTime(VOID);
VOID MmPrintMemoryStatistic(VOID); VOID MmPrintMemoryStatistic(VOID);
FAST_MUTEX ExpEnvironmentLock; FAST_MUTEX ExpEnvironmentLock;
@ -159,10 +154,8 @@ ExGetPreviousMode (VOID)
* @implemented * @implemented
*/ */
VOID VOID
STDCALL NTAPI
ExGetCurrentProcessorCpuUsage ( ExGetCurrentProcessorCpuUsage(PULONG CpuUsage)
PULONG CpuUsage
)
{ {
PKPRCB Prcb; PKPRCB Prcb;
ULONG TotalTime; ULONG TotalTime;
@ -182,12 +175,10 @@ ExGetCurrentProcessorCpuUsage (
* @implemented * @implemented
*/ */
VOID VOID
STDCALL NTAPI
ExGetCurrentProcessorCounts ( ExGetCurrentProcessorCounts(PULONG ThreadKernelTime,
PULONG ThreadKernelTime, PULONG TotalCpuTime,
PULONG TotalCpuTime, PULONG ProcessorNumber)
PULONG ProcessorNumber
)
{ {
PKPRCB Prcb; PKPRCB Prcb;
@ -202,7 +193,7 @@ ExGetCurrentProcessorCounts (
* @implemented * @implemented
*/ */
BOOLEAN BOOLEAN
STDCALL NTAPI
ExIsProcessorFeaturePresent(IN ULONG ProcessorFeature) ExIsProcessorFeaturePresent(IN ULONG ProcessorFeature)
{ {
/* Quick check to see if it exists at all */ /* Quick check to see if it exists at all */
@ -216,14 +207,15 @@ ExIsProcessorFeaturePresent(IN ULONG ProcessorFeature)
* @implemented * @implemented
*/ */
BOOLEAN BOOLEAN
STDCALL NTAPI
ExVerifySuite(SUITE_TYPE SuiteType) ExVerifySuite(SUITE_TYPE SuiteType)
{ {
if (SuiteType == Personal) return TRUE; if (SuiteType == Personal) return TRUE;
return FALSE; return FALSE;
} }
NTSTATUS STDCALL NTSTATUS
NTAPI
NtQuerySystemEnvironmentValue (IN PUNICODE_STRING VariableName, NtQuerySystemEnvironmentValue (IN PUNICODE_STRING VariableName,
OUT PWSTR ValueBuffer, OUT PWSTR ValueBuffer,
IN ULONG ValueBufferLength, IN ULONG ValueBufferLength,
@ -372,7 +364,7 @@ NtQuerySystemEnvironmentValue (IN PUNICODE_STRING VariableName,
} }
NTSTATUS STDCALL NTSTATUS NTAPI
NtSetSystemEnvironmentValue (IN PUNICODE_STRING VariableName, NtSetSystemEnvironmentValue (IN PUNICODE_STRING VariableName,
IN PUNICODE_STRING Value) IN PUNICODE_STRING Value)
{ {
@ -1797,7 +1789,7 @@ CallQS [] =
/* /*
* @implemented * @implemented
*/ */
NTSTATUS STDCALL NTSTATUS NTAPI
NtQuerySystemInformation (IN SYSTEM_INFORMATION_CLASS SystemInformationClass, NtQuerySystemInformation (IN SYSTEM_INFORMATION_CLASS SystemInformationClass,
OUT PVOID SystemInformation, OUT PVOID SystemInformation,
IN ULONG Length, IN ULONG Length,
@ -1861,7 +1853,7 @@ NtQuerySystemInformation (IN SYSTEM_INFORMATION_CLASS SystemInformationClass,
NTSTATUS NTSTATUS
STDCALL NTAPI
NtSetSystemInformation ( NtSetSystemInformation (
IN SYSTEM_INFORMATION_CLASS SystemInformationClass, IN SYSTEM_INFORMATION_CLASS SystemInformationClass,
IN PVOID SystemInformation, IN PVOID SystemInformation,
@ -1911,7 +1903,7 @@ NtSetSystemInformation (
NTSTATUS NTSTATUS
STDCALL NTAPI
NtFlushInstructionCache ( NtFlushInstructionCache (
IN HANDLE ProcessHandle, IN HANDLE ProcessHandle,
IN PVOID BaseAddress, IN PVOID BaseAddress,