From bd965b87088a4c7ef994d771fe32dcc566859284 Mon Sep 17 00:00:00 2001 From: lean Date: Wed, 9 Mar 2022 20:46:12 +0800 Subject: [PATCH] rockchip: add ondemond gov --- .../armv8/base-files/etc/hotplug.d/usb/15-usb-wifi-config | 4 ---- target/linux/rockchip/armv8/config-5.15 | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/target/linux/rockchip/armv8/base-files/etc/hotplug.d/usb/15-usb-wifi-config b/target/linux/rockchip/armv8/base-files/etc/hotplug.d/usb/15-usb-wifi-config index a3c5d77cd..5ad4c417a 100755 --- a/target/linux/rockchip/armv8/base-files/etc/hotplug.d/usb/15-usb-wifi-config +++ b/target/linux/rockchip/armv8/base-files/etc/hotplug.d/usb/15-usb-wifi-config @@ -4,7 +4,3 @@ if [ "${ACTION}" = "add" ]; then sleep 5 [ -n "$(cat /proc/net/wireless | grep wlan)" ] && wifi config && wifi fi -if [ "${ACTION}" = "remove" ]; then - sleep 5 - [ -z "$(cat /proc/net/wireless | grep wlan)" ] && rm /etc/config/wireless -fi \ No newline at end of file diff --git a/target/linux/rockchip/armv8/config-5.15 b/target/linux/rockchip/armv8/config-5.15 index 8f8f76484..e9d35111d 100644 --- a/target/linux/rockchip/armv8/config-5.15 +++ b/target/linux/rockchip/armv8/config-5.15 @@ -138,10 +138,10 @@ CONFIG_CPUFREQ_DT=y CONFIG_CPUFREQ_DT_PLATDEV=y CONFIG_CPU_FREQ=y # CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set -CONFIG_CPU_FREQ_DEFAULT_GOV_SCHEDUTIL=y +CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y CONFIG_CPU_FREQ_GOV_ATTR_SET=y # CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set -# CONFIG_CPU_FREQ_GOV_ONDEMAND is not set +CONFIG_CPU_FREQ_GOV_ONDEMAND=y CONFIG_CPU_FREQ_GOV_PERFORMANCE=y CONFIG_CPU_FREQ_GOV_POWERSAVE=y CONFIG_CPU_FREQ_GOV_SCHEDUTIL=y