projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bart/ide-2.6
[powerpc.git]
/
include
/
asm-mips
/
mmu_context.h
diff --git
a/include/asm-mips/mmu_context.h
b/include/asm-mips/mmu_context.h
index
fe065d6
..
0c4f245
100644
(file)
--- a/
include/asm-mips/mmu_context.h
+++ b/
include/asm-mips/mmu_context.h
@@
-20,6
+20,7
@@
#include <asm/mipsmtregs.h>
#include <asm/smtc.h>
#endif /* SMTC */
#include <asm/mipsmtregs.h>
#include <asm/smtc.h>
#endif /* SMTC */
+#include <asm-generic/mm_hooks.h>
/*
* For the fast tlb miss handlers, we keep a per cpu array of pointers
/*
* For the fast tlb miss handlers, we keep a per cpu array of pointers
@@
-106,7
+107,7
@@
get_new_mmu_context(struct mm_struct *mm, unsigned long cpu)
#else /* CONFIG_MIPS_MT_SMTC */
#else /* CONFIG_MIPS_MT_SMTC */
-#define get_new_mmu_context(mm,
cpu) smtc_get_new_mmu_context((mm),
(cpu))
+#define get_new_mmu_context(mm,
cpu) smtc_get_new_mmu_context((mm),
(cpu))
#endif /* CONFIG_MIPS_MT_SMTC */
#endif /* CONFIG_MIPS_MT_SMTC */
@@
-119,7
+120,7
@@
init_new_context(struct task_struct *tsk, struct mm_struct *mm)
{
int i;
{
int i;
- for
(i = 0; i < num_online_cpus(); i++
)
+ for
_each_online_cpu(i
)
cpu_context(i, mm) = 0;
return 0;
cpu_context(i, mm) = 0;
return 0;
@@
-190,7
+191,7
@@
static inline void destroy_context(struct mm_struct *mm)
{
}
{
}
-#define deactivate_mm(tsk,
mm)
do { } while (0)
+#define deactivate_mm(tsk,
mm)
do { } while (0)
/*
* After we have set current->mm to a new value, this activates
/*
* After we have set current->mm to a new value, this activates
@@
-283,7
+284,7
@@
drop_mmu_context(struct mm_struct *mm, unsigned cpu)
int i;
/* SMTC shares the TLB (and ASIDs) across VPEs */
int i;
/* SMTC shares the TLB (and ASIDs) across VPEs */
- for
(i = 0; i < num_online_cpus(); i++
) {
+ for
_each_online_cpu(i
) {
if((smtc_status & SMTC_TLB_SHARED)
|| (cpu_data[i].vpe_id == cpu_data[cpu].vpe_id))
cpu_context(i, mm) = 0;
if((smtc_status & SMTC_TLB_SHARED)
|| (cpu_data[i].vpe_id == cpu_data[cpu].vpe_id))
cpu_context(i, mm) = 0;