Files
linux-st/include/linux
Hannes Frederic Sowa e5a2c89995 fast_hash: avoid indirect function calls
By default the arch_fast_hash hashing function pointers are initialized
to jhash(2). If during boot-up a CPU with SSE4.2 is detected they get
updated to the CRC32 ones. This dispatching scheme incurs a function
pointer lookup and indirect call for every hashing operation.

rhashtable as a user of arch_fast_hash e.g. stores pointers to hashing
functions in its structure, too, causing two indirect branches per
hashing operation.

Using alternative_call we can get away with one of those indirect branches.

Acked-by: Daniel Borkmann <dborkman@redhat.com>
Cc: Thomas Graf <tgraf@suug.ch>
Signed-off-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2014-11-05 22:01:21 -05:00
..
2014-10-14 09:00:44 -06:00
2014-10-21 00:51:01 +02:00
2014-10-24 00:14:39 +02:00
2014-10-14 02:18:13 +02:00
2014-10-09 22:25:58 -04:00
2014-10-09 22:25:57 -04:00
2014-10-24 00:14:36 +02:00
2014-10-29 15:05:15 -04:00