git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git]
/
arch
/
frv
/
mm
/
mmu-context.c
diff --git
a/arch/frv/mm/mmu-context.c
b/arch/frv/mm/mmu-context.c
index
f2c6866
..
27c54a1
100644
(file)
--- a/
arch/frv/mm/mmu-context.c
+++ b/
arch/frv/mm/mmu-context.c
@@
-11,6
+11,7
@@
#include <linux/sched.h>
#include <linux/mm.h>
#include <linux/sched.h>
#include <linux/mm.h>
+#include <linux/vs_cvirt.h>
#include <asm/tlbflush.h>
#define NR_CXN 4096
#include <asm/tlbflush.h>
#define NR_CXN 4096
@@
-54,9
+55,9
@@
static unsigned get_cxn(mm_context_t *ctx)
/* find the first unallocated context number
* - 0 is reserved for the kernel
*/
/* find the first unallocated context number
* - 0 is reserved for the kernel
*/
- cxn = find_next_zero_bit(
&
cxn_bitmap, NR_CXN, 1);
+ cxn = find_next_zero_bit(cxn_bitmap, NR_CXN, 1);
if (cxn < NR_CXN) {
if (cxn < NR_CXN) {
- set_bit(cxn,
&
cxn_bitmap);
+ set_bit(cxn, cxn_bitmap);
}
else {
/* none remaining - need to steal someone else's cxn */
}
else {
/* none remaining - need to steal someone else's cxn */
@@
-138,7
+139,7
@@
void destroy_context(struct mm_struct *mm)
cxn_pinned = -1;
list_del_init(&ctx->id_link);
cxn_pinned = -1;
list_del_init(&ctx->id_link);
- clear_bit(ctx->id,
&
cxn_bitmap);
+ clear_bit(ctx->id, cxn_bitmap);
__flush_tlb_mm(ctx->id);
ctx->id = 0;
}
__flush_tlb_mm(ctx->id);
ctx->id = 0;
}