Received: by 10.223.185.116 with SMTP id b49csp1681872wrg; Thu, 22 Feb 2018 01:05:11 -0800 (PST) X-Google-Smtp-Source: AH8x225uv5QuZaSN457yCsVo5By8NSx7o091JtKXlmW3Q4GEW0HqaItdlLGFrAvBH61UEvO1RRwd X-Received: by 10.98.82.138 with SMTP id g132mr6240752pfb.120.1519290311797; Thu, 22 Feb 2018 01:05:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519290311; cv=none; d=google.com; s=arc-20160816; b=a8hmF9BPQeLUQrfPHSCIhxXH7tJuZse2h3kvm+JPi9zsJqF36a5c5hO42pY5x91eL9 1ngtvjb0AJED8WGzhRnA+JfMB0AKks4CeyfLlDqKyRZPWy3ohUAc5IWndSKOR18hbnwd kQLYnG6UNNkzwCCBNU25dhkuJrenzEBBkeQJquPzh9+TAza531NqS2CaXVk/aMzErQt2 NjVVHJGzbHSG0eNrrm4ow5qhXbOdx0nXU0AZZY7jaLezSCJMgeQIj2ZCLzmGoL56uo5S c9lYEdP6Rp8xtVLp1guXC8Jg0/VP+tMFADZI8Dy9Qcq14rnRSA2cvJoNLgyp8Z/ZS56k YahQ== 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:arc-authentication-results; bh=59ZxhAW+gfgWytezH7a/dqk8aqFPFEMj6ncoE5drVX8=; b=K4IofM7jpSSIDW9mqcm9LrGkOc9wVFpM/H3uuwL+vDyAFGpjqrJqmmHSsB/TTUR+oa hsIjFNfS0DafcnmcTtvFnE9cacjlgV6wwXImNTPdx48Tv1xizmG67mu5OJSeoiQXySam iJNIqnFNALBAqg8T/qt6O4f8ljYPHmOXdlM4T4SogzlXSRB16kNQih+QMHwK21lfPsBA hEacBDwffE6fF4NepvR8cIgtYNqH9RTOWgfBdoJKkWjc7oIwlS3xZmErlH+8qctTkTVZ gpDtjcYBvNxVanxYt1InlCk+7GyzvAExJyndfXKnPpXrLr5uqJMbFpEGC4vL2ORvedHq B0ig== 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 m87si883057pfk.383.2018.02.22.01.04.57; Thu, 22 Feb 2018 01:05:11 -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 S1752892AbeBVJEN (ORCPT + 99 others); Thu, 22 Feb 2018 04:04:13 -0500 Received: from foss.arm.com ([217.140.101.70]:37366 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752644AbeBVJEL (ORCPT ); Thu, 22 Feb 2018 04:04:11 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8AFA480D; Thu, 22 Feb 2018 01:04:10 -0800 (PST) Received: from e108498-lin.cambridge.arm.com (e108498-lin.cambridge.arm.com [10.1.210.27]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 11B863F487; Thu, 22 Feb 2018 01:04:08 -0800 (PST) Date: Thu, 22 Feb 2018 09:04:04 +0000 From: Quentin Perret To: Sudeep Holla Cc: ALKML , LKML , DTML , Greg Kroah-Hartman , Arnd Bergmann , Alexey Klimov , linux-pm@vger.kernel.org Subject: Re: [PATCH v5 19/20] cpufreq: add support for CPU DVFS based on SCMI message protocol Message-ID: <20180222085936.GA2290@e108498-lin.cambridge.arm.com> References: <1518461124-17371-1-git-send-email-sudeep.holla@arm.com> <1518461124-17371-20-git-send-email-sudeep.holla@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1518461124-17371-20-git-send-email-sudeep.holla@arm.com> User-Agent: Mutt/1.8.3 (2017-05-23) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Sudeep, On Monday 12 Feb 2018 at 18:45:23 (+0000), Sudeep Holla wrote: [...] > +/* > + * perf_ops->freq_set is not a synchronous, the actual OPP change will > + * happen asynchronously and can get notified if the events are > + * subscribed for by the SCMI firmware > + */ > +static int > +scmi_cpufreq_set_target(struct cpufreq_policy *policy, unsigned int index) > +{ > + struct scmi_data *priv = policy->driver_data; > + struct scmi_perf_ops *perf_ops = handle->perf_ops; > + u64 freq = policy->freq_table[index].frequency * 1000; > + > + return perf_ops->freq_set(handle, priv->domain_id, freq, false); > +} Is arch_set_freq_scale() needed in this function ? Thanks, Quentin