Commit 28d057c8 authored by Wei Yongjun's avatar Wei Yongjun Committed by Paul Mackerras

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: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarPaul Mackerras <paulus@ozlabs.org>
parent ebe4535f
...@@ -2123,8 +2123,7 @@ static bool can_dynamic_split(struct kvmppc_vcore *vc, struct core_info *cip) ...@@ -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;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment