reactos/ntoskrnl/ke/processor.c
Timo Kreuzer c07fba4508 [NTOS:KE] Make KeQueryActiveProcessors portable and non-paged
In Windows Vista and later, this routine can be called at any IRQL.
2025-01-24 18:38:34 +02:00

26 lines
660 B
C

/*
* PROJECT: ReactOS Kernel
* LICENSE: MIT (https://spdx.org/licenses/MIT)
* PURPOSE: Portable processor related routines
* COPYRIGHT: Copyright 2025 Timo Kreuzer <timo.kreuzer@reactos.org>
*/
/* INCLUDES ******************************************************************/
#include <ntoskrnl.h>
#define NDEBUG
#include <debug.h>
/* GLOBALS *******************************************************************/
CCHAR KeNumberProcessors = 0;
KAFFINITY KeActiveProcessors = 0;
/* FUNCTIONS *****************************************************************/
KAFFINITY
NTAPI
KeQueryActiveProcessors(VOID)
{
return KeActiveProcessors;
}