]> 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)
commitf2c0a11d650bea9521102be79138877f2e5e6808
tree0387632d4bf0911a626e423e6c2abcc445069a55
parent164afcfeeb0a32911a8e8e562afc9c7de955aede
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