From patchwork Mon Oct 14 00:58:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thara Gopinath X-Patchwork-Id: 176104 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp3886614ill; Sun, 13 Oct 2019 17:58:34 -0700 (PDT) X-Google-Smtp-Source: APXvYqwxxrVtP/g9YYRzc/EQ04ZcyyXN7YdCQZKmFhislzcsFtrdsx0rOZKBikLzRxz1C6lotXOt X-Received: by 2002:a50:bac2:: with SMTP id x60mr25724645ede.96.1571014714407; Sun, 13 Oct 2019 17:58:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571014714; cv=none; d=google.com; s=arc-20160816; b=wyzE8FH+hqXK/WTA4HcEOOzieesOo0UqOFdzM9W7FkIp2FApjNu2CIJ0mSw60X94to qI+CL+qAxV+fUELtYmxy/qTq+eBYU7KTBTT+ULCZF8YB85MVcxz+UMcPfb0Z8gbfiWO5 +7AUoZUfDgNkpiwXv9qG5l7lak7aijeJqvzXDg8wnunOI1jwNhtN1YCcRRNwLNlzEj6b gAMd/M0E85T5UAVkhYv18aWL8EfGGKlj0jkYhHQ4j+2c1bVit/5VNnBsFY/pueoSBrts ohWj6vfN21Dzv7tEQM/R2ZNtfPFxci+KDe86d77sFM28mf3uwtmzCP/KDIK5gWaErnGo SVvg== 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=v7XQBgeFPFA2xqVRlaqSBquWqwtCCnMp9HH9en37v0E=; b=J6FDD18nEuuT327EybW0nLtMZAjCHkBVorFtGMM7UdD1US0S3P/dVbfharCSsjvpVq cq1RwXFKlIodlUAhbrnCjpRxmex0xu8OKVipH+DVTxnsTvtENRb2BIshdr3FDbABtKhb 5xxstA0q/xE+QZKuY83f9meSFaAK2hygnmLsXKVfUBed5Ic5GYKmWZZQ0CQ2tAp9O+oD E6tV+cTCHT+t0KsBtj5tSkLcrdAdausrDJSIAsyrPjCRXZEXFe0Sr1mS96/NAKqsrEC9 m1oSxOKsxL5zWmDV6GMr5LVD4skvmZ1hEutpsT1NPB4mdjw8BxM1Py1vpbafjyb4tNJa X4Zw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=QlmjQZ7H; 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 b56si11746068edb.418.2019.10.13.17.58.34; Sun, 13 Oct 2019 17:58:34 -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=QlmjQZ7H; 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 S1729746AbfJNA6d (ORCPT + 10 others); Sun, 13 Oct 2019 20:58:33 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:41867 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729180AbfJNA6c (ORCPT ); Sun, 13 Oct 2019 20:58:32 -0400 Received: by mail-qt1-f196.google.com with SMTP id v52so23099312qtb.8 for ; Sun, 13 Oct 2019 17:58:31 -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=v7XQBgeFPFA2xqVRlaqSBquWqwtCCnMp9HH9en37v0E=; b=QlmjQZ7HKxGaLUk/fj8Q3XI/TMgE8Zspiynbr6H7molbqqHaYYCH21ecEeCaCxfygE iQv3D8Ihn2Sq+RlbtVsVSfCBAr+2o3sphD1etCCJifKLgXOczG1SaIp5+70IpI5FMOuT L3IPZvzh2J+qBbBTFLno5LYJ+leaaDJrUyNo8z06ztncQQRE1ps0d9kNAtAtYMvQS6zk hYaodwXye+WFFbR93obrGVMLMahq42tdXNK+TNtku3wDREgEkNVKZTPqrukiqsKn0YBa 0fNwvUocRA292ROuxoGwP68cR0694Nwn6XFwjiVB5fPg8GKCXz86McnHYNH1SMiUqj/H UBNg== 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=v7XQBgeFPFA2xqVRlaqSBquWqwtCCnMp9HH9en37v0E=; b=nS00n9YXcyf8nWzKfUd5VnihKQcRoTCJInOHsbbPKY5tPcISVuSSOHStSFzlLFR8nx ecfjwJU60rXfYvAhAuZc5UpSPv5VOzc3uG34yQSXTuCO2UNa9F36Ieq06vN2pqyYcYzK JpY/i0x1LKu3wvQ5jniDx2oGG+jlvCVpYzEvQLfiA22DZf0IfF1J0KCePXkUgjR1Qeld 2HzD/CVnQjWFaxc+NDCtYSDNJtgfgBowd/Irt/pLfNz9PLVgRfCD4+OcIRuZiA5QS/Cx Xte8/o+/O+0OoFpWo6phuVC8Cc3EjSQyED5aYh+pFYGjyedgruywX0ZV1XAMVQwPQP4u T05A== X-Gm-Message-State: APjAAAVmiurjEZlsc1e/9n59CDXM06EJWRyK7KPN6M93w4D1E2O9ah6O mOK/zhaWnwOzzxQ25S+fn9mF8g== X-Received: by 2002:ac8:7447:: with SMTP id h7mr30179050qtr.11.1571014711319; Sun, 13 Oct 2019 17:58:31 -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 c185sm7663901qkf.122.2019.10.13.17.58.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 13 Oct 2019 17:58:30 -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 Cc: linux-kernel@vger.kernel.org, amit.kachhap@gmail.com, javi.merino@kernel.org, daniel.lezcano@linaro.org Subject: [Patch v3 3/7] sched: Initialize per cpu thermal pressure structure Date: Sun, 13 Oct 2019 20:58:21 -0400 Message-Id: <1571014705-19646-4-git-send-email-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1571014705-19646-1-git-send-email-thara.gopinath@linaro.org> References: <1571014705-19646-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 Initialize per cpu max_capacity_info during scheduler init. Signed-off-by: Thara Gopinath --- drivers/base/arch_topology.c | 1 + kernel/sched/core.c | 2 ++ 2 files changed, 3 insertions(+) -- 2.1.4 diff --git a/drivers/base/arch_topology.c b/drivers/base/arch_topology.c index 1eb81f11..7ac9f2f 100644 --- a/drivers/base/arch_topology.c +++ b/drivers/base/arch_topology.c @@ -123,6 +123,7 @@ void topology_normalize_cpu_scale(void) pr_debug("cpu_capacity: CPU%d cpu_capacity=%lu\n", cpu, topology_get_cpu_scale(cpu)); } + populate_max_capacity_info(); } bool __init topology_parse_cpu_capacity(struct device_node *cpu_node, int cpu) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 7880f4f..744f026 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -6534,6 +6534,8 @@ void __init sched_init_smp(void) init_sched_rt_class(); init_sched_dl_class(); + populate_max_capacity_info(); + sched_smp_initialized = true; }