From b0e3eac139ee0ef56ff3916e063c6150644a6cf7 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Tue, 29 Aug 2006 18:35:18 +0000 Subject: Fix bug in profiling that makes the timing for coldfire off by a factor of 2, and way off for pp. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10796 a1c6a512-1295-4272-9138-f99709370657 --- firmware/profile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'firmware/profile.c') diff --git a/firmware/profile.c b/firmware/profile.c index f6cffa7c53..71fe343879 100644 --- a/firmware/profile.c +++ b/firmware/profile.c @@ -106,7 +106,7 @@ void profile_thread_started(int current_thread) { if (profiling < PROF_ERROR) { /* After we de-mask, if profiling is active, reactivate the timer */ timer_register(0, profile_timer_unregister, - CPU_FREQ/10000, 0, profile_timer_tick); + TIMER_FREQ/10000, 0, profile_timer_tick); } } } @@ -135,7 +135,7 @@ void profstart(int current_thread) { pfds[0].self_pc = 0; memset(&indices,0,INDEX_SIZE * sizeof(unsigned short)); timer_register( - 0, profile_timer_unregister, CPU_FREQ/10000, 0, profile_timer_tick); + 0, profile_timer_unregister, TIMER_FREQ/10000, 0, profile_timer_tick); profiling = PROF_ON; } -- cgit v1.2.3