kernel: Decide whether to use simple or affine scheduler

Simple scheduler is used when we do not have to worry about cache affinity
(i.e. single core with or without SMT, multicore with all cache levels
shared).

When we replace gSchedulerLock with more fine grained locking affine
scheduler should also be chosen when logical CPU count is high (regardless
of cache).
This commit is contained in:
Pawel Dziepak
2013-10-16 18:39:25 +02:00
parent ebec24f9e0
commit cf863a5040
4 changed files with 35 additions and 15 deletions
+1
View File
@@ -76,6 +76,7 @@ typedef struct cpu_ent {
//extern cpu_ent gCPU[MAX_BOOT_CPUS];
extern cpu_ent gCPU[];
extern uint32 gCPUCacheLevelCount;
#ifdef __cplusplus