Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp5085671imm; Tue, 9 Oct 2018 09:28:01 -0700 (PDT) X-Google-Smtp-Source: ACcGV61DlxRCH65t1E2hZUiJeIS0N+kkjSF4W7GMB069O1v3CxoJVFEtwVsxUNXp9MJIj0M1PgIr X-Received: by 2002:a17:902:be11:: with SMTP id r17-v6mr9763628pls.112.1539102481843; Tue, 09 Oct 2018 09:28:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539102481; cv=none; d=google.com; s=arc-20160816; b=QixrsADLMYD9OsIAKvbFeGNy0/MwJ5iVTWLh3OWkWR1+sN1c+81pXqcFFrNpqtDhuZ BfNNMfCGhtZtSCKrFIylIGx1/kvmiNzogZIDk1sIVYlEdj4krVFHryXkaCZ70OVCzXZD LZV55SRW6F3m0Mx75ZTxajM48B7t4thqEyzoGvxLFm6N8YnnnBuJ4/StmrAXrpVnyHe0 C1XLiNRjrsf92PNR3M7ZryyJhxa6bPv9MaWDuI9kZdOdECbOXpJhhtpcLqkqk82z1GKx Jm5O70gIbvPKKFKxD+t0lCWcAC6DIZ5AN0bb0AuWAVkdNuCgBhRQ3TKy9joRSmhkwTVT qp5Q== 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=rGWgMI1+Sov2UL2W3G/z4V3AYRc3F2jCrmMhsGLsaSc=; b=yHtMxYtHAJCo/VSDqmlXXTm8BiTK+K4Tm1KmicvEfi1cvTyBes1+LWlMrv0w69x5Fv b2C+EgjO7n+ns6N6XazgHufFGEAuKpCV4dLgumEVsYrMndPbXdwp9eQB5u4XRE1mZQJu +/aPc+IDMmImfVNEW1UpNW++qQove55SVjiOrYurJZ5p/Mgw5tPppfhDmaQkJLwvvZPb S+u/IxQrZY5fzyH/YDMVdqcJGyFAPQSI5/ZjggvUp39kVuiY00xdIHu1tLwqidZpFEgz 5ziqoVrMaXRGHC6VzUuh5lE8EXgrfFW66Ppl9xZ4vgadMzGh7w8cdQUT+C915YB2Jt8R pUzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=kFjTPb7G; 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 a16-v6si20582628pfi.34.2018.10.09.09.27.47; Tue, 09 Oct 2018 09:28: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=kFjTPb7G; 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 S1726740AbeJIXnW (ORCPT + 99 others); Tue, 9 Oct 2018 19:43:22 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:39405 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726910AbeJIXm4 (ORCPT ); Tue, 9 Oct 2018 19:42:56 -0400 Received: by mail-qk1-f194.google.com with SMTP id q5-v6so1313043qki.6 for ; Tue, 09 Oct 2018 09:25:13 -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=rGWgMI1+Sov2UL2W3G/z4V3AYRc3F2jCrmMhsGLsaSc=; b=kFjTPb7GvlvcqqUl63mme8PN5mlZcwqjW+ATtvnaJEl0XoFJMZ8Ay1WAVuHps+VgBx svfB27nf95qf95qR0svOwo2QaQGuIHYeV61E9ryxHuKhYiNtk9JwfuH+E/lPn6jUjiY8 6ZdgxI8FTxReaKCHOyf6fDISPoGJVymJosJYo= 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=rGWgMI1+Sov2UL2W3G/z4V3AYRc3F2jCrmMhsGLsaSc=; b=S2FjR4xu8SEpt5htU4xN8VjGZ7SxzsyrZbWVsYjdieZQ2lx0imKQuoWGCt3eWCC76t h/PDlUjgrm/e1I8wa0PUcfpy/xDp8rNlmAZogoEn8KVMp3QlgdnYTAQ3COjVkgCQfubh +58ixRuhcInVGk1kKTlx4PK37ORiF2Up+hPpnEeW1155H0l2DF8f46jilwTIic9e2Xk9 JmFl5I6XXOwC6z5SXQkTtxlMVz0yz9l02F5mdSgmuvEmBqrcrCKAmCtTgvRFd3+hPgjz LTSdIgNY4E0T5GfQL2o9++fWOaOzmPlZ3U+1jjD6YlKA5Bi++H8pi0ec0TNAWAc8OOxF lTkA== X-Gm-Message-State: ABuFfojC3wQHPOmPVKfRk6ey+urbtJ0ZkVDmgowYkwb2XYw77BcFYPhw rivMCQHwJHU0OFw3lFbI4Oe8+LWbrSF+Qw== X-Received: by 2002:a37:10a7:: with SMTP id 39-v6mr22580045qkq.131.1539102312277; Tue, 09 Oct 2018 09:25:12 -0700 (PDT) Received: from Thara-Work-Ubuntu.fios-router.home (pool-71-255-245-97.washdc.fios.verizon.net. [71.255.245.97]) by smtp.googlemail.com with ESMTPSA id o7-v6sm10441169qkc.67.2018.10.09.09.25.10 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 Oct 2018 09:25:11 -0700 (PDT) From: Thara Gopinath To: linux-kernel@vger.kernel.org, mingo@redhat.com, peterz@infradead.org, rui.zhang@intel.com Cc: gregkh@linuxfoundation.org, rafael@kernel.org, amit.kachhap@gmail.com, viresh.kumar@linaro.org, javi.merino@kernel.org, edubezval@gmail.com, daniel.lezcano@linaro.org, linux-pm@vger.kernel.org, quentin.perret@arm.com, ionela.voinescu@arm.com, vincent.guittot@linaro.org Subject: [RFC PATCH 4/7] sched: Initialize per cpu thermal pressure structure Date: Tue, 9 Oct 2018 12:24:59 -0400 Message-Id: <1539102302-9057-5-git-send-email-thara.gopinath@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1539102302-9057-1-git-send-email-thara.gopinath@linaro.org> References: <1539102302-9057-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 e7cb0c6..542745f 100644 --- a/drivers/base/arch_topology.c +++ b/drivers/base/arch_topology.c @@ -126,6 +126,7 @@ void topology_normalize_cpu_scale(void) pr_debug("cpu_capacity: CPU%d cpu_capacity=%lu\n", cpu, topology_get_cpu_scale(NULL, cpu)); } + populate_max_capacity_info(); mutex_unlock(&cpu_scale_mutex); } diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 625bc98..f0eed1a 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -5868,6 +5868,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