diff options
author | Richard Braun <rbraun@sceen.net> | 2013-03-08 22:15:11 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2013-03-08 22:15:11 +0100 |
commit | 719a1aa44afbc61af9f81af83bd34b71e09fec0f (patch) | |
tree | b766eba5e9c103556760ee72f51a2a2c9850aeca /kern/bitmap.c | |
parent | 4822f9bf6e62c7a9f089d1b876c471d9d962b03d (diff) |
kern/bitmap: remove volatile keywords
Using this qualifier for such a generic data structure is inefficient.
It was a left over from the initial implementation that was meant for
concurrent accesses.
Diffstat (limited to 'kern/bitmap.c')
-rw-r--r-- | kern/bitmap.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kern/bitmap.c b/kern/bitmap.c index f1388b1d..7406c7ef 100644 --- a/kern/bitmap.c +++ b/kern/bitmap.c @@ -19,11 +19,9 @@ #include <kern/limits.h> int -bitmap_find_next_bit(volatile unsigned long *bm, int nr_bits, int bit, - int complement) +bitmap_find_next_bit(unsigned long *bm, int nr_bits, int bit, int complement) { - volatile unsigned long *start, *end; - unsigned long word; + unsigned long word, *start, *end; start = bm; end = bm + BITMAP_LONGS(nr_bits); |