core_ctrl: Move core control into kernel

Move core control from out-of-tree module into the kernel proper.

Core control monitors load on CPUs and controls how many CPUs are
available for the system to use at any point in time. This can help save
power. Core control can be configured through sysfs interface.

Signed-off-by: Olav Haugan <ohaugan@codeaurora.org>
[markivx: Fixed trivial makefile conflict]
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>

Change-Id: I491d584da0d5068fb11c8df556d9a1683bf418c7
Signed-off-by: Satya Durga Srinivasu Prabhala <satyap@codeaurora.org>
tirimbino
Olav Haugan 9 years ago committed by Gerrit - the friendly Code Review server
parent 17e12d32da
commit e920e0b545
  1. 10
      init/Kconfig
  2. 1
      kernel/sched/Makefile
  3. 1014
      kernel/sched/core_ctl.c

@ -890,6 +890,16 @@ config SOCK_CGROUP_DATA
endif # CGROUPS
config SCHED_CORE_CTL
bool "QTI Core Control"
depends on SMP
help
This options enables the core control functionality in
the scheduler. Core control automatically offline and
online cores based on cpu load and utilization.
If unsure, say N here.
config CHECKPOINT_RESTORE
bool "Checkpoint/restore support" if EXPERT
select PROC_CHILDREN

@ -30,3 +30,4 @@ obj-$(CONFIG_CGROUP_CPUACCT) += cpuacct.o
obj-$(CONFIG_CPU_FREQ) += cpufreq.o
obj-$(CONFIG_CPU_FREQ_GOV_SCHEDUTIL) += cpufreq_schedutil.o
obj-$(CONFIG_MEMBARRIER) += membarrier.o
obj-$(CONFIG_SCHED_CORE_CTL) += core_ctl.o

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save