summaryrefslogtreecommitdiff
path: root/apps/codec_thread.c
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2014-08-30 11:28:50 -0400
committerMichael Sevakis <jethead71@rockbox.org>2014-08-30 14:01:21 -0400
commit5b08f1a5b99136ef052b6f430b62bc618cd44946 (patch)
tree257d405d78e871e6b944db987ffaf5c40f862fce /apps/codec_thread.c
parent5d31d3c3bc0358eeed08e2a5242dc2b065110aad (diff)
downloadrockbox-5b08f1a5b99136ef052b6f430b62bc618cd44946.tar.gz
rockbox-5b08f1a5b99136ef052b6f430b62bc618cd44946.zip
Remove I/O priority. It is harmful when used with the new file code.
HAVE_IO_PRIORITY was defined for native targets with dircache. It is already effectively disabled for the most part since dircache no longer lowers its thread's I/O priority. It existed primarily for the aforementioned configuration. Change-Id: Ia04935305397ba14df34647c8ea29c2acaea92aa
Diffstat (limited to 'apps/codec_thread.c')
-rw-r--r--apps/codec_thread.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/apps/codec_thread.c b/apps/codec_thread.c
index f2039d10e6..a1fa96d021 100644
--- a/apps/codec_thread.c
+++ b/apps/codec_thread.c
@@ -470,15 +470,7 @@ static void load_codec(const struct codec_load_info *ev_data)
470 /* Either not a valid handle or the buffer method failed */ 470 /* Either not a valid handle or the buffer method failed */
471 const char *codec_fn = get_codec_filename(data.afmt); 471 const char *codec_fn = get_codec_filename(data.afmt);
472 if (codec_fn) 472 if (codec_fn)
473 {
474#ifdef HAVE_IO_PRIORITY
475 buf_back_off_storage(true);
476#endif
477 status = codec_load_file(codec_fn, &ci); 473 status = codec_load_file(codec_fn, &ci);
478#ifdef HAVE_IO_PRIORITY
479 buf_back_off_storage(false);
480#endif
481 }
482 } 474 }
483 475
484 /* Types must agree */ 476 /* Types must agree */