Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp683906rwo; Wed, 2 Aug 2023 02:25:42 -0700 (PDT) X-Google-Smtp-Source: APBJJlF0TrKdIYWxKeyjEklokYBoQIBog7tk0m+2blieSHR7qgdYCE3D/ryYw79V+s9EPy95bqVe X-Received: by 2002:a17:902:b197:b0:1bc:ee6:7f2e with SMTP id s23-20020a170902b19700b001bc0ee67f2emr7606612plr.53.1690968341794; Wed, 02 Aug 2023 02:25:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690968341; cv=none; d=google.com; s=arc-20160816; b=X5J9fWamZkYazwnb7BoKjqXyTC/JOBDoPHGEt3SiYO61ynb76Cf/bRk6gxy8LAPq4+ Qcx1BRmhF2PTzW3/GsavGYhe2Vv9L1jQw0ZFZDGQnMzZucPEcavu+rukWkqCwB/eSemh cSuAh4uemTo/sfB44SmxdlYiq9glZ0i+67O5X45+QFMt//I9h5PtsmPIhW5RoGOSMFrQ SlJgOzpwSwCiMH3ugl6myDCKc7W649CfmBXQ3sShqqfVN1YtMMouonDdVIZGtSjIp2hw rWii7Fzxngs111B4MeQJGqudW32kWiUMuDgvo12REQ7IpkDDxFPh05MPA+0ooniq5hyw lCgw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=qONk/jbwaXqehdYBk7mmtnV/5fNL0tSGcoI/qqes6Ck=; fh=nAcYVwsMka0/llzHrt+3JrJHHol1wMNczl/Y6lf6vMU=; b=nmw6A7mTARFxv/h2ZAF8pjycz25ODtwxGXjglpTBRYzc5rN+ajIc8YxIqKD/icUHxh vhDzLb9pJpPnjUwXoqUjKYXhLXvZ/JkmnPdsUQs+5Kk1/9PAkdsSiDjUEaUXfeW7i54s oT50X6X7KK9D7Ebeyef9LnBaCFBcFCj8BzoTG41m2ruHE//POT+NG9tA0LseS/s1cMtk lomGPFKscQ/lIF1i2F81s1ENsq7DxNeLjBywggz8SndvyFo/MJCRFfB5vzkN9X896Vo7 1fC/u72wfxia8g4msvSlZDtk72NV/HFN24Bex1wnxbS8CIzk2waTONtNWYb7zAOTJfox e6HQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c12-20020a170903234c00b001b876cb3e53si1320896plh.211.2023.08.02.02.25.28; Wed, 02 Aug 2023 02:25:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233995AbjHBJJT (ORCPT + 99 others); Wed, 2 Aug 2023 05:09:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234007AbjHBJJL (ORCPT ); Wed, 2 Aug 2023 05:09:11 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D53FD2D52 for ; Wed, 2 Aug 2023 02:09:06 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id BA1B5113E; Wed, 2 Aug 2023 02:09:49 -0700 (PDT) Received: from a077893.arm.com (unknown [10.163.53.180]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 8F1D43F5A1; Wed, 2 Aug 2023 02:09:04 -0700 (PDT) From: Anshuman Khandual To: linux-arm-kernel@lists.infradead.org Cc: Anshuman Khandual , Will Deacon , Mark Rutland , linux-kernel@vger.kernel.org Subject: [PATCH] perf: pmuv3: Remove comments from armv8pmu_[enable|disable]_event() Date: Wed, 2 Aug 2023 14:38:53 +0530 Message-Id: <20230802090853.1190391-1-anshuman.khandual@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The comments in armv8pmu_[enable|disable]_event() are blindingly obvious, and does not contribute in making things any better. Let's drop them off. Functional change is not intended. Cc: Will Deacon Cc: Mark Rutland Cc: linux-arm-kernel@lists.infradead.org Cc: linux-kernel@vger.kernel.org Suggested-by: Mark Rutland Signed-off-by: Anshuman Khandual --- This change is taken from BRBE V13 series [PATCH 05/10] just to keep the remaining change set in context. Mark Rutland had suggested this earlier. https://lore.kernel.org/all/Y8AZXQJUO6h5mlgq@FVFF77S0Q05N/ drivers/perf/arm_pmuv3.c | 23 ----------------------- 1 file changed, 23 deletions(-) diff --git a/drivers/perf/arm_pmuv3.c b/drivers/perf/arm_pmuv3.c index 08b3a1bf0ef6..b46ff9f73f42 100644 --- a/drivers/perf/arm_pmuv3.c +++ b/drivers/perf/arm_pmuv3.c @@ -721,38 +721,15 @@ static void armv8pmu_enable_event(struct perf_event *event) * Enable counter and interrupt, and set the counter to count * the event that we're interested in. */ - - /* - * Disable counter - */ armv8pmu_disable_event_counter(event); - - /* - * Set event. - */ armv8pmu_write_event_type(event); - - /* - * Enable interrupt for this counter - */ armv8pmu_enable_event_irq(event); - - /* - * Enable counter - */ armv8pmu_enable_event_counter(event); } static void armv8pmu_disable_event(struct perf_event *event) { - /* - * Disable counter - */ armv8pmu_disable_event_counter(event); - - /* - * Disable interrupt for this counter - */ armv8pmu_disable_event_irq(event); } -- 2.25.1