From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.3 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 61E77C2D0A3 for ; Mon, 9 Nov 2020 07:01:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id F2A1920789 for ; Mon, 9 Nov 2020 07:01:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="l0rnrVje" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729613AbgKIHB4 (ORCPT ); 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-Google-Smtp-Source: ABdhPJwlVLkD+NYi3FQePIWPYNIHpruO2oAOkAarFXl4X1F2cdq83bIcnkdkpcJRL5Qu1ITdSMB7TA== 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