Skip to contentSkip to conversation

sched/fair: Polish comments for LOAD_AVG_MAX

PATCH New Leo Yan 2 participants 2 messages Sep 15, 2015 – Sep 18, 2015 Scheduler

lore
Share & tools
lore

Leo Yan

author
#0 lore raw

PATCH 1/1 sched/fair: Polish comments for LOAD_AVG_MAX

Macro LOAD_AVG_MAX is defined far away from the precompuated tables for decay calculation in code; So explicitly comments for this.

Also fix one typo: s/LOAD_MAX_AVG/LOAD_AVG_MAX.

---
 kernel/sched/fair.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
kernel/sched/fair.c +3 -2
index 6e2e348..b716e23 100644
@@ -661,11 +661,12 @@ static unsigned long task_h_load(struct task_struct *p);
 
 /*
  * We choose a half-life close to 1 scheduling period.
- * Note: The tables below are dependent on this value.
+ * Note: The tables runnable_avg_yN_inv and runnable_avg_yN_sum are
+ * dependent on this value.
  */
 #define LOAD_AVG_PERIOD 32
 #define LOAD_AVG_MAX 47742 /* maximum possible load avg */
-#define LOAD_AVG_MAX_N 345 /* number of full periods to produce LOAD_MAX_AVG */
+#define LOAD_AVG_MAX_N 345 /* number of full periods to produce LOAD_AVG_MAX */
 
 /* Give new sched_entity start runnable values to heavy its load in infant time */
 void init_entity_runnable_average(struct sched_entity *se)
Signature · 1 line
1.9.1
#1 lore raw
sched/fair: Polish comments for LOAD_AVG_MAX
Commit-ID:  84fb5a182d39221b89f205365386df243135d622
Gitweb:     http://git.kernel.org/tip/84fb5a182d39221b89f205365386df243135d622
Author:     Leo Yan <[email protected]>
AuthorDate: Tue, 15 Sep 2015 18:57:37 +0800
Committer:  Ingo Molnar <[email protected]>
CommitDate: Fri, 18 Sep 2015 09:23:15 +0200

sched/fair: Polish comments for LOAD_AVG_MAX

Macro LOAD_AVG_MAX is defined far away from the precompuated tables for decay calculation in code; So explicitly comments for this.

Also fix one typo: s/LOAD_MAX_AVG/LOAD_AVG_MAX.

---
 kernel/sched/fair.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
kernel/sched/fair.c +3 -2
index 1bfad9f..80c62bf 100644
@@ -661,11 +661,12 @@ static unsigned long task_h_load(struct task_struct *p);
 
 /*
  * We choose a half-life close to 1 scheduling period.
- * Note: The tables below are dependent on this value.
+ * Note: The tables runnable_avg_yN_inv and runnable_avg_yN_sum are
+ * dependent on this value.
  */
 #define LOAD_AVG_PERIOD 32
 #define LOAD_AVG_MAX 47742 /* maximum possible load avg */
-#define LOAD_AVG_MAX_N 345 /* number of full periods to produce LOAD_MAX_AVG */
+#define LOAD_AVG_MAX_N 345 /* number of full periods to produce LOAD_AVG_MAX */
 
 /* Give new sched_entity start runnable values to heavy its load in infant time */
 void init_entity_runnable_average(struct sched_entity *se)