gem5, ARM64: Enable the CPUFreq framework and corresponding drivers In this changeset we enable the CPUFreq framework, as well as the corresponding gem5 drivers, in the gem5_defconfig for arm64. We enable the following goverors: * Performance (Default) * Powersave * Userspace * Ondemand * Conservative The default governor is Performance as this will not adjust the frequency, and will leave it at the maximum frequency. Therefore, unless the governor is changed, future simulations should run as before. Change-Id: Iffe1734b92cc0421c2844b0e784b0ba34143d28d Signed-off-by: Sascha Bischoff <sascha.bischoff@arm.com> Reviewed-by: Geoffrey Blake <geoffrey.blake@arm.com> Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
diff --git a/arch/arm64/configs/gem5_defconfig b/arch/arm64/configs/gem5_defconfig index e7f96f1..518a64c 100644 --- a/arch/arm64/configs/gem5_defconfig +++ b/arch/arm64/configs/gem5_defconfig
@@ -461,10 +461,25 @@ # # CPU Frequency scaling # -# CONFIG_CPU_FREQ is not set +CONFIG_CPU_FREQ=y +CONFIG_CPU_FREQ_GOV_COMMON=y +CONFIG_CPU_FREQ_STAT=y +CONFIG_CPU_FREQ_STAT_DETAILS=y +CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y +CONFIG_CPU_FREQ_GOV_PERFORMANCE=y +CONFIG_CPU_FREQ_GOV_POWERSAVE=y +CONFIG_CPU_FREQ_GOV_USERSPACE=y +CONFIG_CPU_FREQ_GOV_ONDEMAND=y +CONFIG_CPU_FREQ_GOV_CONSERVATIVE=y CONFIG_NET=y # +# CPU frequency scaling drivers +# +CONFIG_ARM_GEM5_MULTI_CLUSTER_CPUFREQ=y +CONFIG_ARCH_GEM5_ENERGY_CTRL=y + +# # Networking options # CONFIG_PACKET=y @@ -2035,6 +2050,7 @@ CONFIG_COMMON_CLK_XGENE=y # CONFIG_COMMON_CLK_PXA is not set # CONFIG_COMMON_CLK_CDCE706 is not set +CONFIG_GEM5_CPUFREQ_CLK=y # # Hardware Spinlock drivers