[profile]: [8/23] arm26 profiling cleanups

From: William Lee Irwin III
Date: Tue Jun 22 2004 - 11:19:29 EST


Convert arm26 to use profiling_on() and profile_tick().

Index: prof-2.6.7/arch/arm26/kernel/time.c
===================================================================
--- prof-2.6.7.orig/arch/arm26/kernel/time.c 2004-06-15 22:19:42.000000000 -0700
+++ prof-2.6.7/arch/arm26/kernel/time.c 2004-06-22 07:25:49.764597800 -0700
@@ -72,21 +72,8 @@
*/
static inline void do_profile(struct pt_regs *regs)
{
- if (!user_mode(regs) &&
- prof_buffer &&
- current->pid) {
- unsigned long pc = instruction_pointer(regs);
- extern int _stext;
-
- pc -= (unsigned long)&_stext;
-
- pc >>= prof_shift;
-
- if (pc >= prof_len)
- pc = prof_len - 1;
-
- prof_buffer[pc] += 1;
- }
+ if (!user_mode(regs) && profiling_on() && current->pid)
+ profile_tick(instruction_pointer(regs));
}

static unsigned long next_rtc_update;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/