mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
xen: sched: make sure a pCPU added to a pool runs the scheduler ASAP
When a pCPU is added to a cpupool, the pool's scheduler should immediately run on it so, for instance, any runnable but not running vCPU can start executing there. This currently does not happen. Make it happen by raising the scheduler softirq directly from the function that sets up the new scheduler for the pCPU. Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com> Reviewed-by: George Dunlap <george.dunlap@citrix.com>
This commit is contained in:
1 parent
64c9b1ed69
commit
d92b0e7fca
1 file changed
+3
@@ -1823,6 +1823,9 @@ int schedule_cpu_switch(unsigned int cpu, struct cpupool *c)
|
||||
|
||||
out:
|
||||
per_cpu(cpupool, cpu) = c;
|
||||
/* When a cpu is added to a pool, trigger it to go pick up some work */
|
||||
if ( c != NULL )
|
||||
cpu_raise_softirq(cpu, SCHEDULE_SOFTIRQ);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||