Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3008337pxb; Sun, 8 Nov 2020 23:04:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJwxQ6gNGt0/z6lmeiDXJyDoLCafYO+DV6zjKRV3rzMtU5wyInyQKyEi4sJbU9y9rZdzBDkH X-Received: by 2002:a50:cf46:: with SMTP id d6mr14270014edk.356.1604905487950; Sun, 08 Nov 2020 23:04:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604905487; cv=none; d=google.com; s=arc-20160816; b=aoh5RFOnMzLXO8l5iHeAmzL9pLJwTHWnmuGck4ecRSlBvk8jiGJ1k5ql/S1Er/NWe1 QJW+xSYkSFIHoeMr5+w63t0OsLDRnmpcinMUrNleuIOTIbBAPOggJI8smx5G0HFA3tPJ 2eRbt02fJGjJ+U4nUWFLb1tz0f8dAFAAgyelg14vA5NcaSbc1PtpFunOPj4cw1KJ4Jhj OWaQO4yf/t9aRZBgpoo4B8V3z6oYvOfDAQL/EqcFVSvqjyur5MJmQFMBps8E8tObt4cd dMy9dFrecjBevHdtQK+ap3cBCqXqaMI3qS2q0fAnXgMh1GJ595DCXz3UaGTtBdNCahvm 4gVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=+md9yIVOWU2vwRWktFQYPICHSpOBwQe+c7giXRAXFCo=; b=xZsZYgW+aMD9W21ABgd+cE/EwCNdmyr4OKAYJ1clVjKq2OjpDOirFtAOK8RxSQ8zLX iAsSm8Q0uGcuPvGKzioGxUZHrvNAmzabDLKV5R6X9e2yyOY7Q+TrGQavz/aizA+tJmPe /aurVz2NqbaMlaZyj5/TVunapB+vwHcgSwGM9iO7Bq2c6c4ufUROY/WyUag1bIjueEHo z1CGGA5V2PPpbqv0SXHUsTPtyZAzPCWKnpRw1FFZUqih73u9r/efBhKV6zTwM35dzY8x iF5VAjo9FLRhmqgUgFHMxew5Dn8bkMvNJjD01livdKTqsNx+Vx0nU+6pWyHulnRiCncg KOMA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l0rnrVje; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id z2si6831906ejc.253.2020.11.08.23.04.24; Sun, 08 Nov 2020 23:04:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=l0rnrVje; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1729552AbgKIHB4 (ORCPT + 99 others); Mon, 9 Nov 2020 02:01:56 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728873AbgKIHB4 (ORCPT ); Mon, 9 Nov 2020 02:01:56 -0500 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24BFBC0613CF for ; Sun, 8 Nov 2020 23:01:56 -0800 (PST) Received: by mail-pg1-x541.google.com with SMTP id r186so6348713pgr.0 for ; Sun, 08 Nov 2020 23:01:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=+md9yIVOWU2vwRWktFQYPICHSpOBwQe+c7giXRAXFCo=; b=l0rnrVjeW9d3uICePjAEjZ9yUbnLYtTGiFu/t7BnIg9XQJ5VlFGm5BcHjO4udNK9Gj vv9tdg2H8SK/ALOFylILgIQYJhPDLR33qX/blgaN5BGsV4hFHOQNcTWmZZ8Mvet986Es JkhDh9x2Q4cSgaKJtS+EiVs1XDuidY4elkSVTnOeEFozewwzWAHDXM/VC90RwoVE8Wpk 1SUeHeEYkavgLGnImyKKIArD6es31xUbUGkub6FMWCPoQnYSdRWHwIUIHfDPvMW4SQ+f BngcG31RTbahUjUG+gsKhvpObFeUcYMQglZ26J41+0ucpGAlfr152MOJrQufM1uO/2FV apOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=+md9yIVOWU2vwRWktFQYPICHSpOBwQe+c7giXRAXFCo=; b=BRDAjcrl0mPIzJx+8rVrkr2GdtwFGeSgUSak2DHVRZmNfMLstBVdjp8fEnkW53iRzN LaEMLVGwGvGuoktP79yTMTn/ClGmiaDWgdgYnAoykV+CV056QvmW3lbUMBXu2zC8vfVf elRhcpWerI6lGvb07Txzx+qfI3excFDF/nJfixmm8y4wgZeyUEl0PZm3Gg62KnYcDX1W hxoo2YnnjILxv6VlQGMnap5cvlOBA1L13owhrLkfNj63zZ4f0+zpAxS9Lb3Gb/MDOrAp LLREHBVheZ5+fOzdf6rQlt0Am3p3ZBVW1uDITKXJ8ohSvwyKiuT/NPDn6+CdPQycn5A2 hObg== X-Gm-Message-State: AOAM532om7IKsxTta9iWnD2JhaBH4aUgL2b1Q4i2Sk07EM4GsIj0dL5L kqRzlw36Y8vLLj+JUc80wQuvCg== X-Received: by 2002:a17:90a:f993:: with SMTP id cq19mr11896101pjb.173.1604905315719; Sun, 08 Nov 2020 23:01:55 -0800 (PST) Received: from localhost ([122.172.12.172]) by smtp.gmail.com with ESMTPSA id t9sm10284590pjo.4.2020.11.08.23.01.54 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Nov 2020 23:01:55 -0800 (PST) Date: Mon, 9 Nov 2020 12:31:53 +0530 From: Viresh Kumar To: Ionela Voinescu Cc: rjw@rjwysocki.net, lenb@kernel.org, sudeep.holla@arm.com, morten.rasmussen@arm.com, jeremy.linton@arm.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/8] cppc_cpufreq: simplify use of performance capabilities Message-ID: <20201109070153.uczztnbt6jbgl6vc@vireshk-i7> References: <20201105125524.4409-1-ionela.voinescu@arm.com> <20201105125524.4409-4-ionela.voinescu@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201105125524.4409-4-ionela.voinescu@arm.com> User-Agent: NeoMutt/20180716-391-311a52 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05-11-20, 12:55, Ionela Voinescu wrote: > The CPPC performance capabilities are used significantly throughout > the driver. Simplify the use of them by introducing a local pointer > "caps" to point to cpu_data->perf_caps, in functions that access > performance capabilities often. > > Signed-off-by: Ionela Voinescu > Cc: Rafael J. Wysocki > Cc: Viresh Kumar > --- > drivers/cpufreq/cppc_cpufreq.c | 40 +++++++++++++++++++--------------- > 1 file changed, 23 insertions(+), 17 deletions(-) Acked-by: Viresh Kumar -- viresh