[NTOS:KE/x64] Set the idle thread's IdealProcessor for application processors

This commit is contained in:
Timo Kreuzer 2023-11-26 20:17:19 +02:00
parent b1a9e72e92
commit e5c5efe2ad

View file

@ -126,6 +126,7 @@ KiInitializeHandBuiltThread(
KeInitializeThread(Process, Thread, NULL, NULL, NULL, NULL, NULL, Stack);
Thread->NextProcessor = Prcb->Number;
Thread->IdealProcessor = Prcb->Number;
Thread->Priority = HIGH_PRIORITY;
Thread->State = Running;
Thread->Affinity = (ULONG_PTR)1 << Prcb->Number;