summaryrefslogtreecommitdiff
path: root/apps/tagcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/tagcache.c')
-rw-r--r--apps/tagcache.c14
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
3533void tagcache_unload_ramcache(void) 3533void 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. */