From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752266AbbFBVXr (ORCPT ); Tue, 2 Jun 2015 17:23:47 -0400 Received: from www.linutronix.de ([62.245.132.108]:53229 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751627AbbFBVXj (ORCPT ); Tue, 2 Jun 2015 17:23:39 -0400 Date: Tue, 2 Jun 2015 23:23:28 +0200 (CEST) From: Thomas Gleixner To: Joe Perches cc: Nicholas Mc Guire , Michal Marek , Masahiro Yamada , Sam Ravnborg , "H. Peter Alvin" , John Stultz , Andrew Hunter , Paul Turner , linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] time: allow gcc to fold constants when possible In-Reply-To: <1432836156.2846.237.camel@perches.com> Message-ID: References: <1432832996-12129-1-git-send-email-hofrat@osadl.org> <1432832996-12129-2-git-send-email-hofrat@osadl.org> <1432836156.2846.237.camel@perches.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 28 May 2015, Joe Perches wrote: > On Thu, 2015-05-28 at 19:09 +0200, Nicholas Mc Guire wrote: > > To allow constant folding in usecs_to_jiffies() conditionally calls > > the HZ dependent _usecs_to_jiffies() helpers or, when gcc can not > > figure out constant folding, __usecs_to_jiffies, which is the renamed > > original usecs_to_jiffies() function. > > Hi Nicholas. > > Thanks for following through with this. > > The subject might be nicer if it referenced usecs_to_jiffies > instead of being a bit generic. > > Maybe something like: > > time: allow gcc to fold usecs_to_jiffies(constant) And for correctness sake the first letter after the colon, i.e. the one starting the sentence wants to be uppercase. I'm going to fix that up all together when applying the lot. No need for resend. Thanks, tglx