[PATCH] mtd: fsl_ifc_nand: use msecs_to_jiffies for time conversion

Brian Norris computersforpeace at gmail.com
Sun Apr 5 18:05:50 PDT 2015


On Fri, Mar 13, 2015 at 07:23:47AM -0400, Nicholas Mc Guire wrote:
> This is only an API consolidation and should make things more readable
> it replaces var * HZ / 1000 by msecs_to_jiffies(var) which helps readability
> and also handles all corner-cases properly.
> 
> Signed-off-by: Nicholas Mc Guire <hofrat at osadl.org>

Pushed to l2-mtd.git.

I'm not sure the objections about an extra function call are important
right now; if they are, then it shouldn't be too hard to patch in a
__builtin_constant_p() variant of msecs_to_jiffies(), as Joe suggested.

Brian



More information about the linux-mtd mailing list