From: Wei Yongjun Date: Mon, 17 Oct 2016 15:15:50 +0000 (+0000) Subject: KVM: PPC: Book3S HV: Use list_move_tail instead of list_del/list_add_tail X-Git-Tag: rel_imx_4.19.35_1.1.0~13574^2~18^2~26 X-Git-Url: https://git.somdevices.com/?a=commitdiff_plain;h=28d057c8970d394fe048f0b2b9f203889110f165;p=linux.git 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 Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c index 3686471be32b..415943198e0f 100644 --- a/arch/powerpc/kvm/book3s_hv.c +++ b/arch/powerpc/kvm/book3s_hv.c @@ -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_vm[sub] = vc->kvm; init_master_vcore(vc); - list_del(&vc->preempt_list); - list_add_tail(&vc->preempt_list, &cip->vcs[sub]); + list_move_tail(&vc->preempt_list, &cip->vcs[sub]); return true; }