summaryrefslogtreecommitdiffstats
path: root/firmware/profile.c
diff options
context:
space:
mode:
authorJens Arnold <amiconn@rockbox.org>2006-08-29 18:35:18 +0000
committerJens Arnold <amiconn@rockbox.org>2006-08-29 18:35:18 +0000
commitb0e3eac139ee0ef56ff3916e063c6150644a6cf7 (patch)
tree9e9a7cce6b88e20bef6c5033e6aba4bf05b23f20 /firmware/profile.c
parent17e379bf497bb625d1269b52ca2e9df05632b50b (diff)
downloadrockbox-b0e3eac139ee0ef56ff3916e063c6150644a6cf7.tar.gz
rockbox-b0e3eac139ee0ef56ff3916e063c6150644a6cf7.tar.bz2
rockbox-b0e3eac139ee0ef56ff3916e063c6150644a6cf7.zip
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
Diffstat (limited to 'firmware/profile.c')
-rw-r--r--firmware/profile.c4
1 files changed, 2 insertions, 2 deletions
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;
}