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/playlist.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/playlist.c')
-rw-r--r-- | apps/playlist.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/playlist.c b/apps/playlist.c index 6648d4462e..9d844e3b84 100644 --- a/apps/playlist.c +++ b/apps/playlist.c | |||
@@ -2812,14 +2812,14 @@ int playlist_insert_directory(struct playlist_info* playlist, | |||
2812 | context.queue = queue; | 2812 | context.queue = queue; |
2813 | context.count = 0; | 2813 | context.count = 0; |
2814 | 2814 | ||
2815 | cpu_boost(true); | 2815 | cpu_boost_id(true, CPUBOOSTID_PLAYLIST); |
2816 | 2816 | ||
2817 | result = playlist_directory_tracksearch(dirname, recurse, | 2817 | result = playlist_directory_tracksearch(dirname, recurse, |
2818 | directory_search_callback, &context); | 2818 | directory_search_callback, &context); |
2819 | 2819 | ||
2820 | sync_control(playlist, false); | 2820 | sync_control(playlist, false); |
2821 | 2821 | ||
2822 | cpu_boost(false); | 2822 | cpu_boost_id(false, CPUBOOSTID_PLAYLIST); |
2823 | 2823 | ||
2824 | display_playlist_count(context.count, count_str); | 2824 | display_playlist_count(context.count, count_str); |
2825 | 2825 | ||
@@ -2881,7 +2881,7 @@ int playlist_insert_playlist(struct playlist_info* playlist, char *filename, | |||
2881 | 2881 | ||
2882 | display_playlist_count(count, count_str); | 2882 | display_playlist_count(count, count_str); |
2883 | 2883 | ||
2884 | cpu_boost(true); | 2884 | cpu_boost_id(true, CPUBOOSTID_PLAYLIST); |
2885 | 2885 | ||
2886 | while ((max = read_line(fd, temp_buf, sizeof(temp_buf))) > 0) | 2886 | while ((max = read_line(fd, temp_buf, sizeof(temp_buf))) > 0) |
2887 | { | 2887 | { |
@@ -2940,7 +2940,7 @@ int playlist_insert_playlist(struct playlist_info* playlist, char *filename, | |||
2940 | 2940 | ||
2941 | sync_control(playlist, false); | 2941 | sync_control(playlist, false); |
2942 | 2942 | ||
2943 | cpu_boost(false); | 2943 | cpu_boost_id(false, CPUBOOSTID_PLAYLIST); |
2944 | 2944 | ||
2945 | display_playlist_count(count, count_str); | 2945 | display_playlist_count(count, count_str); |
2946 | 2946 | ||
@@ -3287,7 +3287,7 @@ int playlist_save(struct playlist_info* playlist, char *filename) | |||
3287 | 3287 | ||
3288 | display_playlist_count(count, str(LANG_PLAYLIST_SAVE_COUNT)); | 3288 | display_playlist_count(count, str(LANG_PLAYLIST_SAVE_COUNT)); |
3289 | 3289 | ||
3290 | cpu_boost(true); | 3290 | cpu_boost_id(true, CPUBOOSTID_PLAYLIST); |
3291 | 3291 | ||
3292 | index = playlist->first_index; | 3292 | index = playlist->first_index; |
3293 | for (i=0; i<playlist->amount; i++) | 3293 | for (i=0; i<playlist->amount; i++) |
@@ -3380,7 +3380,7 @@ int playlist_save(struct playlist_info* playlist, char *filename) | |||
3380 | 3380 | ||
3381 | } | 3381 | } |
3382 | 3382 | ||
3383 | cpu_boost(false); | 3383 | cpu_boost_id(false, CPUBOOSTID_PLAYLIST); |
3384 | 3384 | ||
3385 | return result; | 3385 | return result; |
3386 | } | 3386 | } |