projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59858b7
)
arm: davinci: use for_each_set_bit_from
author
Akinobu Mita
<
[email protected]
>
Wed, 11 Apr 2012 11:36:53 +0000
(20:36 +0900)
committer
Sekhar Nori
<
[email protected]
>
Wed, 9 May 2012 11:52:07 +0000
(17:22 +0530)
Use for_each_set_bit_from to iterate over all the set bit in a memory
region.
Signed-off-by: Akinobu Mita <
[email protected]
>
Acked-by: Sekhar Nori <
[email protected]
>
Cc: Sekhar Nori <
[email protected]
>
Cc: Christian Riesch <
[email protected]
>
Cc: Kevin Hilman <
[email protected]
>
Cc:
[email protected]
Cc: Russell King <
[email protected]
>
Cc:
[email protected]
Signed-off-by: Sekhar Nori <
[email protected]
>
arch/arm/mach-davinci/dma.c
patch
|
blob
|
history
diff --git
a/arch/arm/mach-davinci/dma.c
b/arch/arm/mach-davinci/dma.c
index fd33919c95d4ef4a1ae9c7ad3437f52526713730..95ce019c9b98686b5fb14f69fc93665daf964f49 100644
(file)
--- a/
arch/arm/mach-davinci/dma.c
+++ b/
arch/arm/mach-davinci/dma.c
@@
-557,9
+557,9
@@
static int reserve_contiguous_slots(int ctlr, unsigned int id,
if (i == edma_cc[ctlr]->num_slots)
stop_slot = i;
- for (j = start_slot; j < stop_slot; j++)
-
if (test_bit(j, tmp_inuse)
)
-
clear_bit(j, edma_cc[ctlr]->edma_inuse);
+ j = start_slot;
+
for_each_set_bit_from(j, tmp_inuse, stop_slot
)
+ clear_bit(j, edma_cc[ctlr]->edma_inuse);
if (count)
return -EBUSY;