From 57c56bce4789d26c122ed055b8a55d79040df2e6 Mon Sep 17 00:00:00 2001 From: Arseniy Krasnov Date: Fri, 6 Nov 2015 12:02:35 +0000 Subject: [PATCH] hperf_hmp: add new config for arm and arm64. adds the following options: 'HPERF_HMP_DEBUG': enables extra runtime checks of balancing parameteres. 'HMP_FAST_CPU_MASK': CPU mask of A15 cluster(in hex string). 'HMP_SLOW_CPU_MASK': CPU mask of A7 cluster(in hex string). Signed-off-by: Tarek Dakhran samsung.com> Signed-off-by: Sergey Dyasly samsung.com> Signed-off-by: Dmitriy Safonov partner.samsung.com> Signed-off-by: Arseniy Krasnov samsung.com> Signed-off-by: Ilya Maximets samsung.com> Signed-off-by: memeka --- arch/arm/Kconfig | 21 +++++++++++++++++++++ arch/arm64/Kconfig | 21 +++++++++++++++++++++ 2 files changed, 42 insertions(+) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index b5d529fdffab..5d19e03ee8ba 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -1351,6 +1351,27 @@ config SCHED_MC making when dealing with multi-core CPU chips at a cost of slightly increased overhead in some places. If unsure say N here. +config HPERF_HMP + bool "HPERF_HMP load balancing enhancements for ARM big.LITTLE" + select SCHED_MC + help + Uses HPERF_HMP load balancing algorithm between A7 and A15 CPU domains. + +config HPERF_HMP_DEBUG + bool "Additional HPERF_HMP runtime debug checks" + depends on HPERF_HMP + default n + +config HMP_FAST_CPU_MASK + string "Fast (Cortex-A15) CPU mask for HPERF_HMP" + default "" + depends on HPERF_HMP + +config HMP_SLOW_CPU_MASK + string "Slow (Cortex-A7) CPU mask for HPERF_HMP" + default "" + depends on HPERF_HMP + config SCHED_SMT bool "SMT scheduler support" depends on ARM_CPU_TOPOLOGY diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 969ef880d234..0d2c7127207d 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -556,6 +556,27 @@ config SCHED_MC making when dealing with multi-core CPU chips at a cost of slightly increased overhead in some places. If unsure say N here. +config HPERF_HMP + bool "HPERF_HMP load balancing enhancements for ARM big.LITTLE" + select SCHED_MC + help + Uses HPERF_HMP load balancing algorithm between A7 and A15 CPU domains. + +config HPERF_HMP_DEBUG + bool "Additional HPERF_HMP runtime debug checks" + depends on HPERF_HMP + default n + +config HMP_FAST_CPU_MASK + string "Fast (Cortex-A15) CPU mask for HPERF_HMP" + default "" + depends on HPERF_HMP + +config HMP_SLOW_CPU_MASK + string "Slow (Cortex-A7) CPU mask for HPERF_HMP" + default "" + depends on HPERF_HMP + config SCHED_SMT bool "SMT scheduler support" help