summaryrefslogtreecommitdiffstats
path: root/arch/sparc/lib/bitext.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2011-02-17 17:51:27 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2011-02-17 17:51:27 -0800
commita0aeccdc694d5db3b4310a6ed1ce4f88974cf7b4 (patch)
tree2a4e8f8a2641eccd96d5d2aa58d9cf5aa6546c4c /arch/sparc/lib/bitext.c
parentfa7ea87a057958a8b7926c1a60a3ca6d696328ed (diff)
parentb62818e5ff78cab4daf04fc0c12f86475dbc4b69 (diff)
downloadlinux-a0aeccdc694d5db3b4310a6ed1ce4f88974cf7b4.tar.bz2
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-2.6: sparc64: Fix NMI startup bug which also breaks perf. sparc: fix size argument to find_next_zero_bit() sparc: use bitmap_set() sparc32: unaligned memory access (MNA) trap handler bug
Diffstat (limited to 'arch/sparc/lib/bitext.c')
-rw-r--r--arch/sparc/lib/bitext.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/sparc/lib/bitext.c b/arch/sparc/lib/bitext.c
index 764b3eb7b604..48d00e72ce15 100644
--- a/arch/sparc/lib/bitext.c
+++ b/arch/sparc/lib/bitext.c
@@ -10,7 +10,7 @@
*/
#include <linux/string.h>
-#include <linux/bitops.h>
+#include <linux/bitmap.h>
#include <asm/bitext.h>
@@ -80,8 +80,7 @@ int bit_map_string_get(struct bit_map *t, int len, int align)
while (test_bit(offset + i, t->map) == 0) {
i++;
if (i == len) {
- for (i = 0; i < len; i++)
- __set_bit(offset + i, t->map);
+ bitmap_set(t->map, offset, len);
if (offset == t->first_free)
t->first_free = find_next_zero_bit
(t->map, t->size,