diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2014-08-30 11:28:50 -0400 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2014-08-30 14:01:21 -0400 |
commit | 5b08f1a5b99136ef052b6f430b62bc618cd44946 (patch) | |
tree | 257d405d78e871e6b944db987ffaf5c40f862fce /apps/buffering.c | |
parent | 5d31d3c3bc0358eeed08e2a5242dc2b065110aad (diff) | |
download | rockbox-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/buffering.c')
-rw-r--r-- | apps/buffering.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/apps/buffering.c b/apps/buffering.c index 1826fa1b91..96ec92201f 100644 --- a/apps/buffering.c +++ b/apps/buffering.c | |||
@@ -1572,15 +1572,6 @@ size_t buf_get_watermark(void) | |||
1572 | return BUF_WATERMARK; | 1572 | return BUF_WATERMARK; |
1573 | } | 1573 | } |
1574 | 1574 | ||
1575 | #ifdef HAVE_IO_PRIORITY | ||
1576 | void buf_back_off_storage(bool back_off) | ||
1577 | { | ||
1578 | int priority = back_off ? | ||
1579 | IO_PRIORITY_BACKGROUND : IO_PRIORITY_IMMEDIATE; | ||
1580 | thread_set_io_priority(buffering_thread_id, priority); | ||
1581 | } | ||
1582 | #endif | ||
1583 | |||
1584 | /** -- buffer thread helpers -- **/ | 1575 | /** -- buffer thread helpers -- **/ |
1585 | static void shrink_buffer_inner(struct memory_handle *h) | 1576 | static void shrink_buffer_inner(struct memory_handle *h) |
1586 | { | 1577 | { |