patch-2.1.92 linux/arch/alpha/kernel/time.c

Next file: linux/arch/alpha/kernel/tsunami.c
Previous file: linux/arch/alpha/kernel/t2.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.91/linux/arch/alpha/kernel/time.c linux/arch/alpha/kernel/time.c
@@ -82,6 +82,16 @@
 	__u32 now;
 	long nticks;
 
+#ifdef __SMP__
+	extern void smp_percpu_timer_interrupt(struct pt_regs *);
+	extern unsigned int boot_cpu_id;
+	/* when SMP, do this for *all* CPUs, 
+	   but only do the rest for the boot CPU */
+	smp_percpu_timer_interrupt(regs);
+	if (smp_processor_id() != boot_cpu_id)
+	  return;
+#endif
+
 	/*
 	 * Estimate how many ticks have passed since the last update.
 	 * Round the result, .5 to even.  When we loose ticks due to

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