Skip to content

Commit

Permalink
[NTOS:KE/x64] Set the idle thread's IdealProcessor for application pr…
Browse files Browse the repository at this point in the history
…ocessors
  • Loading branch information
tkreuzer committed Dec 3, 2023
1 parent 4a103e0 commit 32e179e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ntoskrnl/ke/amd64/krnlinit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 32e179e

Please sign in to comment.