patch-2.2.18 linux/include/asm-arm/arch-ebsa110/time.h

Next file: linux/include/asm-arm/arch-ebsa285/hardware.h
Previous file: linux/include/asm-arm/arch-ebsa110/system.h
Back to the patch index
Back to the overall index

diff -u --new-file --recursive --exclude-from /usr/src/exclude v2.2.17/include/asm-arm/arch-ebsa110/time.h linux/include/asm-arm/arch-ebsa110/time.h
@@ -23,13 +23,13 @@
 #define PIT1_COUNT 0xecbe
 #elif defined(MCLK_47_8)
 /*
- * This should be 0x10AE1, but that doesn't exactly fit.
+ * This should be 0x10B43, but that doesn't exactly fit.
  * We run the timer interrupt at 5ms, and then divide it by
  * two in software...  This is so that the user processes
  * see exactly the same model whichever ARM processor they're
  * running on.
  */
-#define PIT1_COUNT 0x8570
+#define PIT1_COUNT 0x85A1
 #define DIVISOR 2
 #endif
  
@@ -65,6 +65,9 @@
 			do_timer(regs);
 		}
 	}
+
+	if (!user_mode(regs))
+		do_profile(instruction_pointer(regs));
 }
 
 static struct irqaction timerirq = {

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