Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp3937528ybp; Sun, 13 Oct 2019 18:01:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqw5rG6b9b8P4O50wH0I7icFn2Y5nZSpNp9cGsJNk6kSn4/hzI2o95SqIFgw1KtSn8fu3fuv X-Received: by 2002:a17:906:fcce:: with SMTP id qx14mr26618906ejb.186.1571014861435; Sun, 13 Oct 2019 18:01:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571014861; cv=none; d=google.com; s=arc-20160816; b=UePQNNDvvQLfE00VUK4wQfmBxlYBrQrqzXxw8CUBkpIuzNGpWHaWm8PWLIN6ONMv6X 5MZvmLgdizIKIW5UIH2tBWKApyzPzw4I0EKITQhDtVR4PZ6C2lVbj1LBnaumMjFY3df2 VSHuaCvi9YGeFLgy6U7BtSlBrm5I+wGIZGuB7V5kTe2cZFVmxpbzXdFINOJN/qbxSB2T wnHuN6QB4DvHDWGxq46D+PLFlRA7EoYOFeKPtWGrk6TIpH1oYjHQ08l+QKXFFra1jHdd AbdDD8+HDgMyBfgWoGlngAe5RvO/0VT69VHpQdEQ7diiEj5gRZ6TmBSonNIQqVWTWaWm G/VQ== 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 b25si10286130eja.198.2019.10.13.18.00.38; Sun, 13 Oct 2019 18:01:01 -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 S1729740AbfJNA6d (ORCPT + 99 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(+) 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; } -- 2.1.4