Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 362670
b: refs/heads/master
c: 54df2db
h: refs/heads/master
v: v3
  • Loading branch information
Akinobu Mita authored and David S. Miller committed Mar 31, 2013
1 parent d0a197d commit f596c6a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 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: 71196a26d85be2aae2e587dfd3c3190a651133c6
refs/heads/master: 54df2db36c93bbb8c757f172d97c577040de6abb
6 changes: 1 addition & 5 deletions trunk/arch/sparc/lib/bitext.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,7 @@ void bit_map_clear(struct bit_map *t, int offset, int len)

void bit_map_init(struct bit_map *t, unsigned long *map, int size)
{

if ((size & 07) != 0)
BUG();
memset(map, 0, size>>3);

bitmap_zero(map, size);
memset(t, 0, sizeof *t);
spin_lock_init(&t->lock);
t->map = map;
Expand Down
4 changes: 3 additions & 1 deletion trunk/arch/sparc/mm/srmmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,9 @@ static void __init srmmu_nocache_init(void)
SRMMU_NOCACHE_ALIGN_MAX, 0UL);
memset(srmmu_nocache_pool, 0, srmmu_nocache_size);

srmmu_nocache_bitmap = __alloc_bootmem(bitmap_bits >> 3, SMP_CACHE_BYTES, 0UL);
srmmu_nocache_bitmap =
__alloc_bootmem(BITS_TO_LONGS(bitmap_bits) * sizeof(long),
SMP_CACHE_BYTES, 0UL);
bit_map_init(&srmmu_nocache_map, srmmu_nocache_bitmap, bitmap_bits);

srmmu_swapper_pg_dir = __srmmu_get_nocache(SRMMU_PGD_TABLE_SIZE, SRMMU_PGD_TABLE_SIZE);
Expand Down

0 comments on commit f596c6a

Please sign in to comment.