pass: hal: Add description for helper functions 76/136376/3
authorChanwoo Choi <cw00.choi@samsung.com>
Mon, 26 Jun 2017 09:00:34 +0000 (18:00 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 4 Jul 2017 08:25:44 +0000 (17:25 +0900)
This patch adds the simple description for helper functions
in order to improve the readability for the supported range of functions.

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

index 6700eea..de4157b 100644 (file)
 
 #include "hal/hal.h"
 
+/***
+ * Functions for all H/W resources
+ */
+/* Get and put the h/w resource. */
+int pass_get_resource(struct pass *pass);
+int pass_put_resource(struct pass *pass);
+
+/***
+ * Functions for CPU/BUS/GPU H/W resources
+ */
 /* Get and the current governor. */
 int pass_get_curr_governor(struct pass_resource *res, char *governor);
 int pass_set_curr_governor(struct pass_resource *res, char *governor);
@@ -41,6 +51,13 @@ int pass_set_max_freq(struct pass_resource *res, int freq);
 int pass_get_up_threshold(struct pass_resource *res);
 int pass_set_up_threshold(struct pass_resource *res, int up_threshold);
 
+/* Get the temperature and policy of thermal unit on specific h/w. */
+int pass_get_temp(struct pass_resource *res);
+int pass_get_policy(struct pass_resource *res, char *policy);
+
+/***
+ * Functions for CPU H/W resources
+ */
 /* Get and set online state of cpu. */
 int pass_get_online_state(struct pass_resource *res, int cpu);
 int pass_set_online_state(struct pass_resource *res, int cpu, int on);
@@ -50,15 +67,6 @@ int pass_set_online_min_num(struct pass_resource *res, int num);
 /* Get and set the maximum number of online CPUs */
 int pass_get_online_max_num(struct pass_resource *res);
 int pass_set_online_max_num(struct pass_resource *res, int num);
-
-/* Get the temperature and policy of thermal unit on specific h/w. */
-int pass_get_temp(struct pass_resource *res);
-int pass_get_policy(struct pass_resource *res, char *policy);
-
-/* Get and put the h/w resource. */
-int pass_get_resource(struct pass *pass);
-int pass_put_resource(struct pass *pass);
-
 /*
  * FXIME: Following function is not standard interface.
  * These functions will be altered by the standard interface on later.