KVM: PPC: Book3S HV: Use list_move_tail instead of list_del/list_add_tail
Using list_move_tail() instead of list_del() + list_add_tail(). Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
This commit is contained in:
parent
ebe4535fbe
commit
28d057c897
|
@ -2123,8 +2123,7 @@ static bool can_dynamic_split(struct kvmppc_vcore *vc, struct core_info *cip)
|
||||||
cip->subcore_threads[sub] = vc->num_threads;
|
cip->subcore_threads[sub] = vc->num_threads;
|
||||||
cip->subcore_vm[sub] = vc->kvm;
|
cip->subcore_vm[sub] = vc->kvm;
|
||||||
init_master_vcore(vc);
|
init_master_vcore(vc);
|
||||||
list_del(&vc->preempt_list);
|
list_move_tail(&vc->preempt_list, &cip->vcs[sub]);
|
||||||
list_add_tail(&vc->preempt_list, &cip->vcs[sub]);
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue