2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS kernel
4 * FILE: ntoskrnl/ps/idle.c
5 * PURPOSE: Using idle time
6 * PROGRAMMER: David Welch (welch@cwcom.net)
11 /* INCLUDES *****************************************************************/
13 #include <ddk/ntddk.h>
14 #include <internal/ke.h>
15 #include <internal/ps.h>
18 #include <internal/debug.h>
20 /* GLOBALS *******************************************************************/
22 HANDLE PsIdleThreadHandle = NULL;
23 extern ULONG DpcQueueSize;
24 PETHREAD PiIdleThread;
26 /* FUNCTIONS *****************************************************************/
29 PsIdleThreadMain(PVOID Context)
37 KeRaiseIrql(DISPATCH_LEVEL,&oldlvl);
38 KiDispatchInterrupt();
46 VOID PsInitIdleThread(VOID)
51 PsCreateSystemThread(&PsIdleThreadHandle,
59 Priority = LOW_PRIORITY;
60 NtSetInformationThread(PsIdleThreadHandle,
65 NtSetInformationThread(PsIdleThreadHandle,