Re: [PATCH v2] sched/uclamp: Allow to reset a task uclamp constraint value

2020-11-17 Thread Peter Zijlstra
On Sun, Nov 15, 2020 at 01:05:21PM +0800, Yun Hsiang wrote: > Hi Dietmar, > On Fri, Nov 13, 2020 at 12:34:54PM +0100, Dietmar Eggemann wrote: > > In case the user wants to stop controlling a uclamp constraint value > > for a task, use the magic value -1 in sched_util_{min,max} with the > >

Re: [PATCH v2] sched/uclamp: Allow to reset a task uclamp constraint value

2020-11-14 Thread Yun Hsiang
Hi Dietmar, On Fri, Nov 13, 2020 at 12:34:54PM +0100, Dietmar Eggemann wrote: > In case the user wants to stop controlling a uclamp constraint value > for a task, use the magic value -1 in sched_util_{min,max} with the > appropriate sched_flags (SCHED_FLAG_UTIL_CLAMP_{MIN,MAX}) to indicate > the

[PATCH v2] sched/uclamp: Allow to reset a task uclamp constraint value

2020-11-13 Thread Dietmar Eggemann
In case the user wants to stop controlling a uclamp constraint value for a task, use the magic value -1 in sched_util_{min,max} with the appropriate sched_flags (SCHED_FLAG_UTIL_CLAMP_{MIN,MAX}) to indicate the reset. The advantage over the 'additional flag' approach (i.e. introducing