summaryrefslogtreecommitdiff
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
parent17e379bf497bb625d1269b52ca2e9df05632b50b (diff)
downloadrockbox-b0e3eac139ee0ef56ff3916e063c6150644a6cf7.tar.gz
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
-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) {
106 if (profiling < PROF_ERROR) { 106 if (profiling < PROF_ERROR) {
107 /* After we de-mask, if profiling is active, reactivate the timer */ 107 /* After we de-mask, if profiling is active, reactivate the timer */
108 timer_register(0, profile_timer_unregister, 108 timer_register(0, profile_timer_unregister,
109 CPU_FREQ/10000, 0, profile_timer_tick); 109 TIMER_FREQ/10000, 0, profile_timer_tick);
110 } 110 }
111 } 111 }
112} 112}
@@ -135,7 +135,7 @@ void profstart(int current_thread) {
135 pfds[0].self_pc = 0; 135 pfds[0].self_pc = 0;
136 memset(&indices,0,INDEX_SIZE * sizeof(unsigned short)); 136 memset(&indices,0,INDEX_SIZE * sizeof(unsigned short));
137 timer_register( 137 timer_register(
138 0, profile_timer_unregister, CPU_FREQ/10000, 0, profile_timer_tick); 138 0, profile_timer_unregister, TIMER_FREQ/10000, 0, profile_timer_tick);
139 profiling = PROF_ON; 139 profiling = PROF_ON;
140} 140}
141 141