mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
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
This commit is contained in:
parent
5d31d3c3bc
commit
5b08f1a5b9
9 changed files with 0 additions and 121 deletions
|
@ -1572,15 +1572,6 @@ size_t buf_get_watermark(void)
|
|||
return BUF_WATERMARK;
|
||||
}
|
||||
|
||||
#ifdef HAVE_IO_PRIORITY
|
||||
void buf_back_off_storage(bool back_off)
|
||||
{
|
||||
int priority = back_off ?
|
||||
IO_PRIORITY_BACKGROUND : IO_PRIORITY_IMMEDIATE;
|
||||
thread_set_io_priority(buffering_thread_id, priority);
|
||||
}
|
||||
#endif
|
||||
|
||||
/** -- buffer thread helpers -- **/
|
||||
static void shrink_buffer_inner(struct memory_handle *h)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue