firewire: reorder struct fw_card for better cache efficiency
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sat, 29 Nov 2008 18:00:56 +0000 (19:00 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 4 Jan 2009 22:50:38 +0000 (23:50 +0100)
commitc8a12d45d543905a2718fccafd612edbd73a1341
treeb14e18eb68be2da1e9971ce5094ccc54b9030ef8
parentd6f95a3d14dc403881b23ad268ec1e3600c4e6b4
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: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/fw-transaction.h