diff options
author | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2009-10-08 00:42:53 +0200 |
---|---|---|
committer | Stefan Richter <stefanr@s5r6.in-berlin.de> | 2009-10-14 23:10:48 +0200 |
commit | cb7c96da3651111efbe088fa12f9bed61836ea93 (patch) | |
tree | d31d9ba7e321206cd5b32753f444aabc2c76efeb /include/linux/firewire.h | |
parent | fe242579e9f33150868f1bb79c7e262ad7953f17 (diff) | |
download | linux-stable-cb7c96da3651111efbe088fa12f9bed61836ea93.tar.gz linux-stable-cb7c96da3651111efbe088fa12f9bed61836ea93.tar.bz2 linux-stable-cb7c96da3651111efbe088fa12f9bed61836ea93.zip |
firewire: core: optimize Topology Map creation
The Topology Map of the local node was created in CPU byte order,
then a temporary big endian copy was created to compute the CRC,
and when a read request to the Topology Map arrived it had to be
converted to big endian byte order again.
We now generate it in big endian byte order in the first place.
This also rids us of 1000 bytes stack usage in tasklet context.
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'include/linux/firewire.h')
-rw-r--r-- | include/linux/firewire.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/firewire.h b/include/linux/firewire.h index 53b9217de86c..211a5d7d87b3 100644 --- a/include/linux/firewire.h +++ b/include/linux/firewire.h @@ -117,7 +117,7 @@ struct fw_card { bool broadcast_channel_allocated; u32 broadcast_channel; - u32 topology_map[(CSR_TOPOLOGY_MAP_END - CSR_TOPOLOGY_MAP) / 4]; + __be32 topology_map[(CSR_TOPOLOGY_MAP_END - CSR_TOPOLOGY_MAP) / 4]; }; struct fw_attribute_group { |