aboutsummaryrefslogtreecommitdiff
path: root/include/linux/memcopy.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-12-21 18:25:36 +0800
committerMoyster <oysterized@gmail.com>2016-08-26 20:06:32 +0200
commit9722cd7360077819a5af4937c0f742149fcec82c (patch)
tree065c8dcbeef39f4c701d846d2a0bbe56ad57a41d /include/linux/memcopy.h
parenta2253bb117db4df4f14e401fc16ea11f73569815 (diff)
jiffies conversions: Use compile time constants when possible
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: Joe Perches <joe@perches.com> Signed-off-by: Stefan Guendhoer <stefan@guendhoer.com>
Diffstat (limited to 'include/linux/memcopy.h')
0 files changed, 0 insertions, 0 deletions