pass: Add description of properties in the PASS's level 70/147970/2
authorChanwoo Choi <cw00.choi@samsung.com>
Wed, 6 Sep 2017 06:31:25 +0000 (15:31 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Thu, 7 Sep 2017 04:57:19 +0000 (13:57 +0900)
This patch adds the detailed description for properties
in the PASS's level and removes the unused 'comm_cond' variable.

Change-Id: Iee4e3ce9b3b789b5b2d84e3edb10b4122308e595
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/pass/pass.h

index 67c561097bc3bf716a1de07ee6c71cc6a0868ecd..18a03e7cff6a3ca1eeb07ba04e15d29404461423 100644 (file)
@@ -148,17 +148,48 @@ struct pass_level_condition {
        int avg_load;
 };
 
+/*
+ * struct pass_table - Represent the PASS's level
+ *
+ * @limit_max_freq: the limited maximum frequency
+ *     this property is used for the following resoures:
+ *     - PASS_RESOURCE_CPU_ID
+ *     - PASS_RESOURCE_BUS_ID
+ *     - PASS_RESOURCE_GPU_ID
+ * @limit_min_freq: the limited minimum frequency
+ *     this property is used for the following resoures:
+ *     - PASS_RESOURCE_CPU_ID
+ *     - PASS_RESOURCE_BUS_ID
+ *     - PASS_RESOURCE_GPU_ID
+ * @limit_min_cpu: the minimum number of online CPUs
+ *     this property is used for the following resoures:
+ *     - PASS_RESOURCE_CPU_ID
+ *     - PASS_RESOURCE_BUS_ID
+ *     - PASS_RESOURCE_GPU_ID
+ *
+ * @gov_timeout: the period of timer for each PASS's level
+ *     this property is used for the following resoures:
+ *     - PASS_RESOURCE_CPU_ID
+ *
+ * @{up|down|left|right}_cond: the conditions to move next PASS's level
+ *     these properties are used for the following resoures and
+ *     they are valid when governor type is either GOV_RADIATION or GOV_STEP.
+ *     - PASS_RESOURCE_CPU_ID
+ * @num_{up|down|left|right}: the number of conditions
+ *     these properties are used for the following resoures and
+ *     they are valid when governor type is either GOV_RADIATION or GOV_STEP.
+ *     - PASS_RESOURCE_CPU_ID
+ */
 struct pass_table {
-       /* Constraints condition for powersaving */
+       /* Properties for the h/w resources */
        int limit_max_freq;
        int limit_min_freq;
        int limit_min_cpu;
 
-       /* Governor timer's timeout for each pass level */
+       /* Properties for the timer */
        double gov_timeout;
 
-       /* Condition to determine up/down of pass level */
-       struct pass_level_condition comm_cond;
+       /* Properties for the GOV_RADIATION or GOV_STEP governor */
        struct pass_level_condition up_cond[PASS_LEVEL_COND_MAX];
        struct pass_level_condition down_cond[PASS_LEVEL_COND_MAX];
        struct pass_level_condition left_cond[PASS_LEVEL_COND_MAX];