From bca8923f622aa26a55b9b9ae834b1094487498c4 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Fri, 19 Oct 2007 13:00:24 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@58 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- src/include/threads.h | 38 -------------------------------------- 1 file changed, 38 deletions(-) (limited to 'src/include/threads.h') diff --git a/src/include/threads.h b/src/include/threads.h index 3e1713d31..f97148087 100644 --- a/src/include/threads.h +++ b/src/include/threads.h @@ -145,44 +145,6 @@ void _InitThread(t_prio prio, t_tmode mode, Thread *tp); /** Thread function.*/ typedef t_msg (*t_tfunc)(void *); -/* - * Inlined functions if CH_OPTIMIZE_SPEED is enabled. - */ -#ifdef CH_OPTIMIZE_SPEED -static INLINE void fifo_insert(Thread *tp, ThreadsQueue *tqp) { - - tp->p_prev = (tp->p_next = (Thread *)tqp)->p_prev; - tp->p_prev->p_next = tqp->p_prev = tp; -} - -static INLINE Thread *fifo_remove(ThreadsQueue *tqp) { - Thread *tp = tqp->p_next; - - (tqp->p_next = tp->p_next)->p_prev = (Thread *)tqp; - return tp; -} - -static INLINE Thread *dequeue(Thread *tp) { - - tp->p_prev->p_next = tp->p_next; - tp->p_next->p_prev = tp->p_prev; - return tp; -} - -static INLINE void list_insert(Thread *tp, ThreadsList *tlp) { - - tp->p_next = tlp->p_next; - tlp->p_next = tp; -} - -static INLINE Thread *list_remove(ThreadsList *tlp) { - - Thread *tp = tlp->p_next; - tlp->p_next = tp->p_next; - return tp; -} -#endif - /* * Threads APIs. */ -- cgit v1.2.3