diff options
-rw-r--r-- | drivers/dma/dmaengine.c | 6 |
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); |