Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp488766rdf; Tue, 21 Nov 2023 08:01:59 -0800 (PST) X-Google-Smtp-Source: AGHT+IGbp5M8cNDKeqC68AMcK/hHVuBPVAsHUI5GgvLA9lYnffhuTbe2xLVOvhzlT+0X5oc7+u8P X-Received: by 2002:a05:6871:589e:b0:1e9:badb:acaa with SMTP id ok30-20020a056871589e00b001e9badbacaamr12399445oac.23.1700582519282; Tue, 21 Nov 2023 08:01:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700582519; cv=none; d=google.com; s=arc-20160816; b=dCVui7GBVORBR3ZNyZwnaDSPLuCH9x/y8n3gIwqgWgNLEFq5pKUc+zUMXSyOhZXLVt Ic7an82xqTziDr5W/1flDXbaCa8nvxCRxqvVJIKSyk6WRC388WxnuH69ddIKKoniOjJ8 EuA8oM1338gsaSJoamVZ8XHR09M9aFCtbw1uxA1NZZNBtxTyeWSZ0a16Nz3H/UqraN2t uOaSEktWxXi7N3SwSk2OMS76BcJVCTJhLfR8m0R0IfUyRFGOjXfa59ufLvN9flRWIM70 pr6xFes1ii6DrBBwgcVjRJ+kFyjndrAafN6ZwyfPd6kSTyPiXNt0Nxjp549ldEsbWMUe RHuQ== 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=7EqsYTNRXYi6i3dAdNS5Vdm/t7c6jkphb/OyaL91Moc=; fh=R+VYShfSbav3ymV1oax390bl/4eqT6NP5cXMG6Ux0Kc=; b=0+AG5c+l02dZGK3k5zfjEa9pT6ldbCicxOCDGbSh7hR079z1GZW+JY8oGOoCrtFM0y 4ICF/jBcTKIiDOtmwdt3+ZmSNisMqg/ftfpm9SA2Fi01xF4iK1c2ezxUjXnNqtXY5BSO 1PRgIPDLDHv8Mz3lvPoVZZf6Jl+A+MyRBqeu313HzRsGdwILkr5BAflQSLIZW+auklBn v9FyI4swygtrp3rvbf5WEv+etZDdY8EciT1hWoOA7Oz6slLzx8kfTTdEzGatpsso/Uir SJDv4PhfZVUVkOUf2QYbMOirs8YdgLsszW+TchQy+3dkOBuUkilhfGlT1LRSY3nYFCUN PH7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=azyVEQtO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id cm19-20020a056870b61300b001e967174d23si3790607oab.72.2023.11.21.08.01.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 08:01:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=azyVEQtO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 8267880942EF; Tue, 21 Nov 2023 08:00:25 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234860AbjKUP7t (ORCPT + 99 others); Tue, 21 Nov 2023 10:59:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49808 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234708AbjKUP7r (ORCPT ); Tue, 21 Nov 2023 10:59:47 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75C59139 for ; Tue, 21 Nov 2023 07:59:44 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 60753C433C7; Tue, 21 Nov 2023 15:59:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700582384; bh=7alg8Jssc6aLWxzZ/btEFQ1RxP33y9So0lktKPqsofc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=azyVEQtOmYL3DB78Wk7B7eQK86ZySqQvGSLDDKTwOXVphW6gKwb8fW3CGLcqisf3K v4AN65UjwS/q4Rh0y2ZZ7pZkRyiUHas3NmS9S1VXCrFTVLmYyQHJME5R8lBeN9PdaI b2UYPF/aGQ8R9HKtypIdQW3cr2RecvaMunW4An0AMtihAC0VUixc+dEADNBEpQXluK NRZGcgVo41ZuhElOkKXxEVIRqeY4tEWKcqS6+TeLRMfJNDL/t4KhKY0gHLXIh4Y97I lTjQ+E8zYhbHCTD0OGsrmtJuy+QFaAX5eF642wweyo9/zwi3ZeDIeUN2ajDspVUJ7f OCmTIbtVhkw+Q== Date: Tue, 21 Nov 2023 15:59:38 +0000 From: Will Deacon To: Raag Jadav Cc: mika.westerberg@linux.intel.com, andriy.shevchenko@linux.intel.com, rafael@kernel.org, lenb@kernel.org, robert.moore@intel.com, ardb@kernel.org, mark.rutland@arm.com, linux-acpi@vger.kernel.org, linux-kernel@vger.kernel.org, acpica-devel@lists.linuxfoundation.org, linux-efi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, mallikarjunappa.sangannavar@intel.com, bala.senthil@intel.com Subject: Re: [PATCH v2 6/6] perf: arm_cspmu: drop redundant acpi_dev_uid_to_integer() Message-ID: <20231121155937.GD1938@willie-the-truck> References: <20231121103829.10027-1-raag.jadav@intel.com> <20231121103829.10027-7-raag.jadav@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231121103829.10027-7-raag.jadav@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.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 (fry.vger.email [0.0.0.0]); Tue, 21 Nov 2023 08:00:25 -0800 (PST) On Tue, Nov 21, 2023 at 04:08:29PM +0530, Raag Jadav wrote: > Now that we have _UID matching support for integer types, we can use > acpi_dev_hid_uid_match() for it. > > Signed-off-by: Raag Jadav > --- > drivers/perf/arm_cspmu/arm_cspmu.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/perf/arm_cspmu/arm_cspmu.c b/drivers/perf/arm_cspmu/arm_cspmu.c > index 2cc35dded007..50b89b989ce7 100644 > --- a/drivers/perf/arm_cspmu/arm_cspmu.c > +++ b/drivers/perf/arm_cspmu/arm_cspmu.c > @@ -1108,7 +1108,6 @@ static int arm_cspmu_request_irq(struct arm_cspmu *cspmu) > > static inline int arm_cspmu_find_cpu_container(int cpu, u32 container_uid) > { > - u64 acpi_uid; > struct device *cpu_dev; > struct acpi_device *acpi_dev; > > @@ -1118,8 +1117,7 @@ static inline int arm_cspmu_find_cpu_container(int cpu, u32 container_uid) > > acpi_dev = ACPI_COMPANION(cpu_dev); > while (acpi_dev) { > - if (acpi_dev_hid_uid_match(acpi_dev, ACPI_PROCESSOR_CONTAINER_HID, NULL) && > - !acpi_dev_uid_to_integer(acpi_dev, &acpi_uid) && acpi_uid == container_uid) > + if (acpi_dev_hid_uid_match(acpi_dev, ACPI_PROCESSOR_CONTAINER_HID, container_uid)) > return 0; > > acpi_dev = acpi_dev_parent(acpi_dev); > -- > 2.17.1 Acked-by: Will Deacon Will