From patchwork Thu Jul 27 14:14:22 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Ghiti X-Patchwork-Id: 126995 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp1153514vqo; Thu, 27 Jul 2023 07:49:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlGHZZWIIm5Fk2sPlM7/hwTh9DA7BxKspYRMx484ZbX4peHYxDpIt5BC9gSe4+rKFTyt26Xw X-Received: by 2002:a17:902:f545:b0:1bb:a367:a77 with SMTP id h5-20020a170902f54500b001bba3670a77mr5018926plf.31.1690469388678; Thu, 27 Jul 2023 07:49:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690469388; cv=none; d=google.com; s=arc-20160816; b=Z7Yy2sAAizCelUaOqGT7pGc+rLE3m9MN5TgAKgi7vgztHD55WmDIx5Miedka4zoWwf eqkQtZXnVhLRjEq9/xR9yox7CO/Z8zPbUDV8qoLz0g9DQDU4rtUsMlnoBPrdQHU5lXKC FUYUSwQVsKUEYRAhAHPNUxEmf1OKbGMGKZblna8BrsyBe16CNSgNYxIJmH/qUhX+CI3m 3KcLOR03yKq8FHNYa/lnC3pS706cW5SoLa4WjthOdimPOHn6FvmpTG8+lUOQ8Qv/crth 9QyiucsKk367j829yqUF01uGLoK1xOiHxX+PgwAkYfMDRQFX/EXwuTf34ReOkeszvdH3 EFIQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=TYevbpqWo7vfFaWnhd9GizwhPV+tk9zz00ActpJaBGA=; fh=JaxZGKf0NGxFruMBNweFeRrHWrRBBIwkQ5sLyfk9jAY=; b=IHjlA2YBuNAPi9yTTicj0TsUQUBUmkTJVuywjA/GNQxeqZDKA3NYOf2CylevsTZfHw RRyVEEkF/TZxHFw7P0y16f+J+Z4F6lNrnUcKnyawB3vMGVvCoawtq8eL7kuLsxTM8GK5 YDx4zG3Xx96GkaH0mnEs9NZEmwuCfzTNy9yPC1dP6UINg0gHqrx6+gXoqKGH6bsjWJra UM1Y7t+Sp5JaFJ9DTrh8I+I6GsPKc3ke5LhtFPDKHFCpkxl+/go7MSOROkkslaNH/1Ki czvY0lHnEO7n2J3/67hV9bN/BeOrGf2xJ3ebALZ9UPDttWi3p59Iw3SEMHDOACnbLKzV ScwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=XWBMwjub; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l15-20020a170903120f00b001b1bf4c8688si1481798plh.231.2023.07.27.07.49.35; Thu, 27 Jul 2023 07:49:48 -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; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=XWBMwjub; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232465AbjG0OVO (ORCPT + 99 others); Thu, 27 Jul 2023 10:21:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54578 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232177AbjG0OVM (ORCPT ); Thu, 27 Jul 2023 10:21:12 -0400 Received: from mail-wm1-x32c.google.com (mail-wm1-x32c.google.com [IPv6:2a00:1450:4864:20::32c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 47CA630D2 for ; Thu, 27 Jul 2023 07:21:11 -0700 (PDT) Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-3fbc1218262so11017895e9.3 for ; Thu, 27 Jul 2023 07:21:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1690467670; x=1691072470; 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=TYevbpqWo7vfFaWnhd9GizwhPV+tk9zz00ActpJaBGA=; b=XWBMwjubkbO9vRaYOttwxDrSJTFEVBcrDICeQ59Pnc2dizZSzISVvVnioCqBI9LHqk dSXp+lmchysMdo/CLXQNWFlU4x1fyaUOozpWCtj+BMDBSfANSJiaMC1ifdnBXVjkn5uy RP/IW5W9+fNnBGKhdEWsr7ZZaHu59UYaG/EtIeuJizX7SBt/5v/uOt3Zt276jODobK9G cjd22ta/DvBKRT0ijiP1TiIl15V/KrYvCFlwkXhyyILWNJw23His5BFY+b2ixsHGe4/Z SIiMHM9+I9+LvknjiN9jO04a5oxKABtl79j3TAJh83YQDzwfgecDzcpLyo3gRY0HKxp8 2ByQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690467670; x=1691072470; 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=TYevbpqWo7vfFaWnhd9GizwhPV+tk9zz00ActpJaBGA=; b=IVSRAT6kfFMaPDAkulw//suN6L7Y/KbK6fZUCHnlDe8ob6pv9+y2NFTAsxGpsjPL14 a504tmpZwAkKp9dKBqyNSwM2D9s3Rsu/IOTXGkyxLE21Chzb0R020iZTONtkcnyk/Qhm Gg1vepqDtr3xY7woRKD08a+j1KqyXBxsx3Kbvmekd2ExX5aJhNIBAPGioD5TzYDPOfl9 tcNqILeA9wm/VCSBAV5duYsc7Dv2triBMpXXfswLGtuwplBXs4F2QPC+u2lIu362Q+Bf r+pq6EUmzfGNEVsqLhC47auWZrIukCOQaIjfexR/g4pEVTIrrQLJmhUmVunn3N+rhOgD Y8dw== X-Gm-Message-State: ABy/qLZCWKfAVdfzc2Ix4eGJl5QGLLPxAX6l402QyhdxsJwsdWAqWCzz iZ1vy/ieP6A3+7YImUD2GrcYEg== X-Received: by 2002:a1c:f704:0:b0:3fa:934c:8356 with SMTP id v4-20020a1cf704000000b003fa934c8356mr1717042wmh.10.1690467669652; Thu, 27 Jul 2023 07:21:09 -0700 (PDT) Received: from alex-rivos.home (amontpellier-656-1-456-62.w92-145.abo.wanadoo.fr. [92.145.124.62]) by smtp.gmail.com with ESMTPSA id p12-20020a7bcc8c000000b003fc00702f65sm4698720wma.46.2023.07.27.07.20.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Jul 2023 07:21:09 -0700 (PDT) From: Alexandre Ghiti To: Jonathan Corbet , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Paul Walmsley , Palmer Dabbelt , Albert Ou , Atish Patra , Anup Patel , Will Deacon , Rob Herring , Andrew Jones , =?utf-8?q?R=C3=A9mi_Denis-Courmont?= , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-riscv@lists.infradead.org, linux-arm-kernel@lists.infradead.org Cc: Alexandre Ghiti , Atish Patra Subject: [PATCH v4 04/10] drivers: perf: Rename riscv pmu sbi driver Date: Thu, 27 Jul 2023 16:14:22 +0200 Message-Id: <20230727141428.962286-5-alexghiti@rivosinc.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230727141428.962286-1-alexghiti@rivosinc.com> References: <20230727141428.962286-1-alexghiti@rivosinc.com> MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772585629609647607 X-GMAIL-MSGID: 1772585629609647607 That's just cosmetic, no functional changes. Signed-off-by: Alexandre Ghiti Reviewed-by: Andrew Jones Reviewed-by: Atish Patra --- drivers/perf/riscv_pmu_sbi.c | 4 ++-- include/linux/perf/riscv_pmu.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/perf/riscv_pmu_sbi.c b/drivers/perf/riscv_pmu_sbi.c index 4163ff517471..760eb2afcf82 100644 --- a/drivers/perf/riscv_pmu_sbi.c +++ b/drivers/perf/riscv_pmu_sbi.c @@ -907,7 +907,7 @@ static int pmu_sbi_device_probe(struct platform_device *pdev) static struct platform_driver pmu_sbi_driver = { .probe = pmu_sbi_device_probe, .driver = { - .name = RISCV_PMU_PDEV_NAME, + .name = RISCV_PMU_SBI_PDEV_NAME, }, }; @@ -934,7 +934,7 @@ static int __init pmu_sbi_devinit(void) if (ret) return ret; - pdev = platform_device_register_simple(RISCV_PMU_PDEV_NAME, -1, NULL, 0); + pdev = platform_device_register_simple(RISCV_PMU_SBI_PDEV_NAME, -1, NULL, 0); if (IS_ERR(pdev)) { platform_driver_unregister(&pmu_sbi_driver); return PTR_ERR(pdev); diff --git a/include/linux/perf/riscv_pmu.h b/include/linux/perf/riscv_pmu.h index 9f70d94942e0..5deeea0be7cb 100644 --- a/include/linux/perf/riscv_pmu.h +++ b/include/linux/perf/riscv_pmu.h @@ -21,7 +21,7 @@ #define RISCV_MAX_COUNTERS 64 #define RISCV_OP_UNSUPP (-EOPNOTSUPP) -#define RISCV_PMU_PDEV_NAME "riscv-pmu" +#define RISCV_PMU_SBI_PDEV_NAME "riscv-pmu-sbi" #define RISCV_PMU_LEGACY_PDEV_NAME "riscv-pmu-legacy" #define RISCV_PMU_STOP_FLAG_RESET 1