patch-2.3.48 linux/arch/ia64/kernel/time.c

Next file: linux/arch/ia64/kernel/traps.c
Previous file: linux/arch/ia64/kernel/process.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/arch/ia64/kernel/time.c linux/arch/ia64/kernel/time.c
@@ -21,6 +21,10 @@
 #include <asm/ptrace.h>
 #include <asm/sal.h>
 #include <asm/system.h>
+#ifdef CONFIG_KDB
+# include <linux/kdb.h>
+#endif
+
 
 extern rwlock_t xtime_lock;
 extern volatile unsigned long lost_ticks;
@@ -61,7 +65,7 @@
  * update to jiffy.  The xtime_lock must be at least read-locked when
  * calling this routine.
  */
-static inline unsigned long
+static /*inline*/ unsigned long
 gettimeoffset (void)
 {
 	unsigned long now = ia64_get_itc();
@@ -185,6 +189,20 @@
 	}
 	write_unlock(&xtime_lock);
 }
+
+#ifdef CONFIG_ITANIUM_ASTEP_SPECIFIC
+
+void 
+ia64_reset_itm (void)
+{
+	unsigned long flags;
+
+	local_irq_save(flags);
+	timer_interrupt(0, 0, current);
+	local_irq_restore(flags);
+}
+
+#endif /* CONFIG_ITANIUM_ASTEP_SPECIFIC */
 
 /*
  * Encapsulate access to the itm structure for SMP.

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)