Skip to content

Commit

Permalink
CONFIG_SCHED_HMP (r22)
Browse files Browse the repository at this point in the history
  • Loading branch information
followmsi committed Mar 26, 2019
1 parent 0e0c87d commit b04140a
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 5 deletions.
9 changes: 8 additions & 1 deletion arch/arm64/configs/lineage-gtaxllte_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ CONFIG_FAIR_GROUP_SCHED=y
# CONFIG_CFS_BANDWIDTH is not set
CONFIG_RT_GROUP_SCHED=y
# CONFIG_BLK_CGROUP is not set
CONFIG_SCHED_HMP=y
# CONFIG_CHECKPOINT_RESTORE is not set
CONFIG_NAMESPACES=y
CONFIG_UTS_NS=y
Expand Down Expand Up @@ -350,6 +351,12 @@ CONFIG_ARM64_VA_BITS=39
CONFIG_SCHED_MC=y
# CONFIG_SCHED_SMT is not set
# CONFIG_DISABLE_CPU_SCHED_DOMAIN_BALANCE is not set
# CONFIG_SCHED_HMP_PRIO_FILTER is not set
CONFIG_HMP_FAST_CPU_MASK="4-7"
CONFIG_HMP_SLOW_CPU_MASK="0-3"
CONFIG_HMP_VARIABLE_SCALE=y
CONFIG_HMP_FREQUENCY_INVARIANT_SCALE=y
# CONFIG_SCHED_HMP_LITTLE_PACKING is not set
CONFIG_NR_CPUS=8
CONFIG_HOTPLUG_CPU=y
# CONFIG_PREEMPT_NONE is not set
Expand Down Expand Up @@ -3772,7 +3779,7 @@ CONFIG_ECT=y
CONFIG_ECT_DUMP=y
CONFIG_EXYNOS_CONTENT_PATH_PROTECTION=y
CONFIG_SCHED_AVG_NR_RUNNING=y
CONFIG_EXYNOS_HOTPLUG_GOVERNOR=y
# CONFIG_EXYNOS_HOTPLUG_GOVERNOR is not set
CONFIG_EXYNOS_MCINFO=y
CONFIG_MCINFO_SYSFS=y
# CONFIG_SEC_INCELL is not set
Expand Down
9 changes: 8 additions & 1 deletion arch/arm64/configs/lineage-gtaxlwifi_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ CONFIG_FAIR_GROUP_SCHED=y
# CONFIG_CFS_BANDWIDTH is not set
CONFIG_RT_GROUP_SCHED=y
# CONFIG_BLK_CGROUP is not set
CONFIG_SCHED_HMP=y
# CONFIG_CHECKPOINT_RESTORE is not set
CONFIG_NAMESPACES=y
CONFIG_UTS_NS=y
Expand Down Expand Up @@ -350,6 +351,12 @@ CONFIG_ARM64_VA_BITS=39
CONFIG_SCHED_MC=y
# CONFIG_SCHED_SMT is not set
# CONFIG_DISABLE_CPU_SCHED_DOMAIN_BALANCE is not set
# CONFIG_SCHED_HMP_PRIO_FILTER is not set
CONFIG_HMP_FAST_CPU_MASK="4-7"
CONFIG_HMP_SLOW_CPU_MASK="0-3"
CONFIG_HMP_VARIABLE_SCALE=y
CONFIG_HMP_FREQUENCY_INVARIANT_SCALE=y
# CONFIG_SCHED_HMP_LITTLE_PACKING is not set
CONFIG_NR_CPUS=8
CONFIG_HOTPLUG_CPU=y
# CONFIG_PREEMPT_NONE is not set
Expand Down Expand Up @@ -3770,7 +3777,7 @@ CONFIG_ECT=y
CONFIG_ECT_DUMP=y
CONFIG_EXYNOS_CONTENT_PATH_PROTECTION=y
CONFIG_SCHED_AVG_NR_RUNNING=y
CONFIG_EXYNOS_HOTPLUG_GOVERNOR=y
# CONFIG_EXYNOS_HOTPLUG_GOVERNOR is not set
CONFIG_EXYNOS_MCINFO=y
CONFIG_MCINFO_SYSFS=y
# CONFIG_SEC_INCELL is not set
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,9 @@ int kbase_backend_timer_init(struct kbase_device *kbdev)
HRTIMER_MODE_REL);
backend->scheduling_timer.function = timer_callback;
/* MALI_SEC_INTEGRATION */
#ifdef CONFIG_SCHED_HMP
backend->scheduling_timer.bounded_to_boot_cluster = true;
#endif
//#ifdef CONFIG_SCHED_HMP
// backend->scheduling_timer.bounded_to_boot_cluster = true;
//#endif

backend->timer_running = false;

Expand Down
9 changes: 9 additions & 0 deletions init/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1175,6 +1175,15 @@ config DEBUG_BLK_CGROUP

endif # CGROUPS

config SCHED_HMP
bool "Scheduler support for heterogenous multi-processor systems"
depends on SMP && FAIR_GROUP_SCHED
help
This feature will let the scheduler optimize task placement on
systems made of heterogeneous cpus i.e cpus that differ either
in their instructions per-cycle capability or the maximum
frequency they can attain.

config CHECKPOINT_RESTORE
bool "Checkpoint/restore support" if EXPERT
default n
Expand Down

0 comments on commit b04140a

Please sign in to comment.