]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: Use fls() to get the bits for dup_hash()
authorWei Yang <richard.weiyang@linux.alibaba.com>
Mon, 31 Aug 2020 03:11:00 +0000 (11:11 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 8 Oct 2020 19:29:06 +0000 (15:29 -0400)
commit164afcfeeb0a32911a8e8e562afc9c7de955aede
treee874d9cc9d84a563d4dc87cfad0159c3796c71a3
parent2d0582e244e55b4293879ee89017350e7b6f2be0
ftrace: Use fls() to get the bits for dup_hash()

The effect here is to get the number of bits, lets use fls() to do
this job.

Link: https://lkml.kernel.org/r/20200831031104.23322-3-richard.weiyang@linux.alibaba.com
Signed-off-by: Wei Yang <richard.weiyang@linux.alibaba.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/ftrace.c