Re: [PATCH 01/15] sched/prio: Add a macro named NICE_TO_RLIMIT in prio.h.

2014-03-11 Thread Dongsheng Yang
On 03/11/2014 04:36 PM, Heiko Carstens wrote: On Tue, Mar 11, 2014 at 04:20:24PM +0800, Dongsheng Yang wrote: On 03/11/2014 04:17 PM, Heiko Carstens wrote: On Tue, Mar 11, 2014 at 12:59:16PM +0800, Dongsheng Yang wrote: +#define NICE_TO_RLIMIT(nice) (MAX_NICE - nice + 1) Where is MAX_NICE

Re: [PATCH 01/15] sched/prio: Add a macro named NICE_TO_RLIMIT in prio.h.

2014-03-11 Thread Heiko Carstens
On Tue, Mar 11, 2014 at 04:20:24PM +0800, Dongsheng Yang wrote: > On 03/11/2014 04:17 PM, Heiko Carstens wrote: > >On Tue, Mar 11, 2014 at 12:59:16PM +0800, Dongsheng Yang wrote: > >>+#define NICE_TO_RLIMIT(nice) (MAX_NICE - nice + 1) > >Where is MAX_NICE defined? The s390 patch fails to

Re: [PATCH 01/15] sched/prio: Add a macro named NICE_TO_RLIMIT in prio.h.

2014-03-11 Thread Dongsheng Yang
On 03/11/2014 04:17 PM, Heiko Carstens wrote: On Tue, Mar 11, 2014 at 12:59:16PM +0800, Dongsheng Yang wrote: This patch add a macro named NICE_TO_RLIMIT in prio.h to convert nice value [19,-20] to rlimit style value [1,40]. Signed-off-by: Dongsheng Yang --- include/linux/sched/prio.h | 5

Re: [PATCH 01/15] sched/prio: Add a macro named NICE_TO_RLIMIT in prio.h.

2014-03-11 Thread Heiko Carstens
On Tue, Mar 11, 2014 at 12:59:16PM +0800, Dongsheng Yang wrote: > This patch add a macro named NICE_TO_RLIMIT in prio.h to > convert nice value [19,-20] to rlimit style value [1,40]. > > Signed-off-by: Dongsheng Yang > --- > include/linux/sched/prio.h | 5 + > 1 file changed, 5

Re: [PATCH 01/15] sched/prio: Add a macro named NICE_TO_RLIMIT in prio.h.

2014-03-11 Thread Heiko Carstens
On Tue, Mar 11, 2014 at 12:59:16PM +0800, Dongsheng Yang wrote: This patch add a macro named NICE_TO_RLIMIT in prio.h to convert nice value [19,-20] to rlimit style value [1,40]. Signed-off-by: Dongsheng Yang yangds.f...@cn.fujitsu.com --- include/linux/sched/prio.h | 5 + 1 file

Re: [PATCH 01/15] sched/prio: Add a macro named NICE_TO_RLIMIT in prio.h.

2014-03-11 Thread Dongsheng Yang
On 03/11/2014 04:17 PM, Heiko Carstens wrote: On Tue, Mar 11, 2014 at 12:59:16PM +0800, Dongsheng Yang wrote: This patch add a macro named NICE_TO_RLIMIT in prio.h to convert nice value [19,-20] to rlimit style value [1,40]. Signed-off-by: Dongsheng Yang yangds.f...@cn.fujitsu.com ---

Re: [PATCH 01/15] sched/prio: Add a macro named NICE_TO_RLIMIT in prio.h.

2014-03-11 Thread Heiko Carstens
On Tue, Mar 11, 2014 at 04:20:24PM +0800, Dongsheng Yang wrote: On 03/11/2014 04:17 PM, Heiko Carstens wrote: On Tue, Mar 11, 2014 at 12:59:16PM +0800, Dongsheng Yang wrote: +#define NICE_TO_RLIMIT(nice) (MAX_NICE - nice + 1) Where is MAX_NICE defined? The s390 patch fails to compile.

Re: [PATCH 01/15] sched/prio: Add a macro named NICE_TO_RLIMIT in prio.h.

2014-03-11 Thread Dongsheng Yang
On 03/11/2014 04:36 PM, Heiko Carstens wrote: On Tue, Mar 11, 2014 at 04:20:24PM +0800, Dongsheng Yang wrote: On 03/11/2014 04:17 PM, Heiko Carstens wrote: On Tue, Mar 11, 2014 at 12:59:16PM +0800, Dongsheng Yang wrote: +#define NICE_TO_RLIMIT(nice) (MAX_NICE - nice + 1) Where is MAX_NICE