Message ID | c2badfebc1efe612c75884218f57af607df5394c.1743110205.git.mykola_kvach@epam.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [v3] xen/percpu: don't initialize percpu on resume | expand |
diff --git a/xen/common/percpu.c b/xen/common/percpu.c index e4e8b7bcab..c6ecd95a08 100644 --- a/xen/common/percpu.c +++ b/xen/common/percpu.c @@ -30,7 +30,9 @@ static int init_percpu_area(unsigned int cpu) char *p; if ( __per_cpu_offset[cpu] != INVALID_PERCPU_AREA ) - return park_offline_cpus ? 0 : -EBUSY; + return park_offline_cpus || system_state == SYS_STATE_resume + ? 0 + : -EBUSY; if ( (p = alloc_xenheap_pages(PERCPU_ORDER, 0)) == NULL ) return -ENOMEM;