linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH -next] KVM: PPC: Book3S HV: Use list_move_tail instead of list_del/list_add_tail
@ 2016-10-17 15:15 Wei Yongjun
  2016-11-21  5:05 ` Paul Mackerras
  0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2016-10-17 15:15 UTC (permalink / raw)
  To: Alexander Graf, pbonzini, rkrcmar, benh, paulus, mpe
  Cc: Wei Yongjun, kvm-ppc, kvm, linuxppc-dev

From: Wei Yongjun <weiyongjun1@huawei.com>

Using list_move_tail() instead of list_del() + list_add_tail().

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
 arch/powerpc/kvm/book3s_hv.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/arch/powerpc/kvm/book3s_hv.c b/arch/powerpc/kvm/book3s_hv.c
index 3686471..4159431 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;
 }

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] KVM: PPC: Book3S HV: Use list_move_tail instead of list_del/list_add_tail
  2016-10-17 15:15 [PATCH -next] KVM: PPC: Book3S HV: Use list_move_tail instead of list_del/list_add_tail Wei Yongjun
@ 2016-11-21  5:05 ` Paul Mackerras
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Mackerras @ 2016-11-21  5:05 UTC (permalink / raw)
  To: Wei Yongjun
  Cc: Alexander Graf, pbonzini, rkrcmar, benh, mpe, Wei Yongjun,
	kvm-ppc, kvm, linuxppc-dev

On Mon, Oct 17, 2016 at 03:15:50PM +0000, Wei Yongjun wrote:
> From: Wei Yongjun <weiyongjun1@huawei.com>
> 
> Using list_move_tail() instead of list_del() + list_add_tail().
> 
> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>

Thanks, applied to kvm-ppc-next.

Paul.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-11-21  5:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-17 15:15 [PATCH -next] KVM: PPC: Book3S HV: Use list_move_tail instead of list_del/list_add_tail Wei Yongjun
2016-11-21  5:05 ` Paul Mackerras

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).