diff options
Diffstat (limited to 'arch/frv/mm/mmu-context.c')
-rw-r--r-- | arch/frv/mm/mmu-context.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/frv/mm/mmu-context.c b/arch/frv/mm/mmu-context.c index f2c6866fc88b..1530a4111e6d 100644 --- a/arch/frv/mm/mmu-context.c +++ b/arch/frv/mm/mmu-context.c | |||
@@ -54,9 +54,9 @@ static unsigned get_cxn(mm_context_t *ctx) | |||
54 | /* find the first unallocated context number | 54 | /* find the first unallocated context number |
55 | * - 0 is reserved for the kernel | 55 | * - 0 is reserved for the kernel |
56 | */ | 56 | */ |
57 | cxn = find_next_zero_bit(&cxn_bitmap, NR_CXN, 1); | 57 | cxn = find_next_zero_bit(cxn_bitmap, NR_CXN, 1); |
58 | if (cxn < NR_CXN) { | 58 | if (cxn < NR_CXN) { |
59 | set_bit(cxn, &cxn_bitmap); | 59 | set_bit(cxn, cxn_bitmap); |
60 | } | 60 | } |
61 | else { | 61 | else { |
62 | /* none remaining - need to steal someone else's cxn */ | 62 | /* none remaining - need to steal someone else's cxn */ |
@@ -138,7 +138,7 @@ void destroy_context(struct mm_struct *mm) | |||
138 | cxn_pinned = -1; | 138 | cxn_pinned = -1; |
139 | 139 | ||
140 | list_del_init(&ctx->id_link); | 140 | list_del_init(&ctx->id_link); |
141 | clear_bit(ctx->id, &cxn_bitmap); | 141 | clear_bit(ctx->id, cxn_bitmap); |
142 | __flush_tlb_mm(ctx->id); | 142 | __flush_tlb_mm(ctx->id); |
143 | ctx->id = 0; | 143 | ctx->id = 0; |
144 | } | 144 | } |