]> git.baikalelectronics.ru Git - kernel.git/commit
pcnet32: only allocate init_block dma consistent
authorDon Fry <pcnet32@verizon.net>
Tue, 6 Mar 2007 18:45:23 +0000 (10:45 -0800)
committerJeff Garzik <jeff@garzik.org>
Sat, 28 Apr 2007 15:00:58 +0000 (11:00 -0400)
commitc7b053fd4c512f94995abaa503791c8205dfbe8d
tree054a009b93ebad4f85d2e454f6c31fc3fabf3e96
parent6931bd967315c5ff9ef5f965db9939690502bd1a
pcnet32: only allocate init_block dma consistent

The patch below moves the init_block out of the private struct and
only allocates init block with pci_alloc_consistent.

This has two effects:

1. Performance increase for non cache coherent machines, because the
   CPU only data in the private struct are now cached

2. locks are working now for platforms, which need to have locks
   in cached memory

Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Acked-by: Don Fry <pcnet32@verizon.net>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/pcnet32.c