Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 27498
b: refs/heads/master
c: 17f3ae0
h: refs/heads/master
v: v3
  • Loading branch information
Andrew Morton authored and David S. Miller committed Jun 18, 2006
1 parent 039138f commit 5d37751
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1a2449a87bb7606113b1aa1a9d3c3e78ef189a1c
refs/heads/master: 17f3ae08b6e7fd778371f2cafbd1c988a67ee343
6 changes: 3 additions & 3 deletions trunk/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 5d37751

Please sign in to comment.