From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755670Ab1KUJxJ (ORCPT ); Mon, 21 Nov 2011 04:53:09 -0500 Received: from mga11.intel.com ([192.55.52.93]:17084 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752355Ab1KUJxH (ORCPT ); Mon, 21 Nov 2011 04:53:07 -0500 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.69,546,1315206000"; d="scan'208";a="87660571" Subject: Re: [PATCH 2/3] kvm: use this_cpu_xxx replace percpu_xxx funcs From: "Alex,Shi" To: Avi Kivity Cc: Marcelo Tosatti , Christoph Lameter , "tj@kernel.org" , "linux-kernel@vger.kernel.org" , "eric.dumazet@gmail.com" , "Huang, Ying" , "tglx@linutronix.de" , "mingo@redhat.com" , "akpm@linux-foundation.org" , "davem@davemloft.net" , "kaber@trash.net" , "a.p.zijlstra@chello.nl" , "kvm@vger.kernel.org" , "jeremy@xensource.com" In-Reply-To: <4ECA17EC.5050803@redhat.com> References: <1318237851.27949.190.camel@debian> <1318324774.27949.693.camel@debian> <1318382964.27949.782.camel@debian> <1318428673.29699.13.camel@debian> <1318908091.23426.52.camel@debian> <1319016218.23426.104.camel@debian> <4E9E97D2.1040807@redhat.com> <1319096041.23426.182.camel@debian> <1319424608.5061.25.camel@debian> <4EA54694.5070703@redhat.com> <1321866128.30341.567.camel@debian> <4ECA17EC.5050803@redhat.com> Content-Type: text/plain; charset="UTF-8" Date: Mon, 21 Nov 2011 17:52:49 +0800 Message-ID: <1321869169.30341.576.camel@debian> Mime-Version: 1.0 X-Mailer: Evolution 2.28.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > > > > > percpu_xxx funcs are duplicated with this_cpu_xxx funcs, so replace them > > > > > for further code clean up. > > > > > > > > > > And in preempt safe scenario, __this_cpu_xxx funcs has a bit better > > > > > performance since __this_cpu_xxx has no redundant preempt_disable() > > > > > > > > > > > > > Avi: > > > > Would you like to give some comments of this? > > > > > > > > > > Sorry, was travelling: > > > > > > Acked-by: Avi Kivity > > > > > > > And this one, picking up or comments are all appreciated. :) > > Just to be clear, you want this applied in kvm.git? > Glad to be there! :)