Skip to content

Commit

Permalink
[I/OAT]: Do not use for_each_cpu().
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Morton authored and David S. Miller committed Jun 18, 2006
1 parent 1a2449a commit 17f3ae0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/dma/dmaengine.c
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ static ssize_t show_memcpy_count(struct class_device *cd, char *buf)
unsigned long count = 0;
int i;

for_each_cpu(i)
for_each_possible_cpu(i)
count += per_cpu_ptr(chan->local, i)->memcpy_count;

return sprintf(buf, "%lu\n", count);
Expand All @@ -91,7 +91,7 @@ static ssize_t show_bytes_transferred(struct class_device *cd, char *buf)
unsigned long count = 0;
int i;

for_each_cpu(i)
for_each_possible_cpu(i)
count += per_cpu_ptr(chan->local, i)->bytes_transferred;

return sprintf(buf, "%lu\n", count);
Expand Down Expand Up @@ -182,7 +182,7 @@ static void dma_chan_free_rcu(struct rcu_head *rcu)
struct dma_chan *chan = container_of(rcu, struct dma_chan, rcu);
int bias = 0x7FFFFFFF;
int i;
for_each_cpu(i)
for_each_possible_cpu(i)
bias -= local_read(&per_cpu_ptr(chan->local, i)->refcount);
atomic_sub(bias, &chan->refcount.refcount);
kref_put(&chan->refcount, dma_chan_cleanup);
Expand Down

0 comments on commit 17f3ae0

Please sign in to comment.