aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2006-05-25 16:26:53 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2006-06-18 00:25:58 -0400
commit17f3ae08b6e7fd778371f2cafbd1c988a67ee343 (patch)
tree9e33f603469628d9bbe679bede945d61e7417dbf
parent1a2449a87bb7606113b1aa1a9d3c3e78ef189a1c (diff)
[I/OAT]: Do not use for_each_cpu().
for_each_cpu() is going away (and is gone in -mm). Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Chris Leech <christopher.leech@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/dma/dmaengine.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c
index 473c47b6f094..5829143558e1 100644
--- a/drivers/dma/dmaengine.c
+++ b/drivers/dma/dmaengine.c
@@ -79,7 +79,7 @@ static ssize_t show_memcpy_count(struct class_device *cd, char *buf)
79 unsigned long count = 0; 79 unsigned long count = 0;
80 int i; 80 int i;
81 81
82 for_each_cpu(i) 82 for_each_possible_cpu(i)
83 count += per_cpu_ptr(chan->local, i)->memcpy_count; 83 count += per_cpu_ptr(chan->local, i)->memcpy_count;
84 84
85 return sprintf(buf, "%lu\n", count); 85 return sprintf(buf, "%lu\n", count);
@@ -91,7 +91,7 @@ static ssize_t show_bytes_transferred(struct class_device *cd, char *buf)
91 unsigned long count = 0; 91 unsigned long count = 0;
92 int i; 92 int i;
93 93
94 for_each_cpu(i) 94 for_each_possible_cpu(i)
95 count += per_cpu_ptr(chan->local, i)->bytes_transferred; 95 count += per_cpu_ptr(chan->local, i)->bytes_transferred;
96 96
97 return sprintf(buf, "%lu\n", count); 97 return sprintf(buf, "%lu\n", count);
@@ -182,7 +182,7 @@ static void dma_chan_free_rcu(struct rcu_head *rcu)
182 struct dma_chan *chan = container_of(rcu, struct dma_chan, rcu); 182 struct dma_chan *chan = container_of(rcu, struct dma_chan, rcu);
183 int bias = 0x7FFFFFFF; 183 int bias = 0x7FFFFFFF;
184 int i; 184 int i;
185 for_each_cpu(i) 185 for_each_possible_cpu(i)
186 bias -= local_read(&per_cpu_ptr(chan->local, i)->refcount); 186 bias -= local_read(&per_cpu_ptr(chan->local, i)->refcount);
187 atomic_sub(bias, &chan->refcount.refcount); 187 atomic_sub(bias, &chan->refcount.refcount);
188 kref_put(&chan->refcount, dma_chan_cleanup); 188 kref_put(&chan->refcount, dma_chan_cleanup);