[PATCH v2 2/2] riscv: add HARDLOCKUP_DETECTOR_PERF support
Doug Anderson
dianders at chromium.org
Thu Sep 25 12:59:35 PDT 2025
Hi,
On Thu, Sep 25, 2025 at 1:48 AM Yunhui Cui <cuiyunhui at bytedance.com> wrote:
>
> Enable the HARDLOCKUP_DETECTOR_PERF function based on RISC-V SSE.
>
> Signed-off-by: Yunhui Cui <cuiyunhui at bytedance.com>
> ---
> arch/riscv/Kconfig | 3 +++
> drivers/perf/riscv_pmu_sbi.c | 10 ++++++++++
> 2 files changed, 13 insertions(+)
>
> diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig
> index badbb2b366946..bb4e8c5a18717 100644
> --- a/arch/riscv/Kconfig
> +++ b/arch/riscv/Kconfig
> @@ -186,6 +186,9 @@ config RISCV
> select HAVE_PAGE_SIZE_4KB
> select HAVE_PCI
> select HAVE_PERF_EVENTS
> + select PERF_EVENTS
I don't think you want to select this, do you? Just depend on it?
Other than that, this looks good to me.
-Doug
More information about the linux-riscv
mailing list