Loading libcutils/include/cutils/sched_policy.h +1 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ extern bool cpusets_enabled(); * Check if Linux kernel enables SCHEDTUNE feature (only available in Android * common kernel or Linaro LSK, not in mainline Linux as of v4.9) * * Return value: 1 if Linux kernel CONFIG_SCHEDTUNE=y; 0 otherwise. * Return value: 1 if Linux kernel CONFIG_CGROUP_SCHEDTUNE=y; 0 otherwise. */ extern bool schedboost_enabled(); Loading libcutils/sched_policy.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -136,7 +136,7 @@ bool cpusets_enabled() { /* Similar to CONFIG_CPUSETS above, but with a different configuration CONFIG_SCHEDTUNE that's in Android common Linux kernel and Linaro CONFIG_CGROUP_SCHEDTUNE that's in Android common Linux kernel and Linaro Stable Kernel (LSK), but not in mainline Linux as of v4.9. With runtime check using the following function, build time Loading Loading
libcutils/include/cutils/sched_policy.h +1 −1 Original line number Diff line number Diff line Loading @@ -34,7 +34,7 @@ extern bool cpusets_enabled(); * Check if Linux kernel enables SCHEDTUNE feature (only available in Android * common kernel or Linaro LSK, not in mainline Linux as of v4.9) * * Return value: 1 if Linux kernel CONFIG_SCHEDTUNE=y; 0 otherwise. * Return value: 1 if Linux kernel CONFIG_CGROUP_SCHEDTUNE=y; 0 otherwise. */ extern bool schedboost_enabled(); Loading
libcutils/sched_policy.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -136,7 +136,7 @@ bool cpusets_enabled() { /* Similar to CONFIG_CPUSETS above, but with a different configuration CONFIG_SCHEDTUNE that's in Android common Linux kernel and Linaro CONFIG_CGROUP_SCHEDTUNE that's in Android common Linux kernel and Linaro Stable Kernel (LSK), but not in mainline Linux as of v4.9. With runtime check using the following function, build time Loading