Received: by 2002:a05:7412:5112:b0:fa:6e18:a558 with SMTP id fm18csp516684rdb; Tue, 23 Jan 2024 06:41:55 -0800 (PST) X-Google-Smtp-Source: AGHT+IHCRR+FL+XBKeWfdrXFn6HGocYriqb/23W0S0DR4ki0SxBxEqLN8FozMUaUQpnRb1Ymilcr X-Received: by 2002:aa7:9307:0:b0:6da:336f:a925 with SMTP id cz7-20020aa79307000000b006da336fa925mr3896881pfb.29.1706020915128; Tue, 23 Jan 2024 06:41:55 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706020915; cv=pass; d=google.com; s=arc-20160816; b=cG+4ayR/Sn5qPMPN2A99a5BGvVivmp8EXUergvgd8V536FwaQ0e11IxC8ajdRVyoOo 2ez10Z+mSZ4Qdkmdm9WV2Lcshlr4bcJPw+UU7M4pXSP6zsdRzyMfK7JgDJZjiqWbutAi 1+Q5pJSzUFa46Nsn93Exw0ld0cW7RSp3u3x5OeiBFT7lFqISTXFNpdwkj+1vrZOtg9Vb J1MzBv3m++Nd8oLffGpR6HXYjqmniHOkR2q/ilQYpYLM1Z6DSKmTwcNM0ADsOJc0G+pE 4Xq4qM3w61d3vlm5WoeRJ4xQyEtPDCjUKgtVUxkP99LiHwwYRcoJyttPBI8x9DWJkIYD lqIA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=bb9ozaaEJGm3+iYRaS/Eou91hz/HW8vlq47gXO46/QQ=; fh=KPOn+qGTvaHkz5iUJk+KlMMqVszkWuW3WOgMbJvAyYo=; b=FPyLhpe2OLFwQfVIHeBUjPfF4YP0x9jlhzyWCf16lq29VrE9+LOzD9yyJ2a+9w3k8O DbnI4hefGT9HgKJI3ZNp0M/75OE1uJ4mSp4G9rO28Bi2AIUKWoZbJAopx4MtrYUACXPQ VNwiAanIOtD0DwHiMd/6efK7gsgU8PZospdaVoZr7zTMbmyZW3xfK14VuhTm9nyzku9U Bnd86PBTpOIXkWnoodBGYpBojAs0szfB9G4aClTvyRGI5WLXOMRdlXmwZOcqiS7v/cB5 j9XJ4dfQFBy29M3pa+NoSC0Ft4AUzoSOJuwTeDrJqDQsTaJUsdeDDKqNC9ETrPiVn7T6 upog== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IIuQUuVU; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-35430-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35430-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id le13-20020a056a004fcd00b006dd7b95a14fsi981649pfb.305.2024.01.23.06.41.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 06:41:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-35430-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IIuQUuVU; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-35430-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-35430-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 524A9B219BD for ; Tue, 23 Jan 2024 14:14:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 420FB5FDD1; Tue, 23 Jan 2024 14:13:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="IIuQUuVU" Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CB5FE5FBAA for ; Tue, 23 Jan 2024 14:13:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.44 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706019221; cv=none; b=RfTFufJSGwpjgEtrEkyqMFcq+c67V0qFksop2BKXUxEnCb3wBFAqThhDW3uGUbs1EhqFczYM52AhPVTSFtHki34/leEexiM9WHowtJ2xlCFZLQDvG7ePL17c8Vw6FKNTwVZBqWHMZio28j/Pwi7bdaXE9MGfw3AIaXYKSNPoohM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706019221; c=relaxed/simple; bh=GaifTXwjrtPwYGxIjA7saixKCJ2NePne3qXb4RkB2PA=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=XEOntjuwPrEHGtAAyqzpoTVU8BVJntpW/1hjUMKiJsj9QNE3HLsqXyM0U+paFUtXLY218cSC8KBd6m3arryFPkz9gVy57mypOivpf/nC8Ni3OwLJS8AojBE1Qb/xHEwBVwctn35STBONJQGtZuL3Gm0jWWFxvpi4MJ4FrsiNDvc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=IIuQUuVU; arc=none smtp.client-ip=209.85.221.44 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-wr1-f44.google.com with SMTP id ffacd0b85a97d-336c5b5c163so2679540f8f.1 for ; Tue, 23 Jan 2024 06:13:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706019218; x=1706624018; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=bb9ozaaEJGm3+iYRaS/Eou91hz/HW8vlq47gXO46/QQ=; b=IIuQUuVUr2OZ7hVdwW8CGYEMrIDSS5wOvdlkDFzjWGIvbAwvHjBfO+qu/DMe7w352w ItK1CFlwh9pS8URQmVx4Bbhz14m60bRGGMBj5CxpwGO5Am5A+DvLrq20bSCOvsaHpkBs bCO6Y1eqbdLQtqA8jzQB/BqZCPESTgOe7Fc4gxaCz+v9viyFGOGMmT7Oa+4LN+Rs7Xk6 T1AkKsJnfGZUrmuil4AMIgfgbxZONnHWqh4pyTV2+YJifsddTPXBjXcNRYPnCXwkewdp EOjA9cO/51qqB7BmkS0/9V800OZvhoseLY/bmo9WtxMKrfbTCYGCoLH6SQMgNdpIC+Bt 1Y1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706019218; x=1706624018; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=bb9ozaaEJGm3+iYRaS/Eou91hz/HW8vlq47gXO46/QQ=; b=W91VwaULZw1pEzDzRPCeTaeYNGMC6CtTjm/qyL0yB1MZbUj3iIbmDDvB61FkCyT8xh mDc+VAx0kWrsiKX75L82dYtaoqBGlObEzxfXjpyJLyzd0I7BCM0A9cD7ZOeTcNXLIlgk 5U6DR4KQv03AlzVbHDJaq5cvthKQtbFrIeAGtZ7U/NkPfKjzRcnOTQyZEboSU1QypZaN EyiPVQS2MC8b2KAWuP5yvEYfRKN27m63EUCKXrPRTysgdwhVNAQgx5C2NjehWoISUfxA Bdz0B8+snT9S2hh19dYZpSaH/71TdTaPQKef6m4nrASRKIXHxKYQTuDPziVnSQHvYP3a q5Dg== X-Gm-Message-State: AOJu0YyG0vqgfo3DuXzGnkXPq9cCP+1TCaAVZLOwnBHN5tnWPqbIW3wu 8fmC6PZ/yMD4BlKt/f/y/rmJcQzHyztUcmZgZ8RRKKG6bIPeTL7pWBHip3cT9hOH3goQF5XzLmg d X-Received: by 2002:a5d:5602:0:b0:337:c097:db99 with SMTP id l2-20020a5d5602000000b00337c097db99mr3351685wrv.21.1706019218190; Tue, 23 Jan 2024 06:13:38 -0800 (PST) Received: from krzk-bin.. ([178.197.215.66]) by smtp.gmail.com with ESMTPSA id r8-20020adfe688000000b00337d97338b0sm12132298wrm.76.2024.01.23.06.13.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Jan 2024 06:13:37 -0800 (PST) From: Krzysztof Kozlowski To: Bjorn Andersson , Konrad Dybcio , Srinivas Kandagatla , Banajit Goswami , Liam Girdwood , Mark Brown , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Philipp Zabel , "Rafael J. Wysocki" , Viresh Kumar , Frank Rowand , Jaroslav Kysela , Takashi Iwai , linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, linux-sound@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH v4 2/6] cpufreq: do not open-code of_phandle_args_equal() Date: Tue, 23 Jan 2024 15:13:07 +0100 Message-Id: <20240123141311.220505-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240123141311.220505-1-krzysztof.kozlowski@linaro.org> References: <20240123141311.220505-1-krzysztof.kozlowski@linaro.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Use newly added of_phandle_args_equal() helper to compare two of_phandle_args. Signed-off-by: Krzysztof Kozlowski --- Depends on previous of change. --- include/linux/cpufreq.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/linux/cpufreq.h b/include/linux/cpufreq.h index afda5f24d3dd..3cd06dafb04b 100644 --- a/include/linux/cpufreq.h +++ b/include/linux/cpufreq.h @@ -1149,8 +1149,7 @@ static inline int of_perf_domain_get_sharing_cpumask(int pcpu, const char *list_ if (ret < 0) continue; - if (pargs->np == args.np && pargs->args_count == args.args_count && - !memcmp(pargs->args, args.args, sizeof(args.args[0]) * args.args_count)) + if (of_phandle_args_equal(pargs, &args)) cpumask_set_cpu(cpu, cpumask); of_node_put(args.np); -- 2.34.1