Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759651Ab3EFXDk (ORCPT ); Mon, 6 May 2013 19:03:40 -0400 Received: from mail-wi0-f174.google.com ([209.85.212.174]:38834 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759389Ab3EFXDh (ORCPT ); Mon, 6 May 2013 19:03:37 -0400 Date: Tue, 7 May 2013 01:03:33 +0200 From: Frederic Weisbecker To: Olivier Langlois Cc: Ingo Molnar , LKML , Chris Metcalf , Christoph Lameter , Geoff Levand , Gilad Ben Yossef , Hakan Akkan , Kevin Hilman , Li Zhong , Oleg Nesterov , "Paul E. McKenney" , Paul Gortmaker , Peter Zijlstra , Steven Rostedt , Thomas Gleixner Subject: Re: [PATCH 2/3] posix_timers: Defer per process timer stop after timers processing Message-ID: <20130506230332.GA1225@somewhere> References: <1366305822-5499-1-git-send-email-fweisbec@gmail.com> <1366305822-5499-3-git-send-email-fweisbec@gmail.com> <1366345802.2855.38.camel@Wailaba2> <1366950479.7911.22.camel@Wailaba2> <20130430125423.GB8272@somewhere> <1367344318.8833.59.camel@Wailaba2> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1367344318.8833.59.camel@Wailaba2> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1267 Lines: 38 On Tue, Apr 30, 2013 at 01:51:58PM -0400, Olivier Langlois wrote: > > > > > > Maybe the condition around the posix_cpu_timer_schedule() block inside > > > cpu_timer_fire() could even be a good candidate for 'unlikely' > > > qualifier. > > > > Well, cpu_timer_fire() is probably not a fast path. So helping branch > > prediction there probably won't have much measurable effect in practice. > > > Frederic, I'm totally sure that you are right on the measurable effect. > When I did propose the 'unlikely' qualifier, please note, that I also > had a documentary purpose in mind. > > Would you have searched the 'likely' path that does > posix_cpu_timer_schedule() when you did modify the code if the > 'unlikely' tag would have been present? It's indeed sometimes a good indicator. But here it's in the end of a batch of conditional blocks, so it sort of already suggests itself as an unlikely event. But if you feel the comment can be improved, don't hesitate to send a patch. > > Greetings, > Olivier > > > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/