xen: sched: simplify ACPI S3 resume path.
authorDario Faggioli <dario.faggioli@citrix.com>
Tue, 17 Jan 2017 17:27:10 +0000 (18:27 +0100)
committerGeorge Dunlap <george.dunlap@citrix.com>
Tue, 24 Jan 2017 17:02:07 +0000 (17:02 +0000)
commit8a5d50dd0b047d9f7fe49f511fc9f589073d93d6
treeb237d4b90db2f3fcf6f9086f10ff6a8e22fba084
parentc4fba1161bf28c8ac972f4526b46f7f40fa8d515
xen: sched: simplify ACPI S3 resume path.

In fact, when domains are being unpaused:
 - it's not necessary to put the vcpu to sleep, as
   they are all already paused;
 - it is not necessary to call vcpu_migrate(), as
   the vcpus are still paused, and therefore won't
   wakeup anyway.

Basically, the only important thing is to call
pick_cpu, to let the scheduler run and figure out
what would be the best initial placement (i.e., the
value stored in v->processor), for the vcpus, as
they come back up, one after another.

Note that this is consistent with what was happening
before this change, as vcpu_migrate() calls pick_cpu.
But much simpler and quicker.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Reviewed-by: George Dunlap <george.dunlap@citrix.com>
xen/common/schedule.c