Skip to content
Commit c8a12d45 authored by Stefan Richter's avatar Stefan Richter
Browse files

firewire: reorder struct fw_card for better cache efficiency



topology_map is by far the largest member in struct fw_card.  Move it to
the very end of the struct so that card pointer dereferences have better
chances to hit the CPU cache.

This requires to increase the topology_map backing store to the size
specified in IEEE 1394, i.e. 256 rather than 255 quadlets.  Otherwise
the topology_map response handler may access invalid memory.

Signed-off-by: default avatarStefan Richter <stefanr@s5r6.in-berlin.de>
parent d6f95a3d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment