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 /firmware/kernel/thread.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 'firmware/kernel/thread.c')
-rw-r--r-- | firmware/kernel/thread.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/firmware/kernel/thread.c b/firmware/kernel/thread.c index 05c09dc594..ea76421389 100644 --- a/firmware/kernel/thread.c +++ b/firmware/kernel/thread.c | |||
@@ -367,10 +367,6 @@ static void new_thread_base_init(struct thread_entry *thread, | |||
367 | #ifdef HAVE_SCHEDULER_BOOSTCTRL | 367 | #ifdef HAVE_SCHEDULER_BOOSTCTRL |
368 | thread->cpu_boost = 0; | 368 | thread->cpu_boost = 0; |
369 | #endif | 369 | #endif |
370 | #ifdef HAVE_IO_PRIORITY | ||
371 | /* Default to high (foreground) priority */ | ||
372 | thread->io_priority = IO_PRIORITY_IMMEDIATE; | ||
373 | #endif | ||
374 | } | 370 | } |
375 | 371 | ||
376 | /*--------------------------------------------------------------------------- | 372 | /*--------------------------------------------------------------------------- |
@@ -1421,20 +1417,6 @@ int thread_get_priority(unsigned int thread_id) | |||
1421 | } | 1417 | } |
1422 | #endif /* HAVE_PRIORITY_SCHEDULING */ | 1418 | #endif /* HAVE_PRIORITY_SCHEDULING */ |
1423 | 1419 | ||
1424 | #ifdef HAVE_IO_PRIORITY | ||
1425 | int thread_get_io_priority(unsigned int thread_id) | ||
1426 | { | ||
1427 | struct thread_entry *thread = __thread_id_entry(thread_id); | ||
1428 | return thread->io_priority; | ||
1429 | } | ||
1430 | |||
1431 | void thread_set_io_priority(unsigned int thread_id,int io_priority) | ||
1432 | { | ||
1433 | struct thread_entry *thread = __thread_id_entry(thread_id); | ||
1434 | thread->io_priority = io_priority; | ||
1435 | } | ||
1436 | #endif | ||
1437 | |||
1438 | /*--------------------------------------------------------------------------- | 1420 | /*--------------------------------------------------------------------------- |
1439 | * Starts a frozen thread - similar semantics to wakeup_thread except that | 1421 | * Starts a frozen thread - similar semantics to wakeup_thread except that |
1440 | * the thread is on no scheduler or wakeup queue at all. It exists simply by | 1422 | * the thread is on no scheduler or wakeup queue at all. It exists simply by |