]> git.baikalelectronics.ru Git - kernel.git/commit
firewire: ohci: access bus_seconds atomically
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Thu, 4 Jun 2009 19:08:43 +0000 (21:08 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Fri, 5 Jun 2009 14:26:17 +0000 (16:26 +0200)
commit3b8fc20f0591cfc964d5c3b562126554987426b4
treeec620a55e21631efee6622f12338fae59b41d1ae
parent48d33b02640fbb935c621bc80bb3fd783245b7de
firewire: ohci: access bus_seconds atomically

In the unlikely event that card->driver->get_bus_time() is called during
a cycle64Seconds interrupt, we could read garbage unless atomic accesses
are used.

The switch to atomic ops requires to change the 64 seconds counter from
unsigned to signed, but this shouldn't matter to the end result.

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