Re: [PATCH 2/2] time: allow gcc to fold constants when possible

2015-06-04 Thread Nicholas Mc Guire
On Tue, 02 Jun 2015, Thomas Gleixner wrote: > 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 >

Re: [PATCH 2/2] time: allow gcc to fold constants when possible

2015-06-02 Thread Joe Perches
On Tue, 2015-06-02 at 14:31 -0700, John Stultz wrote: > On Tue, Jun 2, 2015 at 2:23 PM, Thomas Gleixner wrote: > > 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 > >

Re: [PATCH 2/2] time: allow gcc to fold constants when possible

2015-06-02 Thread John Stultz
On Tue, Jun 2, 2015 at 2:23 PM, Thomas Gleixner wrote: > 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 ca

Re: [PATCH 2/2] time: allow gcc to fold constants when possible

2015-06-02 Thread Thomas Gleixner
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, wh

Re: [PATCH 2/2] time: allow gcc to fold constants when possible

2015-05-28 Thread Joe Perches
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()

[PATCH 2/2] time: allow gcc to fold constants when possible

2015-05-28 Thread Nicholas Mc Guire
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. Patch was build tested for: arm - imx_v6_v7_defconfig,