Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp100990ybg; Tue, 22 Oct 2019 16:54:33 -0700 (PDT) X-Google-Smtp-Source: APXvYqwpjAGLssJc9BiMwGowZMRj/gWTo7ZekXKwi7pKjCNSM0yba65p9oymU1TitnaEwrgoKLwO X-Received: by 2002:a17:906:e0b:: with SMTP id l11mr9893325eji.245.1571788473422; Tue, 22 Oct 2019 16:54:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571788473; cv=none; d=google.com; s=arc-20160816; b=R8ump/zClBC6zpJmoKeoLbWgaFrW1C3/xPgT39EmI4SVge7pvfRRcMdLFShFvaoRg2 W9KSkTKa0lXmeXpqpFy4b6jhwzuC8u/r7d9yH226HFgt/TgtBcKXKKq52a54OsYde/sC KN9i4dw1DaBip5h/M2fJ3sGA8HKcHbb5mth8G9oWy/YX7QJnuQHu+DRvW/TTQO9+3rYJ c7M7Z/S6SEhxLepviAnWDC9VN6W2RXOuO7H/L5jRVYhjFFPX5TSYDH4xDJB2lNj3CNtk 8+SjW0pb95ps/aaB0Sg93YRda2agCHBoBCQgWfj9JF44eYS2a/bywRL7FI28m3E2j/tk UMLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=+62b01duIzwhl+lWRPPBbONvvknzw7BTtBn7ok/CsvU=; b=bkAz9iVvuCAPP2jEa4iQ7wGepppputDCBuxgbCaohszDeQ/1dBM5AAQLd6g7At9z7C YtQc2sUnEjOklW3jlO9iJwXFKSL0jiS+0jmbHYy3zIjBb1X0Bw0DS6Dp6sy1R30ULAQa tRRlH6HV6925FzWBMZ8vR6dTq3HU6rCA1FRhrMt0fvGTsiH9kiSKqmb8htISCEQtScnP e1Mgci5yNGJvKgcWMStT4qIgffgc6KxX+NwteE4MXy5JI796pdj+tN2qS3j2STxZ0uld IoCo1ZArWtIJa23H+UkPYRIzowqL4FYksPjp0ryA1hgBJPakAJLIPsutrl46oj5qhPFp kWGQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=afhY9KI9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c8si3281506edf.79.2019.10.22.16.54.09; Tue, 22 Oct 2019 16:54:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=afhY9KI9; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389423AbfJVUee (ORCPT + 99 others); Tue, 22 Oct 2019 16:34:34 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:42761 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389407AbfJVUed (ORCPT ); Tue, 22 Oct 2019 16:34:33 -0400 Received: by mail-qk1-f194.google.com with SMTP id m4so689128qke.9 for ; Tue, 22 Oct 2019 13:34:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=+62b01duIzwhl+lWRPPBbONvvknzw7BTtBn7ok/CsvU=; b=afhY9KI98X7oFg8SEiw6QnjzPR5O+aClzT0lPCL6RRLwqRm4KHhE/dJea/JM6sIhDW 87pXYEQdEdxSuoZ5XetxEQuUvpk53W2X31ARCH0Zhjai2qr7guaEL5Q3pxxn1Ac+ysks xc4GjWgjvF3FKJB+E2sRVXN3TY66jGGEOd9Erz2eAX/5uYgA4Ke04oc1ozzSSMdT624f Kx8oriWjnOkyc+fkgSW3J+C9W24kfVgKxiI6ff6CsLfiOCzRVXnSzixSrZcytlvzHvjx J5DYJ7R3NSUAm7hSwIBp6mMK+3p2omGMCwV1Vsa2ZGPMJqznnTznWwMRk+rC6I1gjloF kh9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=+62b01duIzwhl+lWRPPBbONvvknzw7BTtBn7ok/CsvU=; b=qKxMXsz7jQ6gbFtf1Ez9NlrDWQXlNZvIc9tkvUlel5ZhLjzQmDCsdtSgRJYFYQD7RN I3zW537CNLeXlmEP/cEfyXwsgYxihOJOM79gR8TkxW9+aq1nzsUPBALum+Qyh5qlNS07 MKxZGUbJx1t5E9QvCug2PseT2ZWqQgfjM/K6pByh5XvcQbCfuuDFLP6+SNT8oQ+y37k2 p8OAvmM2+tLZpV5AayW411XLtLBNIu41J12MzRBe5KgopJZDVXb1xrFrNlO7uxNDWJ99 4nVqcjHLMeouZzfe/zCQjN9J5hRDZHFlcFORxl+hmPccSFjG9xJToulX1Arf3H0hnLHT KkHA== X-Gm-Message-State: APjAAAXhXFlcIscZ34DwjtRn/uPSySVkMpIDy2e3QaZ5EvYUL0v4m7Zh Nnmlu2DIpxILST44lFQW6kZR+A== X-Received: by 2002:a37:6e85:: with SMTP id j127mr4993065qkc.392.1571776472427; Tue, 22 Oct 2019 13:34:32 -0700 (PDT) Received: from Thara-Work-Ubuntu.fios-router.home (pool-71-255-246-27.washdc.fios.verizon.net. [71.255.246.27]) by smtp.googlemail.com with ESMTPSA id r126sm8895038qke.98.2019.10.22.13.34.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 22 Oct 2019 13:34:31 -0700 (PDT) From: Thara Gopinath To: mingo@redhat.com, peterz@infradead.org, ionela.voinescu@arm.com, vincent.guittot@linaro.org, rui.zhang@intel.com, edubezval@gmail.com, qperret@google.com Cc: linux-kernel@vger.kernel.org, amit.kachhap@gmail.com, javi.merino@kernel.org, daniel.lezcano@linaro.org Subject: [Patch v4 3/6] sched/fair: Enable CFS periodic tick to update thermal pressure Date: Tue, 22 Oct 2019 16:34:22 -0400 Message-Id: <1571776465-29763-4-git-send-email-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1571776465-29763-1-git-send-email-thara.gopinath@linaro.org> References: <1571776465-29763-1-git-send-email-thara.gopinath@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Introduce support in CFS periodic tick to trigger the process of computing average thermal pressure for a cpu. Signed-off-by: Thara Gopinath --- 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 @@ -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); } @@ -9933,6 +9936,8 @@ static void task_tick_fair(struct rq *rq, struct task_struct *curr, int queued) update_misfit_status(curr, rq); update_overutilized_status(task_rq(curr)); + + trigger_thermal_pressure_average(rq); } /* -- 2.1.4