From 97552c98b630294cf9d5efb523e1e15db8df686f Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 19 Jul 2013 14:15:59 +0200 Subject: posix: Create priority implementation header Move implementation specific parts of priority.h and priority.inl into new header file priorityimpl.h. Remove priority.h since there is no application visible API. --- cpukit/posix/inline/rtems/posix/priority.inl | 39 ---------------------------- 1 file changed, 39 deletions(-) delete mode 100644 cpukit/posix/inline/rtems/posix/priority.inl (limited to 'cpukit/posix/inline') diff --git a/cpukit/posix/inline/rtems/posix/priority.inl b/cpukit/posix/inline/rtems/posix/priority.inl deleted file mode 100644 index cae2242c78..0000000000 --- a/cpukit/posix/inline/rtems/posix/priority.inl +++ /dev/null @@ -1,39 +0,0 @@ -/** - * @file - * - * @brief Inline Methods Related to POSIX Priority Management - * - * This defines the static inline methods related to POSIX priority management. - */ - -/* - * COPYRIGHT (c) 1989-2011. - * On-Line Applications Research Corporation (OAR). - * - * The license and distribution terms for this file may be - * found in the file LICENSE in this distribution or at - * http://www.rtems.com/license/LICENSE. - */ - -#ifndef _RTEMS_POSIX_PRIORITY_H -# error "Never use directly; include instead." -#endif - -#ifndef _RTEMS_POSIX_PRIORITY_INL -#define _RTEMS_POSIX_PRIORITY_INL - -RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core( - int priority -) -{ - return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1); -} - -RTEMS_INLINE_ROUTINE int _POSIX_Priority_From_core( - Priority_Control priority -) -{ - return (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1); -} - -#endif -- cgit v1.2.3