lkml.org 
[lkml]   [2019]   [Oct]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [Patch v4 3/6] sched/fair: Enable CFS periodic tick to update thermal pressure
On Mon, Oct 28, 2019 at 04:24:21PM +0100, Peter Zijlstra wrote:
> On Tue, Oct 22, 2019 at 04:34:22PM -0400, Thara Gopinath wrote:
> > Introduce support in CFS periodic tick to trigger the process of
> > computing average thermal pressure for a cpu.
> >
> > Signed-off-by: Thara Gopinath <thara.gopinath@linaro.org>
> > ---
> > kernel/sched/fair.c | 5 +++++
> > 1 file changed, 5 insertions(+)
> >
> > diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
> > index 682a754..4f9c2cb 100644
> > --- a/kernel/sched/fair.c
> > +++ b/kernel/sched/fair.c
> > @@ -21,6 +21,7 @@
> > * Copyright (C) 2007 Red Hat, Inc., Peter Zijlstra
> > */
> > #include "sched.h"
> > +#include "thermal.h"
> >
> > #include <trace/events/sched.h>
> >
> > @@ -7574,6 +7575,8 @@ static void update_blocked_averages(int cpu)
> > done = false;
> >
> > update_blocked_load_status(rq, !done);
> > +
> > + trigger_thermal_pressure_average(rq);
> > rq_unlock_irqrestore(rq, &rf);
> > }
>
> This changes only 1 of the 2 implementations of
> update_blocked_averages(). Also, how does this interact with
> rq->has_blocked_load ?

Specifically, I'm thikning this wants a line in others_have_blocked():

+ if (READ_ONCE(rq->avg_thermal.load_avg))
+ return true;

\
 
 \ /
  Last update: 2019-10-28 16:29    [W:0.160 / U:0.136 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site