Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp1223825ybx; Tue, 5 Nov 2019 12:25:42 -0800 (PST) X-Google-Smtp-Source: APXvYqw6wjwSimmawWl4tL5WGH7E+j1YAIjAyAbe6TSE0kOCWT+0tZCztQnmn8zLNr1prco1GAGQ X-Received: by 2002:a17:907:429e:: with SMTP id ny22mr29730591ejb.174.1572985542860; Tue, 05 Nov 2019 12:25:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572985542; cv=none; d=google.com; s=arc-20160816; b=pQ5RMugWGVx7SAZGbzKBTxumdRl4vWli/QwRY1HAZKMPamNvs7/JoiVl6FSFCe8WVl 37oQqt+N8npfKjhLf+GS+rMH2SIr77ZeyGcRxAtZz+XPsBRFS/1fYzRlPZHHVJhOhNOC qVYqIIwfZfFkfN29KGX4j1pnaAALtjwmbn1AgPzld6zGydQ+blbnBue3ChECZSuVne5a LfSaYwcr2eN4BmaTlVNV6dqfU9orqW/+6RBPKrUNlqu1e+RJ6wy7GJnAWOLBKrzpPlpm K8FhqgfIsmMSSLLFELRhO8t9eZVUTkhxNPw1BZRFjE2iHO+RYGbuMYzMIC+mCBIxPJI7 r0ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=gSUi7LhmeJNJd+0255hPS0BJ3//7rqIw2Al6JOxYw3U=; b=l9o6DRnKrZQ6DnjGWWRLWE6Ot1yflzLcpwoBw+vWOCf6x9zSaZ83MYUa66WyUIT2Jt 2RBB64qmKS+OgWFWye+pju5R45kewZbYkzhJmUQTvhQRmR8PqMDfcEU4bP8H7ezROuUN iFz9nsy7pLHYziSpyc2cbat7ow6gADy9f4LNgYLst1szELA9Drys/vF2gcyezDQ/Nset 5IcUhfRTKTuRZsWEznkN2H+YlSX8+A4X2FBX+8p3u/AhKKpod0jDNfS0goYAGcmeO7V/ dbC/LGe34vyOISD5QLJa7YhQHUbOS6Stw5BDUSBSkWwZQR3JXaBeJ8sgrZq7p1+HHd5z xHBg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e22si11544821ede.163.2019.11.05.12.25.19; Tue, 05 Nov 2019 12:25:42 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728515AbfKEUV5 (ORCPT + 99 others); Tue, 5 Nov 2019 15:21:57 -0500 Received: from foss.arm.com ([217.140.110.172]:59566 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725806AbfKEUV4 (ORCPT ); Tue, 5 Nov 2019 15:21:56 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 3D778311; Tue, 5 Nov 2019 12:21:56 -0800 (PST) Received: from localhost (e108754-lin.cambridge.arm.com [10.1.199.68]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D00C83F719; Tue, 5 Nov 2019 12:21:55 -0800 (PST) Date: Tue, 5 Nov 2019 20:21:54 +0000 From: Ionela Voinescu To: Thara Gopinath Cc: mingo@redhat.com, peterz@infradead.org, vincent.guittot@linaro.org, rui.zhang@intel.com, edubezval@gmail.com, qperret@google.com, linux-kernel@vger.kernel.org, amit.kachhap@gmail.com, javi.merino@kernel.org, daniel.lezcano@linaro.org Subject: Re: [Patch v5 2/6] sched/fair: Add infrastructure to store and update instantaneous thermal pressure Message-ID: <20191105202037.GA17494@e108754-lin> References: <1572979786-20361-1-git-send-email-thara.gopinath@linaro.org> <1572979786-20361-3-git-send-email-thara.gopinath@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1572979786-20361-3-git-send-email-thara.gopinath@linaro.org> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Thara, On Tuesday 05 Nov 2019 at 13:49:42 (-0500), Thara Gopinath wrote: [...] > +static void trigger_thermal_pressure_average(struct rq *rq) > +{ > +#ifdef CONFIG_SMP > + update_thermal_load_avg(rq_clock_task(rq), rq, > + per_cpu(thermal_pressure, cpu_of(rq))); > +#endif > +} Why did you decide to keep trigger_thermal_pressure_average and not call update_thermal_load_avg directly? For !CONFIG_SMP you already have an update_thermal_load_avg function that does nothing, in kernel/sched/pelt.h, so you don't need that ifdef. Thanks, Ionela. > + > /* > * All the scheduling class methods: > */ > -- > 2.1.4 >