From patchwork Tue Jan 23 14:13:07 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 765219 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 330B9C47DDB for ; Tue, 23 Jan 2024 14:14:38 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 8A20D74C; Tue, 23 Jan 2024 15:14:26 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 8A20D74C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1706019276; bh=GaifTXwjrtPwYGxIjA7saixKCJ2NePne3qXb4RkB2PA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Archive:List-Help:List-Owner:List-Post:List-Subscribe: List-Unsubscribe:From; b=KY4itlx+8Xc8A/JDWvBGsjx1dwaRvroSBNxOWCSYEaD8n2tlS/fd1LGh2VNoWX+64 dHcoyy7jQpXDHsynThO6lGAz0F8sa3iLTEl8pIyva5ucLOUxORmE50Olu0i9QIGuvm x6g3zUnjhmI6P6AQs7hvAHjthODwfbyXZUTFlJic= Received: by alsa1.perex.cz (Postfix, from userid 50401) id E4321F805A9; Tue, 23 Jan 2024 15:13:55 +0100 (CET) Received: from mailman-core.alsa-project.org (mailman-core.alsa-project.org [10.254.200.10]) by alsa1.perex.cz (Postfix) with ESMTP id D369BF805BD; Tue, 23 Jan 2024 15:13:54 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id E66D7F80494; Tue, 23 Jan 2024 15:13:48 +0100 (CET) Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 5BA1CF8025F for ; Tue, 23 Jan 2024 15:13:38 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 5BA1CF8025F Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key, unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=uydqCbAt Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-33921b95dddso2126862f8f.1 for ; Tue, 23 Jan 2024 06:13:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1706019218; x=1706624018; darn=alsa-project.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=uydqCbAt4npHkXIhAZ6vS8UbYfqRumvsY2uqLGl5GZ/R9H9d83si9GSISmSmrHStqh jnbJ4qvrVb3HVzym/gE9Qsg4PDz5+6utt9nJnVTN7bFdd22o8GGEPLgiCmWMW9K6emDn sT7ecnK6d/w/QWtyJcpZUxd89XuKrOTO86KVh6Avl0nFIoBHD1fybbBqBLl98Qp3aqL3 J1vxG2TzVkvpqmQJn+FNoIrtDJGC1m9taic+bvVY/v3Yl27e/0jNdJ+ischY4t2x205P voxb/1vPP6IKyAwSUEafygIF1BduKF2FOzuEePXRBzA0RbZpT3qaPwARN/PNFjlCg7Zk 77Zg== 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=VpbiE/DWvyFsYYjXSVdSkXE1DA4zZDUOa5vN0h02onGdvtRPLIGWC0cXrL+wZUE9FF lfB3YCLfYwQzVIIhMPy5ikziYF4y8fap1aepqfcMF76iatF+S7mXC1NLNRY6zefOFBDc 18SJUztPNCWOZupKUhdBds8yDgVRYYaCKCAhamHZkfz6TWHOxvyp0RvBrUQNurc+et1A XZoGP2DYYe/ee+dg5kwa+HQ5WEL4cIClY0waYV4Gnrt1AqIACjuW7bUBF1ecKBLpkk1H IPJKCEKXRdU1EZxnh2XEMbsIlWv5ijjrI8o+SLXkBxC2DkkYGY5WmqCuqE6sDdH9Wcz/ RAyw== X-Gm-Message-State: AOJu0YzsX/sVsxWM2FI6bamVjysjs2cmxxKnbY3iFBDz0Y1WLRdCcxWq nisXXQ924ZDH3pFoGsH0dm/CD7S+hQ/ot3ggBWd2Mqv2haWYsYSVosnYk1ESb0U= X-Google-Smtp-Source: AGHT+IGTxU9A6hZE3T/GfJ3iQs+U7hHMUT7YMZ5antPynbwk/2dJ9MwRblLpOb1YR4bjPYZyBsdj2g== 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> MIME-Version: 1.0 Message-ID-Hash: FSS3GTTHFAAAPHUSC7EJOYQI4WKJS27C X-Message-ID-Hash: FSS3GTTHFAAAPHUSC7EJOYQI4WKJS27C X-MailFrom: krzysztof.kozlowski@linaro.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-alsa-devel.alsa-project.org-0; header-match-alsa-devel.alsa-project.org-1; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.9 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Use newly added of_phandle_args_equal() helper to compare two of_phandle_args. Signed-off-by: Krzysztof Kozlowski Acked-by: Viresh Kumar --- 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);