From patchwork Fri Jun 30 08:30:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Ghiti X-Patchwork-Id: 114618 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:994d:0:b0:3d9:f83d:47d9 with SMTP id k13csp10201251vqr; Fri, 30 Jun 2023 01:43:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlHxNXP4yyBQqH+SYB50UQ5sSxhjw1PLbb3F8lshusRcz/pHXUEuO8uEYIawtsX0ldXFb0on X-Received: by 2002:a17:90b:3706:b0:263:6297:9f73 with SMTP id mg6-20020a17090b370600b0026362979f73mr1981978pjb.1.1688114609389; Fri, 30 Jun 2023 01:43:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688114609; cv=none; d=google.com; s=arc-20160816; b=HDCFmJoE7/BQcq8Nuus7mI7AL7dYtcbX3OwHKc9K9TAGlzpzBX/yMEm4h/d9ms9JgW KItHNrSXtCyO+dWqMyN3+SvAs7rxui4AAJ71T0QqsaSZJeOTh9G4TrCzzs9M5nM0FS3P dDQhZS4EVTitgGSHh2C2gvr7+FXBCS9Hk/iYoFa200T7zRnbAgGTY2G0tlvOlwHs5XvB gCPmhIBA4S9Ti/nA2qDXQbv3msGlqKXVk83Z1AviMQua2HXVcGQnpHv3H5G2Pwt0z/vr sMIs7QrhIp8BXNEG6nFhqmnZVc2paaRrKQaBYvuO5VuJHcjwWmo7q/s96V6oWtBQc5jV W4mQ== 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=4ourpCES+L8D+Sf3DlwDnrKMPgPuj2Rb0Ie1m7RKO9o=; fh=hmFTrdz0WFr12osTIIcQLHDbvk92COvsNanUuMWqfoU=; b=qegCQQpOrMQZ9wpHaN5Et7FZlZBDInxF0B2tFppSOS5HG5VRU6jcvqhTfVxk8DwmB5 CY0k7jBND4v20odPTsiTwkHciuq/GncViufEp2KHXDNUi3c8kE9xouNbbXvKrg0fEUmY +xWeEWbhwXXN3J60wp66qOe/vs09XPXcu47xFnVH2S0yYuM8uRuxXQcOoUlJ+rZ1duCk tBQHxDYfp0LAldLaHXs++GkOAK31Unf87GF7hkU07+BMJLFuVgUEoTdwu6A4SarVDyUc 7FM4DBKXEUocuPb0VAmA2N8+yTx9X7V0wCqg4nxf8/t2S4k/gUydOOdWZXy+5E1XDBsg H3iA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=0KLssk8H; 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 me10-20020a17090b17ca00b0025c1af5672fsi13160576pjb.112.2023.06.30.01.43.15; Fri, 30 Jun 2023 01:43:29 -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=0KLssk8H; 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 S231718AbjF3IgL (ORCPT + 99 others); Fri, 30 Jun 2023 04:36:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232375AbjF3Ifr (ORCPT ); Fri, 30 Jun 2023 04:35:47 -0400 Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C34735BD for ; Fri, 30 Jun 2023 01:35:46 -0700 (PDT) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-4f973035d60so2607886e87.3 for ; Fri, 30 Jun 2023 01:35:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1688114144; x=1690706144; 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=4ourpCES+L8D+Sf3DlwDnrKMPgPuj2Rb0Ie1m7RKO9o=; b=0KLssk8HRfE90130xKoKTzd8QqIpNNmEGYyeL+ivfM59890lBfIuxPh/YTTtxMCeJu HilIlZL6yYJHT+NSdn2sWN1C3I33DwQxN5PPXQk69+hLlbGiOnTa3XOfshkprJru9dCp AeDmMl1VoQDpxwaI+8E2wJD1THYAUCwr1Zaa0GHElk3IDp8gkCxpUazrlnegNSdrthgC JBuREIxskFXjzwLrlDfKLochEuX5EBp/lfz3dW1Ko/jbOkZn5tzbNH7Xy/WEQlTW29Mw zbe10nFdCWzgoKjjn4/cjhnuLG9yl9b+oDWEOXNbIRq2mQX+Hv0MyM55crAam+humX+M /6LQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688114144; x=1690706144; 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=4ourpCES+L8D+Sf3DlwDnrKMPgPuj2Rb0Ie1m7RKO9o=; b=USCZW7w4kFn/wUpcKu4QG83Is2n2g8FOOivATw33cn5EDkL2MNwRmHbV7Cw3JmC7Q/ sai3EqG/QOx+ouKrnUZR3WMb9LZ6pxy0nHdQFdQjpBRvLhQ/pb+mw/wVJ8ELiH9v90m4 E3DIwCz+ZRuBUWv7PmyIa9NrFS6qTjaE8X7x3cQGhhrFau9Nv/Nrg0gqpM735vdoN0u9 OtGX3m7vFs6OLozHo1AcoEUGydXUGS+N7x+QY25z//2kA0Ss+imkWpe91oib81ajlKKE DmYJISVLzFOpmvPr2tzE5/3An9UVlKBRL82WwQO00cP4koOPJPG5/IcjMxoxZeRetUed xTzw== X-Gm-Message-State: ABy/qLZK8+lxpFBBgfaY7wPE6WKYwTYASfL/ynDeAZvAklBq6kAGZAmm PdGipNWs05mnCtOmu0snfd8+kfelRao6Cl6Iec8= X-Received: by 2002:a19:9110:0:b0:4fb:8ee0:b8a5 with SMTP id t16-20020a199110000000b004fb8ee0b8a5mr1396269lfd.46.1688114144613; Fri, 30 Jun 2023 01:35:44 -0700 (PDT) Received: from alex-rivos.ba.rivosinc.com (amontpellier-656-1-456-62.w92-145.abo.wanadoo.fr. [92.145.124.62]) by smtp.gmail.com with ESMTPSA id s15-20020adfeccf000000b003127741d7desm6286799wro.58.2023.06.30.01.35.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Jun 2023 01:35:44 -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 , 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 Subject: [PATCH v3 04/10] drivers: perf: Rename riscv pmu sbi driver Date: Fri, 30 Jun 2023 10:30:07 +0200 Message-Id: <20230630083013.102334-5-alexghiti@rivosinc.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230630083013.102334-1-alexghiti@rivosinc.com> References: <20230630083013.102334-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=unavailable 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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1770116464629640414?= X-GMAIL-MSGID: =?utf-8?q?1770116464629640414?= That's just cosmetic, no functional changes. Signed-off-by: Alexandre Ghiti Reviewed-by: Andrew Jones --- 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 4f3ac296b3e2..83c3f1c4d2f1 100644 --- a/drivers/perf/riscv_pmu_sbi.c +++ b/drivers/perf/riscv_pmu_sbi.c @@ -914,7 +914,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, }, }; @@ -941,7 +941,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