[PATCH] powerpc/cell spidernet reduce DMA kicking
commita664ccf430547696951bf3949f5a2de5079ece5a
authorLinas Vepstas <linas@austin.ibm.com>
Tue, 10 Oct 2006 21:18:18 +0000 (10 16:18 -0500)
committerJeff Garzik <jeff@garzik.org>
Wed, 11 Oct 2006 08:04:26 +0000 (11 04:04 -0400)
tree53fc9fdba563fe8f70c9a3de51b78c52de84fe23
parent499eea18722e43f0ee15e11ac16ffcbd10b70b24
[PATCH] powerpc/cell spidernet reduce DMA kicking

The current code attempts to start the TX dma every time a packet
is queued. This is too conservative, and wastes CPU time. This
patch changes behaviour to call the kick-dma function less often,
only when the tx queue is at risk of emptying.

This reduces cpu usage, improves performance.

Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Cc: James K Lewis <jklewis@us.ibm.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/net/spider_net.c