[rtems commit] PR1908: QoS library for CBS scheduler
Gedare Bloom
gedare at rtems.org
Thu Apr 19 05:29:38 UTC 2012
On Mon, Apr 16, 2012 at 2:33 AM, Ralf Corsepius
<ralf.corsepius at rtems.org> wrote:
> Has there been any prior discussion and review of this patch?
>
> At least I am not aware of any such discussion nor review.
>
> * This commit is incomplete:
> cpukit/libqos/preinstall.am is missing
>
> * IMO, the file cpukit/libqos/qreslib.inl doesn't make any sense.
> It is unconditionally included by qreslib.h
>
> * qreslib.h and qreslib.inl are installed into $(includedir).
> We once had agreed upon that all RTEMS specific headers are supposed to be
> installed into $(includedir)/rtems.
>
> I would suggest the installation location to be changed.
>
> * qreslib.inl lacks header guards.
> It is not safe against multiple inclusion.
>
> * qreslib.inl is installed into $(includedir).
> We have a convention to install *.inl's into inline subdirectories.
>
> * I don't like the fact a libqos/ subdirectory is being introduced.
> IMO, these file should go into rtems/include and rtems/inline.
>
qreslib implements a fairly thin compatibility layer for part of a
Linux API of AQuoSA, so I don't think the rtems/ subdirectory is the
right place (not an RTEMS API). How does a libcompat subdirectory of
cpukit sound? I propose we add a libcompat which can include a
subdirectory itself for arbitrary API compatibility layers. For this
work it would be cpukit/libcompat/qres/ and probably just have the
qreslib.h file.
-Gedare
> Ralf
>
>
> On 04/16/2012 05:09 AM, gedare at rtems.org wrote:
>>
>> Module: rtems
>> Branch: master
>> Commit: 1c2b94a61c3054fbcebb24b3bb49c7649be020b0
>> Changeset:
>> http://git.rtems.org/rtems/commit/?id=1c2b94a61c3054fbcebb24b3bb49c7649be020b0
>>
>> Author: Petr Benes<petben at petben.net>
>> Date: Sun Apr 15 23:12:08 2012 -0400
>>
>> PR1908: QoS library for CBS scheduler
>>
>> Add the lipqos and sptest.
>>
>> ---
>>
>> cpukit/libqos/Makefile.am | 12 ++
>> cpukit/libqos/qreslib.h | 81 +++++++++
>> cpukit/libqos/qreslib.inl | 214
>> ++++++++++++++++++++++++
>> testsuites/sptests/spqreslib/Makefile.am | 28 +++
>> testsuites/sptests/spqreslib/init.c | 227
>> ++++++++++++++++++++++++++
>> testsuites/sptests/spqreslib/spqreslib.doc | 22 +++
>> testsuites/sptests/spqreslib/spqreslib.scn | 30 ++++
>> testsuites/sptests/spqreslib/system.h | 62 +++++++
>> testsuites/sptests/spqreslib/task_periodic.c | 138 ++++++++++++++++
>> 9 files changed, 814 insertions(+), 0 deletions(-)
>>
>> diff --git a/cpukit/libqos/Makefile.am b/cpukit/libqos/Makefile.am
>> new file mode 100644
>> index 0000000..3223dcd
>> --- /dev/null
>> +++ b/cpukit/libqos/Makefile.am
>> @@ -0,0 +1,12 @@
>> +##
>> +## $Id$
>> +##
>> +
>> +include $(top_srcdir)/automake/multilib.am
>> +include $(top_srcdir)/automake/compile.am
>> +
>> +include_HEADERS = qreslib.h
>> +include_HEADERS += qreslib.inl
>> +
>> +include $(srcdir)/preinstall.am
>> +include $(top_srcdir)/automake/local.am
More information about the devel
mailing list