summaryrefslogtreecommitdiff
path: root/firmware/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'firmware/kernel')
-rw-r--r--firmware/kernel/include/thread.h5
-rw-r--r--firmware/kernel/thread-internal.h3
-rw-r--r--firmware/kernel/thread.c18
3 files changed, 0 insertions, 26 deletions
diff --git a/firmware/kernel/include/thread.h b/firmware/kernel/include/thread.h
index dfb632785e..a4f338ed0c 100644
--- a/firmware/kernel/include/thread.h
+++ b/firmware/kernel/include/thread.h
@@ -169,11 +169,6 @@ int thread_set_priority(unsigned int thread_id, int priority);
169int thread_get_priority(unsigned int thread_id); 169int thread_get_priority(unsigned int thread_id);
170#endif /* HAVE_PRIORITY_SCHEDULING */ 170#endif /* HAVE_PRIORITY_SCHEDULING */
171 171
172#ifdef HAVE_IO_PRIORITY
173void thread_set_io_priority(unsigned int thread_id, int io_priority);
174int thread_get_io_priority(unsigned int thread_id);
175#endif /* HAVE_IO_PRIORITY */
176
177#if NUM_CORES > 1 172#if NUM_CORES > 1
178unsigned int switch_core(unsigned int new_core); 173unsigned int switch_core(unsigned int new_core);
179#endif 174#endif
diff --git a/firmware/kernel/thread-internal.h b/firmware/kernel/thread-internal.h
index 10606a54a6..868e57c65c 100644
--- a/firmware/kernel/thread-internal.h
+++ b/firmware/kernel/thread-internal.h
@@ -134,9 +134,6 @@ struct thread_entry
134#ifdef HAVE_SCHEDULER_BOOSTCTRL 134#ifdef HAVE_SCHEDULER_BOOSTCTRL
135 unsigned char cpu_boost; /* CPU frequency boost flag */ 135 unsigned char cpu_boost; /* CPU frequency boost flag */
136#endif 136#endif
137#ifdef HAVE_IO_PRIORITY
138 unsigned char io_priority;
139#endif
140}; 137};
141 138
142/* Thread ID, 32 bits = |VVVVVVVV|VVVVVVVV|VVVVVVVV|SSSSSSSS| */ 139/* Thread ID, 32 bits = |VVVVVVVV|VVVVVVVV|VVVVVVVV|SSSSSSSS| */
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
1425int 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
1431void 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