diff options
author | Steve Bavin <pondlife@pondlife.me> | 2006-10-05 10:07:03 +0000 |
---|---|---|
committer | Steve Bavin <pondlife@pondlife.me> | 2006-10-05 10:07:03 +0000 |
commit | d49c810ec9c6010bf41e0ef7ebad101a79373438 (patch) | |
tree | 26755e1026276ed7f88071a7739497f93dd3ef6a /apps/playback.c | |
parent | 3eb9e70b6467becb2aa88cc8d24a82a7c288f1fd (diff) | |
download | rockbox-d49c810ec9c6010bf41e0ef7ebad101a79373438.tar.gz rockbox-d49c810ec9c6010bf41e0ef7ebad101a79373438.zip |
Add CPU boost tracker to see where boosts are coming from
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11125 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/playback.c')
-rw-r--r-- | apps/playback.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/playback.c b/apps/playback.c index 76f0788583..cb4900e1ae 100644 --- a/apps/playback.c +++ b/apps/playback.c | |||
@@ -822,7 +822,7 @@ static void voice_boost_cpu(bool state) | |||
822 | if (state != voice_cpu_boosted) | 822 | if (state != voice_cpu_boosted) |
823 | { | 823 | { |
824 | voice_cpu_boosted = state; | 824 | voice_cpu_boosted = state; |
825 | cpu_boost(state); | 825 | cpu_boost_id(state, CPUBOOSTID_PLAYBACK_VOICE); |
826 | } | 826 | } |
827 | } | 827 | } |
828 | #endif | 828 | #endif |
@@ -1676,7 +1676,7 @@ static bool codec_load_next_track(void) | |||
1676 | automatic_skip = true; | 1676 | automatic_skip = true; |
1677 | } | 1677 | } |
1678 | 1678 | ||
1679 | cpu_boost(true); | 1679 | cpu_boost_id(true, CPUBOOSTID_PLAYBACK_CODEC); |
1680 | LOGFQUEUE("codec > audio Q_AUDIO_CHECK_NEW_TRACK"); | 1680 | LOGFQUEUE("codec > audio Q_AUDIO_CHECK_NEW_TRACK"); |
1681 | queue_post(&audio_queue, Q_AUDIO_CHECK_NEW_TRACK, 0); | 1681 | queue_post(&audio_queue, Q_AUDIO_CHECK_NEW_TRACK, 0); |
1682 | while (1) | 1682 | while (1) |
@@ -1690,7 +1690,7 @@ static bool codec_load_next_track(void) | |||
1690 | else | 1690 | else |
1691 | break; | 1691 | break; |
1692 | } | 1692 | } |
1693 | cpu_boost(false); | 1693 | cpu_boost_id(false, CPUBOOSTID_PLAYBACK_CODEC); |
1694 | switch (ev.id) | 1694 | switch (ev.id) |
1695 | { | 1695 | { |
1696 | case Q_CODEC_REQUEST_COMPLETE: | 1696 | case Q_CODEC_REQUEST_COMPLETE: |
@@ -2177,7 +2177,7 @@ static void audio_read_file(bool quick) | |||
2177 | return ; | 2177 | return ; |
2178 | } | 2178 | } |
2179 | 2179 | ||
2180 | cpu_boost(true); | 2180 | cpu_boost_id(true, CPUBOOSTID_PLAYBACK_AUDIO); |
2181 | while (tracks[track_widx].filerem > 0) | 2181 | while (tracks[track_widx].filerem > 0) |
2182 | { | 2182 | { |
2183 | int overlap; | 2183 | int overlap; |
@@ -2245,7 +2245,7 @@ static void audio_read_file(bool quick) | |||
2245 | logf("Partially buf:%dB", | 2245 | logf("Partially buf:%dB", |
2246 | tracks[track_widx].filesize - tracks[track_widx].filerem); | 2246 | tracks[track_widx].filesize - tracks[track_widx].filerem); |
2247 | } | 2247 | } |
2248 | cpu_boost(false); | 2248 | cpu_boost_id(false, CPUBOOSTID_PLAYBACK_AUDIO); |
2249 | } | 2249 | } |
2250 | 2250 | ||
2251 | static bool audio_loadcodec(bool start_play) | 2251 | static bool audio_loadcodec(bool start_play) |