Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 156d53fa authored by Joe Perches's avatar Joe Perches Committed by Samuel Pascua
Browse files

jiffies conversions: Use compile time constants when possible



Date	Fri, 04 Jan 2013 13:15:43 -0800

Do the multiplications and divisions at compile time
instead of runtime when the converted value is a constant.

Make the calculation functions static __always_inline to jiffies.h.

Add #defines with __builtin_constant_p to test and use the
static inline or the runtime functions as appropriate.

Prefix the old exported symbols/functions with __

Signed-off-by: default avatarPaul Reioux <reioux@gmail.com>
Signed-off-by: default avatarSimarpreet Singh <simar@linux.com>
parent 463bca2d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment