diff options
author | Guo Ren <ren_guo@c-sky.com> | 2019-01-02 22:09:25 +0800 |
---|---|---|
committer | Guo Ren <ren_guo@c-sky.com> | 2019-01-02 22:17:11 +0800 |
commit | f50fd2d8524c15b08da9e7e9d84752f0f1be7172 (patch) | |
tree | 063f9ff5983ddf5973269d8386245b5329766e28 /arch/csky/Kconfig | |
parent | 6256734f9173b19e8dd1e21e04b1398a0137f99b (diff) | |
download | linux-f50fd2d8524c15b08da9e7e9d84752f0f1be7172.tar.bz2 |
csky: Add perf support for C-SKY
This adds basic perf support for all C-SKY CPUs. Hardware events are
only supported by 807/810/860.
Signed-off-by: Guo Ren <ren_guo@c-sky.com>
Diffstat (limited to 'arch/csky/Kconfig')
-rw-r--r-- | arch/csky/Kconfig | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/arch/csky/Kconfig b/arch/csky/Kconfig index 6e814772d72e..7689b54d4236 100644 --- a/arch/csky/Kconfig +++ b/arch/csky/Kconfig @@ -35,6 +35,7 @@ config CSKY select HAVE_KERNEL_GZIP select HAVE_KERNEL_LZO select HAVE_KERNEL_LZMA + select HAVE_PERF_EVENTS select HAVE_C_RECORDMCOUNT select HAVE_DMA_API_DEBUG select HAVE_DMA_CONTIGUOUS @@ -43,7 +44,7 @@ config CSKY select OF select OF_EARLY_FLATTREE select OF_RESERVED_MEM - select PERF_USE_VMALLOC + select PERF_USE_VMALLOC if CPU_CK610 select RTC_LIB select TIMER_OF select USB_ARCH_HAS_EHCI @@ -151,6 +152,19 @@ config CPU_CK860 endchoice choice + prompt "C-SKY PMU type" + depends on PERF_EVENTS + depends on CPU_CK807 || CPU_CK810 || CPU_CK860 + +config CPU_PMU_NONE + bool "None" + +config CSKY_PMU_V1 + bool "Performance Monitoring Unit Ver.1" + +endchoice + +choice prompt "Power Manager Instruction (wait/doze/stop)" default CPU_PM_NONE |