patch-2.1.111 linux/arch/i386/kernel/smp.c

Next file: linux/drivers/block/Config.in
Previous file: linux/arch/i386/kernel/process.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.110/linux/arch/i386/kernel/smp.c linux/arch/i386/kernel/smp.c
@@ -1199,18 +1199,6 @@
  * enabled in a civilised fashion. That will also boost performance.
  */
 
-unsigned int TIME64 (void)
-{
-        unsigned int dummy,low;
-
-        __asm__("rdtsc"
-                :"=a" (low),
-                 "=d" (dummy));
-        return low;
-}
-
-int ipi_timestamp;
-
 void smp_message_pass(int target, int msg, unsigned long data, int wait)
 {
 	unsigned long cfg;
@@ -1424,7 +1412,7 @@
 
 	__save_flags(flags);
 	__cli();
-	smp_message_pass(MSG_ALL_BUT_SELF, MSG_RESCHEDULE, 0L, 2);
+	smp_message_pass(cpu, MSG_RESCHEDULE, 0L, 2);
 	__restore_flags(flags);
 }
 
@@ -1520,15 +1508,14 @@
 	 * want to be able to accept NMI tlb invalidates
 	 * during this time.
 	 */
-	spin_lock(&irq_controller_lock);
-	ack_APIC_irq ();
-	spin_unlock(&irq_controller_lock);
-
+	ack_APIC_irq();
 	smp_local_timer_interrupt(regs);
 }
 
 /*
- * Reschedule call back
+ * Reschedule call back. Nothing to do,
+ * all the work is done automatically when
+ * we return from the interrupt.
  */
 asmlinkage void smp_reschedule_interrupt(void)
 {

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov