From 327402e1e90e690ff7036a38dafae5251539629a Mon Sep 17 00:00:00 2001 From: Rick Yiu Date: Wed, 14 Apr 2021 08:55:44 +0800 Subject: [PATCH] ANDROID: GKI: Change UCLAMP_BUCKETS_COUNT to 20 Using the default setting 5 means the first bucket contains the uclamp values from 0 to 19 (in percentage), in this case, if the uclamp.min setting of a group is under 20, it will fall into this bucket with other groups that have uclamp.min set to 0, which increase the possibility of over boost. By setting the bucket count to 20 will ease this situation, while a uclamp.min greater than 4 will fall into a different bucket. Bug: 170487162 Signed-off-by: Rick Yiu Change-Id: Ife96b199bee36faedc8e129ade17e475cdbe44e0 --- arch/arm64/configs/gki_defconfig | 1 + arch/x86/configs/gki_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm64/configs/gki_defconfig b/arch/arm64/configs/gki_defconfig index 2b80053258ca..cbe0f38c1797 100644 --- a/arch/arm64/configs/gki_defconfig +++ b/arch/arm64/configs/gki_defconfig @@ -13,6 +13,7 @@ CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y CONFIG_IKHEADERS=y CONFIG_UCLAMP_TASK=y +CONFIG_UCLAMP_BUCKETS_COUNT=20 CONFIG_CGROUPS=y CONFIG_BLK_CGROUP=y CONFIG_CGROUP_SCHED=y diff --git a/arch/x86/configs/gki_defconfig b/arch/x86/configs/gki_defconfig index 7a4ba70e0db1..b6d46d112883 100644 --- a/arch/x86/configs/gki_defconfig +++ b/arch/x86/configs/gki_defconfig @@ -15,6 +15,7 @@ CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y CONFIG_IKHEADERS=y CONFIG_UCLAMP_TASK=y +CONFIG_UCLAMP_BUCKETS_COUNT=20 CONFIG_CGROUPS=y CONFIG_BLK_CGROUP=y CONFIG_CGROUP_SCHED=y