diff options
author | Keir Fraser <keir@xen.org> | 2012-03-22 12:20:13 +0000 |
---|---|---|
committer | Keir Fraser <keir@xen.org> | 2012-03-22 12:20:13 +0000 |
commit | 269f543ea750ed567d18f2e819e5d5ce58eda5c5 (patch) | |
tree | f1bfaca66eeec018fa55f65817fa387ca62c082f /xen/common/schedule.c | |
parent | 8aed7f047dacebfe8c28109b7adb55784e5bc8ef (diff) | |
download | xen-269f543ea750ed567d18f2e819e5d5ce58eda5c5.tar.gz xen-269f543ea750ed567d18f2e819e5d5ce58eda5c5.tar.bz2 xen-269f543ea750ed567d18f2e819e5d5ce58eda5c5.zip |
Introduce system_state variable.
Use it to replace x86-specific early_boot boolean variable.
Also use it to detect suspend/resume case during cpu offline/online
to avoid unnecessarily breaking vcpu and cpupool affinities.
Signed-off-by: Keir Fraser <keir@xen.org>
Acked-by: Juergen Gross <juergen.gross@ts.fujitsu.com>
Diffstat (limited to 'xen/common/schedule.c')
-rw-r--r-- | xen/common/schedule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/common/schedule.c b/xen/common/schedule.c index 24f89467a1..a1eeac36eb 100644 --- a/xen/common/schedule.c +++ b/xen/common/schedule.c @@ -538,7 +538,7 @@ int cpu_disable_scheduler(unsigned int cpu) int ret = 0; c = per_cpu(cpupool, cpu); - if ( c == NULL ) + if ( (c == NULL) || (system_state == SYS_STATE_suspend) ) return ret; for_each_domain_in_cpupool ( d, c ) |