Re: [PATCH 00/17 for-tip V3] A series patches about sched priority.

2014-03-19 Thread Dongsheng Yang
On 03/19/2014 04:36 PM, Peter Zijlstra wrote: I picked up all except: 2 - whcih I don't think should go through a scheduler tree Peter, as you did not pick the patch 2, there will be a conflict when you apply [3/17]. I sent a v2 for [3/17], which does not depend to [2/17]. Please replace [3

Re: [PATCH 00/17 for-tip V3] A series patches about sched priority.

2014-03-19 Thread Dongsheng Yang
Hi Peter, On 03/19/2014 04:36 PM, Peter Zijlstra wrote: I picked up all except: 2 - whcih I don't think should go through a scheduler tree I will send it to sys maintainers. 6 - its tools/ bits, the changelog wasn't clear if the MIN/MAX_NICE macros were uapi visible and I couldn't b

Re: [PATCH 00/17 for-tip V3] A series patches about sched priority.

2014-03-19 Thread Peter Zijlstra
I picked up all except: 2 - whcih I don't think should go through a scheduler tree 6 - its tools/ bits, the changelog wasn't clear if the MIN/MAX_NICE macros were uapi visible and I couldn't be bothered to figure it out. 8 - I don't like the pointless macro -- To unsubscribe from this l

Re: [PATCH 00/17 for-tip V3] A series patches about sched priority.

2014-03-12 Thread Dongsheng Yang
Hi Peter, Let me post more explanation about this patchset. This series of patches here is to git rid of hardcoding of nice value and collect the logic control in prio.h. Currently, in tip tree, we can get 36 results with the below command: # git grep -n -w -E "19|20"|grep -P "_nice" -i drivers/

[PATCH 00/17 for-tip V3] A series patches about sched priority.

2014-03-11 Thread Dongsheng Yang
Hi all, This patchset is all about priority. 1. Add two inline functions in prio.h named nice_to_rlimit and rlimit_to_nice. They are converting the value between nice value [-20, 19] and rlimit style value [1, 40]. 2. Add a macro in ioprio.h named NICE_TO_IOPRIO. It convert nice