summaryrefslogtreecommitdiffstats
path: root/apps/buffering.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/buffering.c')
-rw-r--r--apps/buffering.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/buffering.c b/apps/buffering.c
index e642142b58..e7dda9835f 100644
--- a/apps/buffering.c
+++ b/apps/buffering.c
@@ -1338,8 +1338,10 @@ void buffering_thread(void)
while (true)
{
- cancel_cpu_boost();
- queue_wait_w_tmo(&buffering_queue, &ev, filling?5:HZ/2);
+ if (!filling)
+ cancel_cpu_boost();
+
+ queue_wait_w_tmo(&buffering_queue, &ev, filling ? 5 : HZ/2);
switch (ev.id)
{