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/tagcache.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/tagcache.c')
-rw-r--r-- | apps/tagcache.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/apps/tagcache.c b/apps/tagcache.c index 70934b4f36..1c180b7f43 100644 --- a/apps/tagcache.c +++ b/apps/tagcache.c | |||
@@ -3459,7 +3459,7 @@ static void build_tagcache(void) | |||
3459 | 3459 | ||
3460 | filenametag_fd = open_tag_fd(&header, tag_filename, false); | 3460 | filenametag_fd = open_tag_fd(&header, tag_filename, false); |
3461 | 3461 | ||
3462 | cpu_boost(true); | 3462 | cpu_boost_id(true, CPUBOOSTID_TAGCACHE); |
3463 | 3463 | ||
3464 | /* Scan for new files. */ | 3464 | /* Scan for new files. */ |
3465 | memset(&header, 0, sizeof(struct tagcache_header)); | 3465 | memset(&header, 0, sizeof(struct tagcache_header)); |
@@ -3485,7 +3485,7 @@ static void build_tagcache(void) | |||
3485 | if (!ret) | 3485 | if (!ret) |
3486 | { | 3486 | { |
3487 | logf("Aborted."); | 3487 | logf("Aborted."); |
3488 | cpu_boost(false); | 3488 | cpu_boost_id(false, CPUBOOSTID_TAGCACHE); |
3489 | return ; | 3489 | return ; |
3490 | } | 3490 | } |
3491 | 3491 | ||
@@ -3505,7 +3505,7 @@ static void build_tagcache(void) | |||
3505 | } | 3505 | } |
3506 | #endif | 3506 | #endif |
3507 | 3507 | ||
3508 | cpu_boost(false); | 3508 | cpu_boost_id(false, CPUBOOSTID_TAGCACHE); |
3509 | } | 3509 | } |
3510 | 3510 | ||
3511 | #ifdef HAVE_TC_RAMCACHE | 3511 | #ifdef HAVE_TC_RAMCACHE |
@@ -3514,7 +3514,7 @@ static void load_ramcache(void) | |||
3514 | if (!hdr) | 3514 | if (!hdr) |
3515 | return ; | 3515 | return ; |
3516 | 3516 | ||
3517 | cpu_boost(true); | 3517 | cpu_boost_id(true, CPUBOOSTID_TAGCACHE); |
3518 | 3518 | ||
3519 | /* At first we should load the cache (if exists). */ | 3519 | /* At first we should load the cache (if exists). */ |
3520 | stat.ramcache = load_tagcache(); | 3520 | stat.ramcache = load_tagcache(); |
@@ -3527,7 +3527,7 @@ static void load_ramcache(void) | |||
3527 | hdr = NULL; | 3527 | hdr = NULL; |
3528 | } | 3528 | } |
3529 | 3529 | ||
3530 | cpu_boost(false); | 3530 | cpu_boost_id(false, CPUBOOSTID_TAGCACHE); |
3531 | } | 3531 | } |
3532 | 3532 | ||
3533 | void tagcache_unload_ramcache(void) | 3533 | void tagcache_unload_ramcache(void) |
@@ -3572,7 +3572,7 @@ static void tagcache_thread(void) | |||
3572 | 3572 | ||
3573 | /* If the previous cache build/update was interrupted, commit | 3573 | /* If the previous cache build/update was interrupted, commit |
3574 | * the changes first in foreground. */ | 3574 | * the changes first in foreground. */ |
3575 | cpu_boost(true); | 3575 | cpu_boost_id(true, CPUBOOSTID_TAGCACHE); |
3576 | allocate_tempbuf(); | 3576 | allocate_tempbuf(); |
3577 | commit(); | 3577 | commit(); |
3578 | free_tempbuf(); | 3578 | free_tempbuf(); |
@@ -3590,7 +3590,7 @@ static void tagcache_thread(void) | |||
3590 | allocate_tagcache(); | 3590 | allocate_tagcache(); |
3591 | #endif | 3591 | #endif |
3592 | 3592 | ||
3593 | cpu_boost(false); | 3593 | cpu_boost_id(false, CPUBOOSTID_TAGCACHE); |
3594 | stat.initialized = true; | 3594 | stat.initialized = true; |
3595 | 3595 | ||
3596 | /* Don't delay bootup with the header check but do it on background. */ | 3596 | /* Don't delay bootup with the header check but do it on background. */ |