[PATCH] remove superfluous layer from sn2 DMA API

From: Jesse Barnes <jbarnes_at_engr.sgi.com>
Date: 2005-01-22 04:44:12
When I converted the sn2 code over to the new DMA API, I left the old routines 
in place and added wrappers to call them from the generic DMA API functions.  
This added an unnecessary level of obfuscation since the generic ia64 code 
calls those functions when any of the old style PCI DMA API functions are 
called.  This patch rectifies the problem making the code much easier to 
understand and hopefully a little more efficient (though I'm sure gcc was 
already inlining things pretty well, there were a bunch of unnecessary checks 
that I took this opportunity to remove).  It also shrinks the size of the sn2 
pci_dma.c quite a bit.

 pci_dma.c |  480 +++++++++++++++++++-----------------------------------------
 1 files changed, 151 insertions(+), 329 deletions(-)

Signed-off-by: Jesse Barnes <jbarnes@sgi.com>

Thanks,
Jesse

-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Received on Fri Jan 21 12:45:22 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:34 EST