mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-29 22:46:47 +07:00
xen/vcpu: Use a unified name about cpu hotplug state for pv and pvhvm
As xen_cpuhp_setup is called by PV and PVHVM, the name of "x86/xen/hvm_guest" is confusing. Signed-off-by: Zhenzhong Duan <zhenzhong.duan@oracle.com> Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com> Signed-off-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
This commit is contained in:
parent
0d805ee70a
commit
eac779aa50
@ -93,11 +93,11 @@ int xen_cpuhp_setup(int (*cpu_up_prepare_cb)(unsigned int),
|
|||||||
int rc;
|
int rc;
|
||||||
|
|
||||||
rc = cpuhp_setup_state_nocalls(CPUHP_XEN_PREPARE,
|
rc = cpuhp_setup_state_nocalls(CPUHP_XEN_PREPARE,
|
||||||
"x86/xen/hvm_guest:prepare",
|
"x86/xen/guest:prepare",
|
||||||
cpu_up_prepare_cb, cpu_dead_cb);
|
cpu_up_prepare_cb, cpu_dead_cb);
|
||||||
if (rc >= 0) {
|
if (rc >= 0) {
|
||||||
rc = cpuhp_setup_state_nocalls(CPUHP_AP_ONLINE_DYN,
|
rc = cpuhp_setup_state_nocalls(CPUHP_AP_ONLINE_DYN,
|
||||||
"x86/xen/hvm_guest:online",
|
"x86/xen/guest:online",
|
||||||
xen_cpu_up_online, NULL);
|
xen_cpu_up_online, NULL);
|
||||||
if (rc < 0)
|
if (rc < 0)
|
||||||
cpuhp_remove_state_nocalls(CPUHP_XEN_PREPARE);
|
cpuhp_remove_state_nocalls(CPUHP_XEN_PREPARE);
|
||||||
|
Loading…
Reference in New Issue
Block a user