From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: [RFC][PATCH 0/5] preempt_count rework Date: Wed, 14 Aug 2013 08:43:12 -0700 Message-ID: <520BA590.2030808@zytor.com> References: <20130814131539.790947874@chello.nl> <520B8A81.1080405@zytor.com> <1376494751.7355.28.camel@marge.simpson.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: Received: from terminus.zytor.com ([198.137.202.10]:46348 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750896Ab3HNPoc (ORCPT ); Wed, 14 Aug 2013 11:44:32 -0400 In-Reply-To: <1376494751.7355.28.camel@marge.simpson.net> Sender: linux-arch-owner@vger.kernel.org List-ID: To: Mike Galbraith Cc: Peter Zijlstra , Linus Torvalds , Ingo Molnar , Andi Kleen , Thomas Gleixner , Arjan van de Ven , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org On 08/14/2013 08:39 AM, Mike Galbraith wrote: > > ..so could the rq = cpu_rq(cpu) sequence be improved cycle expenditure > wise by squirreling rq pointer away in a percpu this_rq, and replacing > cpu_rq(cpu) above with a __this_cpu_read(this_rq) version of this_rq()? > Yes. -hpa