lkml.org 
[lkml]   [2021]   [Jun]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] sched: cgroup SCHED_IDLE support
On Tue, Jun 08, 2021 at 04:11:32PM -0700, Josh Don wrote:
> +static int se_is_idle(struct sched_entity *se)
> +{
> + if (entity_is_task(se))
> + return task_has_idle_policy(task_of(se));
> + return cfs_rq_is_idle(group_cfs_rq(se));
> +}

I'm conflicted on this, on the one hand, since we want 'idle' to be a
sched_entity propery, I'd say, make it a sched_entity field, OTOH,
that's probably going to be a mess too :/

Let me read more..

\
 
 \ /
  Last update: 2021-06-25 10:22    [W:0.416 / U:0.572 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site