forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/kernel/sched/features.h
....@@ -39,18 +39,25 @@
3939
4040 SCHED_FEAT(HRTICK, false)
4141 SCHED_FEAT(DOUBLE_TICK, false)
42
-SCHED_FEAT(LB_BIAS, true)
4342
4443 /*
4544 * Decrement CPU capacity based on time not spent running tasks
4645 */
4746 SCHED_FEAT(NONTASK_CAPACITY, true)
4847
48
+#ifdef CONFIG_PREEMPT_RT
49
+SCHED_FEAT(TTWU_QUEUE, false)
50
+# ifdef CONFIG_PREEMPT_LAZY
51
+SCHED_FEAT(PREEMPT_LAZY, true)
52
+# endif
53
+#else
54
+
4955 /*
5056 * Queue remote wakeups on the target CPU and process them
5157 * using the scheduler IPI. Reduces rq->lock contention/bounces.
5258 */
5359 SCHED_FEAT(TTWU_QUEUE, true)
60
+#endif
5461
5562 /*
5663 * When doing wakeups, attempt to limit superfluous scans of the LLC domain.
....@@ -78,7 +85,7 @@
7885 SCHED_FEAT(RT_PUSH_IPI, true)
7986 #endif
8087
81
-SCHED_FEAT(RT_RUNTIME_SHARE, true)
88
+SCHED_FEAT(RT_RUNTIME_SHARE, false)
8289 SCHED_FEAT(LB_MIN, false)
8390 SCHED_FEAT(ATTACH_AGE_LOAD, true)
8491
....@@ -92,32 +99,5 @@
9299 SCHED_FEAT(UTIL_EST, true)
93100 SCHED_FEAT(UTIL_EST_FASTUP, true)
94101
95
-/*
96
- * Fast pre-selection of CPU candidates for EAS.
97
- */
98
-SCHED_FEAT(FIND_BEST_TARGET, false)
99
-
100
-/*
101
- * Energy aware scheduling algorithm choices:
102
- * EAS_PREFER_IDLE
103
- * Direct tasks in a schedtune.prefer_idle=1 group through
104
- * the EAS path for wakeup task placement. Otherwise, put
105
- * those tasks through the mainline slow path.
106
- */
107
-SCHED_FEAT(EAS_PREFER_IDLE, true)
108
-
109
-/*
110
- * Request max frequency from schedutil whenever a RT task is running.
111
- */
112
-SCHED_FEAT(SUGOV_RT_MAX_FREQ, false)
113
-
114
-/*
115
- * Apply schedtune boost hold to tasks of all sched classes.
116
- * If enabled, schedtune will hold the boost applied to a CPU
117
- * for 50ms regardless of task activation - if the task is
118
- * still running 50ms later, the boost hold expires and schedtune
119
- * boost will expire immediately the task stops.
120
- * If disabled, this behaviour will only apply to tasks of the
121
- * RT class.
122
- */
123
-SCHED_FEAT(SCHEDTUNE_BOOST_HOLD_ALL, false)
102
+SCHED_FEAT(ALT_PERIOD, true)
103
+SCHED_FEAT(BASE_SLICE, true)