aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorHerbert Xu <[email protected]>2015-03-24 00:50:20 +1100
committerDavid S. Miller <[email protected]>2015-03-23 22:07:51 -0400
commitde91b25c8011089f5dd99b9d24743db1f550ca4b (patch)
treeee038e699a64ef4ee361673f7ca22619ca3b0491 /tools/perf/scripts/python/syscall-counts.py
parentd88252f9bb74d266653542b753f9ab404e8b88db (diff)
rhashtable: Eliminate unnecessary branch in rht_key_hashfn
When rht_key_hashfn is called from rhashtable itself and params is equal to ht->p, there is no point in checking params.key_len and falling back to ht->p.key_len. For some reason gcc couldn't figure out that params is the same as ht->p. So let's help it by only checking params.key_len when it's a constant. Signed-off-by: Herbert Xu <[email protected]> Acked-by: Thomas Graf <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions