]> xenbits.xensource.com Git - people/larsk/xen.git/commit
core-parking: interact with runtime SMT-disabling
authorJan Beulich <jbeulich@suse.com>
Wed, 18 Sep 2019 13:12:33 +0000 (15:12 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 18 Sep 2019 13:12:33 +0000 (15:12 +0200)
commitef265d7551ee39038b8b2a7f158cdb0d141e2863
tree4d716b45ab0621d051db99567a45cfe41d52f88f
parent20fdbb1b076d2ca79771dd7ec98ddd593bdece1d
core-parking: interact with runtime SMT-disabling

When disabling SMT at runtime, secondary threads should no longer be
candidates for bringing back up in response to _PUR ACPI events. Purge
them from the tracking array.

Doing so involves adding locking to guard accounting data in the core
parking code. While adding the declaration for the lock, take the
liberty to drop two unnecessary forward function declarations.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/sysctl.c
xen/common/core_parking.c
xen/include/asm-x86/smp.h