OSDN Git Service

time: Allow gcc to fold usecs_to_jiffies(constant)
authorNicholas Mc Guire <hofrat@osadl.org>
Thu, 28 May 2015 17:09:56 +0000 (19:09 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 10 Jun 2015 09:31:14 +0000 (11:31 +0200)
commitc569a23d65ac2900d9998d3fe04044fe95be6b2f
treeecc4e449ec0918189cc6b78855980636069417f7
parentae60d6a0e3a9197d37f8c8c4584a8ecd18518cd6
time: Allow gcc to fold usecs_to_jiffies(constant)

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.

Signed-off-by: Nicholas Mc Guire <hofrat@osadl.org>
Cc: Masahiro Yamada <yamada.m@jp.panasonic.com>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Joe Perches <joe@perches.com>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Andrew Hunter <ahh@google.com>
Cc: Paul Turner <pjt@google.com>
Cc: Michal Marek <mmarek@suse.cz>
Link: http://lkml.kernel.org/r/1432832996-12129-2-git-send-email-hofrat@osadl.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
include/linux/jiffies.h