[PATCH v3 2/6] ANDROID: binder: add min sched_policy to node.

Martijn Coenen maco at android.com
Thu Nov 16 09:27:48 UTC 2017


On Wed, Nov 15, 2017 at 2:02 PM, Peter Zijlstra <peterz at infradead.org> wrote:
>> Internally, we use the priority map that the kernel
>> uses, e.g. [0..99] for real-time policies and [100..139]
>> for the SCHED_NORMAL/SCHED_BATCH policies.
>
> I will break that without consideration if I have to. That really isn't
> something anybody outside of the core code should rely on.

I mostly used these because it makes it easier to debug, since that
range is used in other places in the kernel (and in trace events). All
priority calculations use things that are in sched headers, like
NICE_TO_PRIO, PRIO_TO_NICE, and MAX_USER_RT_PRIO. So things wouldn't
necessarily break if you just changed the value ranges. If you
inverted the range, that would be a problem...


More information about the devel mailing list