patch-2.3.44 linux/arch/i386/kernel/smp.c
Next file: linux/arch/sparc64/kernel/irq.c
Previous file: linux/arch/i386/kernel/setup.c
Back to the patch index
Back to the overall index
- Lines: 40
- Date:
Fri Feb 11 08:19:45 2000
- Orig file:
v2.3.43/linux/arch/i386/kernel/smp.c
- Orig date:
Thu Feb 10 17:11:03 2000
diff -u --recursive --new-file v2.3.43/linux/arch/i386/kernel/smp.c linux/arch/i386/kernel/smp.c
@@ -103,7 +103,7 @@
/* The 'big kernel lock' */
spinlock_t kernel_flag = SPIN_LOCK_UNLOCKED;
-struct tlb_state cpu_tlbstate[NR_CPUS];
+struct tlb_state cpu_tlbstate[NR_CPUS] = {[0 ... NR_CPUS-1] = { &init_mm, 0 }};
/*
* the following functions deal with sending IPIs between CPUs.
@@ -347,12 +347,7 @@
__flush_tlb_one(flush_va);
} else
leave_mm(cpu);
- } else {
- extern void show_stack (void *);
- printk("hm #1: %p, %p.\n", flush_mm, cpu_tlbstate[cpu].active_mm);
- show_stack(NULL);
}
- __flush_tlb();
ack_APIC_irq();
clear_bit(cpu, &flush_cpumask);
}
@@ -382,7 +377,7 @@
* Temporarily this turns IRQs off, so that lockups are
* detected by the NMI watchdog.
*/
- spin_lock_irq(&tlbstate_lock);
+ spin_lock(&tlbstate_lock);
flush_mm = mm;
flush_va = va;
@@ -398,7 +393,7 @@
flush_mm = NULL;
flush_va = 0;
- spin_unlock_irq(&tlbstate_lock);
+ spin_unlock(&tlbstate_lock);
}
void flush_tlb_current_task(void)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)