summaryrefslogtreecommitdiff
path: root/tools/iio/Makefile
diff options
context:
space:
mode:
authorRasmus Villemoes <linux@rasmusvillemoes.dk>2015-10-02 07:45:30 (GMT)
committerThomas Gleixner <tglx@linutronix.de>2015-10-11 20:13:46 (GMT)
commit9fc4468d546b6eb55b0aa5b04b0c36238ebf57e7 (patch)
tree07727d1e73f5745c306d944940ce3c703f13e244 /tools/iio/Makefile
parentcfed432d7f4114e16e0163bcfe65e96f0c304493 (diff)
downloadlinux-9fc4468d546b6eb55b0aa5b04b0c36238ebf57e7.tar.xz
timers: Use __fls in apply_slack()
In apply_slack(), find_last_bit() is applied to a bitmask consisting of precisely BITS_PER_LONG bits. Since mask is non-zero, we might as well eliminate the function call and use __fls() directly. On x86_64, this shaves 23 bytes of the only caller, mod_timer(). This also gets rid of Coverity CID 1192106, but that is a false positive: Coverity is not aware that mask != 0 implies that find_last_bit will not return BITS_PER_LONG. Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk> Cc: John Stultz <john.stultz@linaro.org> Link: http://lkml.kernel.org/r/1443771931-6284-1-git-send-email-linux@rasmusvillemoes.dk Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'tools/iio/Makefile')
0 files changed, 0 insertions, 0 deletions