From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH 2/3] kvm: use this_cpu_xxx replace percpu_xxx funcs Date: Mon, 24 Oct 2011 13:05:56 +0200 Message-ID: <4EA54694.5070703@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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: 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" To: "Alex,Shi" Return-path: In-Reply-To: <1319424608.5061.25.camel@debian> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 10/24/2011 04:50 AM, Alex,Shi wrote: > On Thu, 2011-10-20 at 15:34 +0800, Alex,Shi wrote: > > 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 -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.