diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2016-10-17 15:15:50 +0000 |
---|---|---|
committer | Paul Mackerras <paulus@ozlabs.org> | 2016-11-21 15:17:55 +1100 |
commit | 28d057c8970d394fe048f0b2b9f203889110f165 (patch) | |
tree | 1952239a796cd1e4cbfcd32539d420535e514bba /arch/powerpc/kvm/book3s_hv.c | |
parent | ebe4535fbe7a190e13c0e175e7e7a02898dbac33 (diff) | |
download | blackbird-obmc-linux-28d057c8970d394fe048f0b2b9f203889110f165.tar.gz blackbird-obmc-linux-28d057c8970d394fe048f0b2b9f203889110f165.zip |
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>
Diffstat (limited to 'arch/powerpc/kvm/book3s_hv.c')
-rw-r--r-- | arch/powerpc/kvm/book3s_hv.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; } |