]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: Simplify the hash calculation
authorSteven Rostedt (VMware) <rostedt@goodmis.org>
Tue, 6 Oct 2020 00:21:14 +0000 (20:21 -0400)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 8 Oct 2020 19:29:06 +0000 (15:29 -0400)
commit86fc4ac5499e511a2a852a1b1e1e3d0fff6d4956
tree0387632d4bf0911a626e423e6c2abcc445069a55
parent812ec98fe97a75ca26de5f208f8e824be8450938
ftrace: Simplify the hash calculation

No need to add a check to subtract the number of bits if bits is zero after
fls(). Just divide the size by two before calling it. This does give the
same answer for size of 0 and 1, but that's fine.

Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
kernel/trace/ftrace.c