Re: Patches for classic affinity implementation and test

2014-02-21 Thread Sebastian Huber
On 2014-02-21 16:16, Joel Sherrill wrote: On Feb 21, 2014 9:04 AM, Sebastian Huber wrote: > > On 2014-02-21 15:27, Gedare Bloom wrote: > > On Fri, Feb 21, 2014 at 3:00 AM, Sebastian Huber > > wrote: > >> >On 2014-02-20 21:07, Jennifer Averett wrote: > >>> >> > >>> >>+#if __RTEMS_HAVE_S

Re: Patches for classic affinity implementation and test

2014-02-21 Thread Joel Sherrill
On Feb 21, 2014 9:04 AM, Sebastian Huber wrote: > > On 2014-02-21 15:27, Gedare Bloom wrote: > > On Fri, Feb 21, 2014 at 3:00 AM, Sebastian Huber > > wrote: > >> >On 2014-02-20 21:07, Jennifer Averett wrote: > >>> >> > >>> >>+#if __RTEMS_HAVE_SYS_CPUSET_H__ && defined( RTEMS_SMP ) > >>> >>+con

Re: Patches for classic affinity implementation and test

2014-02-21 Thread Sebastian Huber
On 2014-02-21 15:27, Gedare Bloom wrote: On Fri, Feb 21, 2014 at 3:00 AM, Sebastian Huber wrote: >On 2014-02-20 21:07, Jennifer Averett wrote: >> >>+#if __RTEMS_HAVE_SYS_CPUSET_H__ && defined( RTEMS_SMP ) >>+const Cpuset_Control *_Cpuset_Handler_default(void); >>+#else >>+#define _Cpuset_Hand

Re: Patches for classic affinity implementation and test

2014-02-21 Thread Joel Sherrill
On Feb 21, 2014 8:25 AM, Gedare Bloom wrote: > > On Fri, Feb 21, 2014 at 3:00 AM, Sebastian Huber > wrote: > > On 2014-02-20 21:07, Jennifer Averett wrote: > >> > >> +#if __RTEMS_HAVE_SYS_CPUSET_H__ && defined( RTEMS_SMP ) > >> +const Cpuset_Control *_Cpuset_Handler_default(void); > >> +#else >

Re: Patches for classic affinity implementation and test

2014-02-21 Thread Gedare Bloom
Last message had no body. Oops. On Fri, Feb 21, 2014 at 9:23 AM, Gedare Bloom wrote: > On Fri, Feb 21, 2014 at 2:53 AM, Sebastian Huber > wrote: >> On 2014-02-21 02:55, Gedare Bloom wrote: > > >>I would prefer to see symmetry between our choice to use cpu_set_t as > >>the opaque type

Re: Patches for classic affinity implementation and test

2014-02-21 Thread Gedare Bloom
On Fri, Feb 21, 2014 at 3:00 AM, Sebastian Huber wrote: > On 2014-02-20 21:07, Jennifer Averett wrote: >> >> +#if __RTEMS_HAVE_SYS_CPUSET_H__ && defined( RTEMS_SMP ) >> +const Cpuset_Control *_Cpuset_Handler_default(void); >> +#else >> +#define _Cpuset_Handler_default() do { } while ( 0 ) >> +#e

Re: Patches for classic affinity implementation and test

2014-02-21 Thread Gedare Bloom
On Fri, Feb 21, 2014 at 8:16 AM, Joel Sherrill wrote: > Let me make one thing clear so we can quit discussing it. the "have sys > cpuset" macro was a nice thing from us to avoid forcing everyone to update > their tools immediately. > > There is no assumption that cpuset is not present long term an

Re: Patches for classic affinity implementation and test

2014-02-21 Thread Gedare Bloom
On Fri, Feb 21, 2014 at 2:53 AM, Sebastian Huber wrote: > On 2014-02-21 02:55, Gedare Bloom wrote: >>I would prefer to see symmetry between our choice to use cpu_set_t as >>the opaque type for the cpu bit sets. Thus I recommend using the score >>name _Cpu_set for the handler. (

RE: Patches for classic affinity implementation and test

2014-02-21 Thread Jennifer Averett
> -Original Message- > From: Joel Sherrill [mailto:joel.sherr...@oarcorp.com] > Sent: Thursday, February 20, 2014 4:23 PM > To: Gedare Bloom; Jennifer Averett > Cc: rtems-devel@rtems.org > Subject: Re: Patches for classic affinity implementation and test > >

Re: Patches for classic affinity implementation and test

2014-02-21 Thread Joel Sherrill
Let me make one thing clear so we can quit discussing it. the "have sys cpuset" macro was a nice thing from us to avoid forcing everyone to update their tools immediately. There is no assumption that cpuset is not present long term and we will NOT provide an alternative internal implementation.

Re: Patches for classic affinity implementation and test

2014-02-21 Thread Joel Sherrill
On Feb 21, 2014 1:58 AM, Sebastian Huber wrote: > > On 2014-02-20 21:07, Jennifer Averett wrote: > > +#if __RTEMS_HAVE_SYS_CPUSET_H__ && defined( RTEMS_SMP ) > > +const Cpuset_Control *_Cpuset_Handler_default(void); > > +#else > > +#define _Cpuset_Handler_default() do { } while ( 0 ) > > +#end

Re: Patches for classic affinity implementation and test

2014-02-21 Thread Sebastian Huber
On 2014-02-20 21:07, Jennifer Averett wrote: +#if __RTEMS_HAVE_SYS_CPUSET_H__ && defined( RTEMS_SMP ) +const Cpuset_Control *_Cpuset_Handler_default(void); +#else +#define _Cpuset_Handler_default() do { } while ( 0 ) +#endif In case the C library doesn't provide an appropriate then we shoul

Re: Patches for classic affinity implementation and test

2014-02-20 Thread Sebastian Huber
On 2014-02-21 02:55, Gedare Bloom wrote: >>I would prefer to see symmetry between our choice to use cpu_set_t as >>the opaque type for the cpu bit sets. Thus I recommend using the score >>name _Cpu_set for the handler. (It is unfortunate that we can't use >>_CPU_set because that would clash with

Re: Patches for classic affinity implementation and test

2014-02-20 Thread Gedare Bloom
On Thu, Feb 20, 2014 at 5:22 PM, Joel Sherrill wrote: > > On 2/20/2014 3:11 PM, Gedare Bloom wrote: >> I mostly focused on the 0002-score... file. The others seemed ok at a >> glance... with respect to the 0002 patch I have the following: >> >> Copyright should only be applied to code from the tim

Re: Patches for classic affinity implementation and test

2014-02-20 Thread Gedare Bloom
On Thu, Feb 20, 2014 at 5:54 PM, Joel Sherrill wrote: > > On 2/20/2014 4:45 PM, Peter Dufault wrote: >> On Feb 20, 2014, at 16:11 , Gedare Bloom wrote: >> >>> +#if __RTEMS_HAVE_SYS_CPUSET_H__ >>> I think we decided to prefer the more explicit "#if defined(...)" for >>> checking for CPP defines. >

Re: Patches for classic affinity implementation and test

2014-02-20 Thread Joel Sherrill
On 2/20/2014 4:45 PM, Peter Dufault wrote: > On Feb 20, 2014, at 16:11 , Gedare Bloom wrote: > >> +#if __RTEMS_HAVE_SYS_CPUSET_H__ >> I think we decided to prefer the more explicit "#if defined(...)" for >> checking for CPP defines. >> Also, what is this define checking against / where is it defi

Re: Patches for classic affinity implementation and test

2014-02-20 Thread Peter Dufault
On Feb 20, 2014, at 16:11 , Gedare Bloom wrote: > +#if __RTEMS_HAVE_SYS_CPUSET_H__ > I think we decided to prefer the more explicit "#if defined(...)" for > checking for CPP defines. > Also, what is this define checking against / where is it defined? I think "#if defined()" isn't more explicit

Re: Patches for classic affinity implementation and test

2014-02-20 Thread Joel Sherrill
On 2/20/2014 3:11 PM, Gedare Bloom wrote: > I mostly focused on the 0002-score... file. The others seemed ok at a > glance... with respect to the 0002 patch I have the following: > > Copyright should only be applied to code from the time it is written. > We should avoid copy-paste and extending co

Re: Patches for classic affinity implementation and test

2014-02-20 Thread Gedare Bloom
I mostly focused on the 0002-score... file. The others seemed ok at a glance... with respect to the 0002 patch I have the following: Copyright should only be applied to code from the time it is written. We should avoid copy-paste and extending copyright into the past. fix the license address as r

Patches for classic affinity implementation and test

2014-02-20 Thread Jennifer Averett
Attached is a set of patches for review that implement classic affinity. Jennifer Averett On-Line Applications ResearchFrom e950c2191bc05f9d60afda99f6529360ae03670b Mon Sep 17 00:00:00 2001 From: Jennifer Averett Date: Thu, 6 Feb 2014 12:42:24 -0600 Subject: [PATCH 02/19] score: Add cpuset suppo