Re: [my_cpu_ptr 3/5] Elimninate get/put_cpu

Christoph Lameter
2009-05-27T19:33:30Z

dmaengine.c was not compiled.... Fixes:

Signed-off-by: Christoph Lameter <cl@linux-foundation.org>

---
drivers/dma/dmaengine.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-2.6/drivers/dma/dmaengine.c
===================================================================
--- linux-2.6.orig/drivers/dma/dmaengine.c 2009-05-27 14:30:32.000000000 -0500
+++ linux-2.6/drivers/dma/dmaengine.c 2009-05-27 14:31:19.000000000 -0500
@@ -328,7 +328,7 @@ struct dma_chan *dma_find_channel(enum d
{
struct dma_chan *chan;

- preempt_disable()
+ preempt_disable();
chan = my_cpu_ptr(channel_table[tx_type])->chan;
preempt_enable();

@@ -918,7 +918,7 @@ dma_async_memcpy_pg_to_pg(struct dma_cha
preempt_disable();
my_cpu_ptr(chan->local)->bytes_transferred += len;
my_cpu_ptr(chan->local)->memcpy_count++;
- preempt_disable();
+ preempt_enable();

return cookie;
}