Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp283829rdf; Tue, 21 Nov 2023 02:39:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IExGTvPHcOmw+tA8xWseLGS7G4BCB6vZ0+RqcT4poXldw+11lzbJ1og/eKR6yzfMOQsAOx6 X-Received: by 2002:a05:6a21:6da2:b0:187:b581:cf4b with SMTP id wl34-20020a056a216da200b00187b581cf4bmr8507090pzb.49.1700563188250; Tue, 21 Nov 2023 02:39:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700563188; cv=none; d=google.com; s=arc-20160816; b=Fbd2swu1S/vUvLqmav9cOhwWMrFO28qxizhgYzdzCb+GgoUslljIaixPken2q45MeT USiZzGnblF8WAa9DMze0an7rSEvJzas/c9esW3J19LKFjoC+mwLzuEgZxZdVripJmRET MP95i964XVbnlbYhS7XWhgFt4RSTqmF8o/P0BXfl+THGIx5cUiXf2iDuKyoK1JLKh4za Zr9imn/kvZXYid+w+fSiKlqAdKpcR6Y7C2AWmWDQLG1dhcJNSPIbdAk5Mj8Btjyav/Mr /e7UJuO0YH+muyjXICU4/zivgVI9IS+kNruQTd+0wWCCudx188jAvpj+w+4xF/Z2LiGq Gi7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from:dkim-signature; bh=DUZNd9yVLri0er2o2ShyvqNfHkjGFSAycw8ptXpL4B0=; fh=LrjGCQr9k+7CYyd6XEdJgJkCFIUW/cPwqK3zW8PbdHI=; b=V2TGoLCDRX9PkKJFm8bKryXxJFp9WAjgCxSRRSauhUstw3K7SwIabSWsY40k2xkULo dtlwAlw5mS/MY1J83urwPfCYI4heNQAxybR21xAz9MRf/XcrrgNBTP0gpPWmaye+15zz +D1y/bEJ/DSqKBbcxlBmm/evVd35RFBpxv28tTLY/SapAqM9Y2SP/Ua013DzrK4uZV8L Ovlpi5STQdHNGw7DC6GYxQrrl1si8/BZyuV5Va8I5qzMTjK/0szEp9emj2RLTctfQlLJ 2CYYlEh85+ZZYo5+Iw4Uf3HSoYJFPDsv04Ckf1zYEdq4mKX0xsKEMCzfdE6pE/MGLSRl FhWg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=M9+gDsOT; 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=intel.com Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id f4-20020a056a0022c400b006b3aded7e97si10642875pfj.305.2023.11.21.02.39.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 02:39:48 -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=@intel.com header.s=Intel header.b=M9+gDsOT; 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=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 9251680C775B; Tue, 21 Nov 2023 02:39:45 -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 S234023AbjKUKjW (ORCPT + 99 others); Tue, 21 Nov 2023 05:39:22 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233930AbjKUKjJ (ORCPT ); Tue, 21 Nov 2023 05:39:09 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D04D137; Tue, 21 Nov 2023 02:39:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700563145; x=1732099145; h=from:to:cc:subject:date:message-id:in-reply-to: references; bh=Y6ds1jUN7LPSrZRrgey6FYqJOhCq9ZfRNZPabZ6KtHA=; b=M9+gDsOTpNJWH9op6O7/K3HXkqTffL7PmQy8oWaRVMCfgFeievRgX2n3 0qC7VJzXIjT+m9nRCKmlcJ30ImDqg7hIGItp8rpO9bq5xlEpj8xwVLFD5 6Cl3drPOVyrp8+fmQtxIb842/y1n/lHshxa4JxBJ0H//CNoXDZSDiKaRc tWPdl3JugLyv/St3Q5pw0pR8Oqn+SYcMSgjmPHIPJSPo8ZMpZF3/Cz7Qx c3fP8k5WqsqGW8k/O0kOuCyDucc4sPg4gNezAIviXzH/WtyIvXbrVLtVS oXe+3gXt3ycpTo/L4ssrTptosvQvf/1bvOcYwMrow4mzTA+yMEZ6Umvck A==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="371987049" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="371987049" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 21 Nov 2023 02:39:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="14871962" Received: from inlubt0316.iind.intel.com ([10.191.20.213]) by fmviesa001.fm.intel.com with ESMTP; 21 Nov 2023 02:39:00 -0800 From: Raag Jadav To: mika.westerberg@linux.intel.com, andriy.shevchenko@linux.intel.com, rafael@kernel.org, lenb@kernel.org, robert.moore@intel.com, ardb@kernel.org, will@kernel.org, mark.rutland@arm.com Cc: 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, Raag Jadav Subject: [PATCH v2 6/6] perf: arm_cspmu: drop redundant acpi_dev_uid_to_integer() Date: Tue, 21 Nov 2023 16:08:29 +0530 Message-Id: <20231121103829.10027-7-raag.jadav@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20231121103829.10027-1-raag.jadav@intel.com> References: <20231121103829.10027-1-raag.jadav@intel.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, 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 02:39:45 -0800 (PST) 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