SMP - Scheduler can assign process to a cpu
- machine information contains the number of cpus and the bsp id - a dummy SMP scheduler which keeps all system processes on BSP and all other process on APs. The scheduler remembers how many processes are assigned to each CPU and always picks the one with the least processes for a new process.
This commit is contained in:
@@ -124,7 +124,9 @@ struct machine {
|
||||
int pc_at;
|
||||
int ps_mca;
|
||||
int processor;
|
||||
int padding; /* used to be protected */
|
||||
unsigned processors_count; /* how many cpus are available */
|
||||
unsigned bsp_id; /* id of the bootstrap cpu */
|
||||
int padding; /* used to be protected */
|
||||
int vdu_ega;
|
||||
int vdu_vga;
|
||||
int apic_enabled; /* does the kernel use APIC or not? */
|
||||
|
||||
Reference in New Issue
Block a user