|
@@ -43,9 +43,6 @@ void __check_kvm_seq(struct mm_struct *mm);
|
|
|
#define ASID_FIRST_VERSION (1 << ASID_BITS)
|
|
|
|
|
|
extern unsigned int cpu_last_asid;
|
|
|
-#ifdef CONFIG_SMP
|
|
|
-DECLARE_PER_CPU(struct mm_struct *, current_mm);
|
|
|
-#endif
|
|
|
|
|
|
void __init_new_context(struct task_struct *tsk, struct mm_struct *mm);
|
|
|
void __new_context(struct mm_struct *mm);
|
|
@@ -160,10 +157,6 @@ switch_mm(struct mm_struct *prev, struct mm_struct *next,
|
|
|
__flush_icache_all();
|
|
|
#endif
|
|
|
if (!cpumask_test_and_set_cpu(cpu, mm_cpumask(next)) || prev != next) {
|
|
|
-#ifdef CONFIG_SMP
|
|
|
- struct mm_struct **crt_mm = &per_cpu(current_mm, cpu);
|
|
|
- *crt_mm = next;
|
|
|
-#endif
|
|
|
check_and_switch_context(next, tsk);
|
|
|
if (cache_is_vivt())
|
|
|
cpumask_clear_cpu(cpu, mm_cpumask(prev));
|