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)
commit6ecb766710e5128e3b8f3c775f907dcb8fead8d1
tree054a009b93ebad4f85d2e454f6c31fc3fabf3e96
parent1c8816c6fe375ed3a1e342fcf7f403cd4f0d5041
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