From 8d8ceafa62fed6c66a07a04975447432b8b63474 Mon Sep 17 00:00:00 2001 From: Alex Solomatnikov Date: Tue, 6 Feb 2018 11:47:09 -0800 Subject: [PATCH] Enabled HAVE_PERF_EVENTS for RISC-V --- arch/riscv/Kconfig | 1 + arch/riscv/include/asm/Kbuild | 1 + arch/riscv/include/asm/perf_event.h | 13 +++++++++++++ 3 files changed, 15 insertions(+) create mode 100644 arch/riscv/include/asm/perf_event.h diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 2c6adf12713ad..0159e978be29f 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -25,6 +25,7 @@ config RISCV select HAVE_DMA_API_DEBUG select HAVE_DMA_CONTIGUOUS select HAVE_GENERIC_DMA_COHERENT + select HAVE_PERF_EVENTS select IRQ_DOMAIN select NO_BOOTMEM select RISCV_ISA_A if SMP diff --git a/arch/riscv/include/asm/Kbuild b/arch/riscv/include/asm/Kbuild index 970460a0b492e..7e278483e7828 100644 --- a/arch/riscv/include/asm/Kbuild +++ b/arch/riscv/include/asm/Kbuild @@ -26,6 +26,7 @@ generic-y += kdebug.h generic-y += kmap_types.h generic-y += kvm_para.h generic-y += local.h +generic-y += local64.h generic-y += mm-arch-hooks.h generic-y += mman.h generic-y += module.h diff --git a/arch/riscv/include/asm/perf_event.h b/arch/riscv/include/asm/perf_event.h new file mode 100644 index 0000000000000..e13d2ff29e83d --- /dev/null +++ b/arch/riscv/include/asm/perf_event.h @@ -0,0 +1,13 @@ +/* + * Copyright (C) 2018 SiFive + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public Licence + * as published by the Free Software Foundation; either version + * 2 of the Licence, or (at your option) any later version. + */ + +#ifndef _ASM_RISCV_PERF_EVENT_H +#define _ASM_RISCV_PERF_EVENT_H + +#endif /* _ASM_RISCV_PERF_EVENT_H */