From d49c810ec9c6010bf41e0ef7ebad101a79373438 Mon Sep 17 00:00:00 2001 From: Steve Bavin Date: Thu, 5 Oct 2006 10:07:03 +0000 Subject: 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 --- apps/tagcache.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'apps/tagcache.c') 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) filenametag_fd = open_tag_fd(&header, tag_filename, false); - cpu_boost(true); + cpu_boost_id(true, CPUBOOSTID_TAGCACHE); /* Scan for new files. */ memset(&header, 0, sizeof(struct tagcache_header)); @@ -3485,7 +3485,7 @@ static void build_tagcache(void) if (!ret) { logf("Aborted."); - cpu_boost(false); + cpu_boost_id(false, CPUBOOSTID_TAGCACHE); return ; } @@ -3505,7 +3505,7 @@ static void build_tagcache(void) } #endif - cpu_boost(false); + cpu_boost_id(false, CPUBOOSTID_TAGCACHE); } #ifdef HAVE_TC_RAMCACHE @@ -3514,7 +3514,7 @@ static void load_ramcache(void) if (!hdr) return ; - cpu_boost(true); + cpu_boost_id(true, CPUBOOSTID_TAGCACHE); /* At first we should load the cache (if exists). */ stat.ramcache = load_tagcache(); @@ -3527,7 +3527,7 @@ static void load_ramcache(void) hdr = NULL; } - cpu_boost(false); + cpu_boost_id(false, CPUBOOSTID_TAGCACHE); } void tagcache_unload_ramcache(void) @@ -3572,7 +3572,7 @@ static void tagcache_thread(void) /* If the previous cache build/update was interrupted, commit * the changes first in foreground. */ - cpu_boost(true); + cpu_boost_id(true, CPUBOOSTID_TAGCACHE); allocate_tempbuf(); commit(); free_tempbuf(); @@ -3590,7 +3590,7 @@ static void tagcache_thread(void) allocate_tagcache(); #endif - cpu_boost(false); + cpu_boost_id(false, CPUBOOSTID_TAGCACHE); stat.initialized = true; /* Don't delay bootup with the header check but do it on background. */ -- cgit v1.2.3