]> git.baikalelectronics.ru Git - kernel.git/commit
firewire: ohci: reorder struct fw_ohci for better cache efficiency
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sun, 21 Feb 2010 16:57:32 +0000 (17:57 +0100)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Wed, 24 Feb 2010 19:36:55 +0000 (20:36 +0100)
commitb3bac9174faf54df03938077a83c14950b80cdde
treeb31a52f938f7eee08f26455c2602bb8aca94bd9e
parent4749a82024e45300002d8d49f774612406df4619
firewire: ohci: reorder struct fw_ohci for better cache efficiency

The config_rom struct members are only accessed during relatively
infrequent self-ID-complete interrupts and only if the local config ROM
was changed, while the ar_, at_, ir_, it_ members are used very
frequently during I/O.  Hence move the config_rom members further down.

More importantly, make the huge self_id_buffer member the last one; this
is only accessed in self-ID-complete interrupts.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/ohci.c