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

From: Christoph Lameter
Date: Wed May 27 2009 - 15:33:33 EST


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

Signed-off-by: Christoph Lameter <cl@xxxxxxxxxxxxxxxxxxxx>

---
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;
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/