Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp3099350rdh; Thu, 28 Sep 2023 02:33:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGR4anXQe/eYD9kwG+Tc/ZeVzjjC3SbSzC2PVzDAMjPuO6W7aNgV5RLhx9ZoQM/hpAvyM8y X-Received: by 2002:a05:6870:b512:b0:1dc:704c:7c83 with SMTP id v18-20020a056870b51200b001dc704c7c83mr723802oap.30.1695893584532; Thu, 28 Sep 2023 02:33:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695893584; cv=none; d=google.com; s=arc-20160816; b=Odo6K7poUBK1db7iAhZZ2K23ggHP9pDBqiADsf/LCbwnbHfTI94cwqKKg+OR6E1kI+ jNV0lE5PfjAO+qndLIZUcBk8L+OPGjx7oWKHgAivzfjAR1QYBKj+DadLTrTSZjJ8AYH3 bo+N4Vi5rJtQDG3WMwwYOItc8sIbqMIc3Y5kq+NgDue68RQWLN/cJ5Ev71K9OhkSPr+z NGGaIYWPpxCH9X1hddL+Vu0aRe6d2/ZpZibivc8wecCQNhKITT+h3gii1zu4V986Mx56 PzBw7prw8D6mPSUceOu6PO9cSxCOQJoIRncFo0tcLRAH4BJqUUC2XCe4GmXJmhB0XtIJ RH3g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=qrlIZw5qja4JqqyR+qcaKYLNZ4ub2lqDzG6RTlB/DIQ=; fh=OFJCvJjDqaPF8lGRgxqEw8G/P/TFmSvZn9MkQHylmes=; b=b7UzFr8utHY7XYBNCI15s9i+XRnHwhpYFG6nq74oCFsXC9VzqvJ93V7tbC1xcw6+cL znvEVYeYINcs5sRAgshVo5KqADH258lSmNzP2oDeLLDmrQfgdoMSq4xzNAlAJg22Q6D+ KjjbHwt748gEkyPeQd5VGlpXQRVZAJqFDpOJ5pOSEqVwrOw9R2Yw2c/J+ljMxLlJoFhP i7TVhGLSDWW/4mfE4aYtFrewVjxPuNLbv+05w5O5sQEMj/CXOVRhw6LGxAuCG9/antBT 1BEeegHrxTw9i04CFOI8NeimEpDHD8HG9pIsX6t5Xc8aHsbjCKZy99RnwWz2r6XmmPs/ 06/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VXgfD9Xa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id ca28-20020a056a02069c00b0056ba5e3f604si20400348pgb.352.2023.09.28.02.33.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 02:33:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VXgfD9Xa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id E5A67807C7D4; Thu, 28 Sep 2023 00:06:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230316AbjI1HFw (ORCPT + 99 others); Thu, 28 Sep 2023 03:05:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34558 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230207AbjI1HFv (ORCPT ); Thu, 28 Sep 2023 03:05:51 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1883FBF for ; Thu, 28 Sep 2023 00:05:49 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id d2e1a72fcca58-6907e44665bso11311013b3a.1 for ; Thu, 28 Sep 2023 00:05:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695884748; x=1696489548; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=qrlIZw5qja4JqqyR+qcaKYLNZ4ub2lqDzG6RTlB/DIQ=; b=VXgfD9XaxeF/63XgRHFT/wxooGGjwigre/IKZ3thmGDBWqHMRj8WJbQZ+FJFMKrzRz 1xGgpJeL/3zgeH7cwGGfAEQ0tj6R8CDLy3aLQmOywDHM88lGZmNWpZv8Jbs/tWgRL+Fb Scshc0vJcZQ7G1oFlkoFgV9mbd73ladCvyHws7+XZItsoNkkH8CJg8OXCCOs88kZrCqn oVuSNMb4DNJ858GCovzDcO4wLQjyPeEZ79kYZ8msTytispHzsj/b9MRIr7K36DV+ENUO cPrqJ4vgCY5/DS6A0dsZCn67isYWGdlgm8bMWBt5dVNGvMZIFFvm6G2Pn3kWs1lPD2Ak 3TtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695884748; x=1696489548; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=qrlIZw5qja4JqqyR+qcaKYLNZ4ub2lqDzG6RTlB/DIQ=; b=QB2ZQY8Y6bxz4JKGjTr0ajhH21Zv44OE9IFFjzzO4LtGsgUUIvkGln/tyVFZ09X76A f3lCPAghJTd5LDTgNFws4bbuDYbirMxsXH596w9J8iIiN/P09EHwtO9yuSs5kG3mVmfh cfSJxMcWGfZpsme4f0wtr9mThVKtGrZ6I2BpamohmYVKuZx1w9eykY2BbHCCwjUu/fgO 7DoEoZGYrsqDFwywzMlsZpIfIhWnuYta2K77D4gz5pmAlelkkbsVhGdtiZwbsA6BPJrg eogRQPXk0ZCACJz9b/9of3/jGUYMibpvZBPCFlrFOhRwtYgGS/6dQCqeD3h6AgqaR7Wp qA1w== X-Gm-Message-State: AOJu0Yw2LrTYgroH4zIoutu7xCCxg+wO3mtCTaWS1aXbitDIMFLGpkFF ntpL4HPTM2iYFCK/MXsqNBrWSQ== X-Received: by 2002:a05:6a00:22c6:b0:68a:59c6:c0a6 with SMTP id f6-20020a056a0022c600b0068a59c6c0a6mr472441pfj.24.1695884748490; Thu, 28 Sep 2023 00:05:48 -0700 (PDT) Received: from localhost ([122.172.81.92]) by smtp.gmail.com with ESMTPSA id y19-20020aa78053000000b006889348ba6esm7162087pfm.127.2023.09.28.00.05.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 00:05:47 -0700 (PDT) Date: Thu, 28 Sep 2023 12:35:45 +0530 From: Viresh Kumar To: Sumit Gupta Cc: rafael@kernel.org, linux-pm@vger.kernel.org, linux-tegra@vger.kernel.org, linux-kernel@vger.kernel.org, treding@nvidia.com, jonathanh@nvidia.com, bbasu@nvidia.com, amiettinen@nvidia.com Subject: Re: [Patch v2 1/2] cpufreq: tegra194: save CPU data to avoid repeated SMP calls Message-ID: <20230928070545.b7l367qi2q4rynji@vireshk-i7> References: <20230901164113.29139-1-sumitg@nvidia.com> <20230901164113.29139-2-sumitg@nvidia.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230901164113.29139-2-sumitg@nvidia.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 28 Sep 2023 00:06:03 -0700 (PDT) On 01-09-23, 22:11, Sumit Gupta wrote: > @@ -131,19 +132,10 @@ static int tegra234_get_cpu_ndiv(u32 cpu, u32 cpuid, u32 clusterid, u64 *ndiv) > static void tegra234_set_cpu_ndiv(struct cpufreq_policy *policy, u64 ndiv) > { > + for_each_cpu_and(cpu, policy->cpus, cpu_online_mask) (Yes this is existing code, but ..) you don't need to perform AND with cpu_online_mask as policy->cpus should only contain currently online CPUs. Please check if you ever see it differently. > + data->cpu_data = devm_kcalloc(&pdev->dev, data->soc->num_clusters * > + data->soc->maxcpus_per_cluster, > + sizeof(struct tegra_cpu_data), GFP_KERNEL); This should be: sizeof(*data->cpu_data) instead. Didn't checkpatch complain about it ? -- viresh