diff options
| author | Mikulas Patocka <[email protected]> | 2017-09-06 22:41:21 -0400 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2017-10-07 12:10:30 +0800 |
| commit | 5e1a646204deb0efd0e0bbc1730ac11dcb39f8fb (patch) | |
| tree | f9a8400f86d11aca28a00e501da6e4cab4b26d2b /tools/perf/scripts/python/netdev-times.py | |
| parent | c07f7c29d1c6a7c62b66299d50acd6ffd171f612 (diff) | |
crypto: crc32-pclmul - remove useless relative addressing
In 32-bit mode, the x86 architecture can hold full 32-bit pointers.
Therefore, the code that copies the current address to the %ecx register
and uses %ecx-relative addressing is useless, we could just use absolute
addressing.
The processors have a stack of return addresses for branch prediction. If
we use a call instruction and pop the return address, it desynchronizes
the return stack and causes branch prediction misses.
This patch also moves the data to the .rodata section.
Signed-off-by: Mikulas Patocka <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions