commit | edcb33378bbf0a0f205d47f62be1f3fca9b6d623 | [log] [tgz] |
---|---|---|
author | Joe Perches <joe@perches.com> | Mon Nov 11 17:22:41 2013 -0600 |
committer | FuckingShitUp <kengreenwood420666@gmail.com> | Tue Jan 20 16:29:16 2015 -0600 |
tree | 64023340c9b9e00b76c4b4d1af8876d36ec2d85d | |
parent | 64297cecb885c176fcb587b87cd2354ff7e07fe8 [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 __ Change-Id: I53c6759aee83fd080550cea8752a07bec912a954