cpuset: Move cpuset override values to Kconfig
The new selection of config options are tailored for the cpusets found on stock sm8150 CAF ROMs. Default values were also taken from sm8150. Signed-off-by: Danny Lin <danny@kdrag0n.dev> Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
This commit is contained in:
committed by
UtsavBalar1231
parent
04eada3a89
commit
edbf67e199
46
init/Kconfig
46
init/Kconfig
@@ -1124,6 +1124,52 @@ config CPUSETS_ASSIST
|
||||
|
||||
If unsure, say N.
|
||||
|
||||
if CPUSETS_ASSIST
|
||||
|
||||
config CPUSET_AUDIO_APP
|
||||
string "Value for 'audio-app' cpuset"
|
||||
default "1-2"
|
||||
help
|
||||
The CPU mask to use for the audio-app cpuset.
|
||||
|
||||
config CPUSET_BG
|
||||
string "Value for 'background' cpuset"
|
||||
default "0-3"
|
||||
help
|
||||
The CPU mask to use for the audio-app cpuset.
|
||||
|
||||
config CPUSET_CAMERA
|
||||
string "Value for 'camera-daemon' cpuset"
|
||||
default "4-7"
|
||||
help
|
||||
The CPU mask to use for the audio-app cpuset.
|
||||
|
||||
config CPUSET_FG
|
||||
string "Value for 'foreground' cpuset"
|
||||
default "0-7"
|
||||
help
|
||||
The CPU mask to use for the audio-app cpuset.
|
||||
|
||||
config CPUSET_RESTRICTED
|
||||
string "Value for 'restricted' cpuset"
|
||||
default "0-7"
|
||||
help
|
||||
The CPU mask to use for the audio-app cpuset.
|
||||
|
||||
config CPUSET_SYSTEM_BG
|
||||
string "Value for 'system-background' cpuset"
|
||||
default "0-3"
|
||||
help
|
||||
The CPU mask to use for the audio-app cpuset.
|
||||
|
||||
config CPUSET_TOP_APP
|
||||
string "Value for 'top-app' cpuset"
|
||||
default "0-7"
|
||||
help
|
||||
The CPU mask to use for the audio-app cpuset.
|
||||
|
||||
endif
|
||||
|
||||
config DEFAULT_USE_ENERGY_AWARE
|
||||
bool "Default to enabling the Energy Aware Scheduler feature"
|
||||
default n
|
||||
|
||||
@@ -1787,13 +1787,13 @@ static ssize_t cpuset_write_resmask_wrapper(struct kernfs_open_file *of,
|
||||
{
|
||||
#ifdef CONFIG_CPUSETS_ASSIST
|
||||
static struct cs_target cs_targets[] = {
|
||||
/* Little-only cpusets go first */
|
||||
{ "foreground", "0-5" },
|
||||
{ "background", "0-2" },
|
||||
{ "system-background", "0-3" },
|
||||
{ "restricted", "0-5" },
|
||||
{ "top-app", "0-7" },
|
||||
{ "camera-daemon", "0-3,6-7" },
|
||||
{ "audio-app", CONFIG_CPUSET_AUDIO_APP },
|
||||
{ "background", CONFIG_CPUSET_BG },
|
||||
{ "camera-daemon", CONFIG_CPUSET_CAMERA },
|
||||
{ "foreground", CONFIG_CPUSET_FG },
|
||||
{ "restricted", CONFIG_CPUSET_RESTRICTED },
|
||||
{ "system-background", CONFIG_CPUSET_SYSTEM_BG },
|
||||
{ "top-app", CONFIG_CPUSET_TOP_APP },
|
||||
};
|
||||
struct cpuset *cs = css_cs(of_css(of));
|
||||
int i;
|
||||
|
||||
Reference in New Issue
Block a user