hal: Add define directive for BUFF_MAX to hal.h 87/113287/1
authorWook Song <wook16.song@samsung.com>
Tue, 7 Feb 2017 02:10:57 +0000 (11:10 +0900)
committerWook Song <wook16.song@samsung.com>
Tue, 7 Feb 2017 05:44:19 +0000 (14:44 +0900)
This patch moves the define directive for BUFF_MAX to the hal.h. The
directives in the other files related to the hal are removed. This patch
also inserts the include directive for this hal.h to the files, which
require BUFF_MAX.

Change-Id: Id6115ad79b0c43f64518fb2aabdacd04b3745e25
Signed-off-by: Wook Song <wook16.song@samsung.com>
src/hal/hal.h
src/pass/pass-hal.c

index 9dd89c141e08c85afae6a7f63e8271b00af98bd6..d1c2cad9e3cf0d4ba516b43e476fb8522b37adf4 100644 (file)
@@ -20,6 +20,8 @@
 #include <stdio.h>
 #include <stdint.h>
 
+#define BUFF_MAX       255
+
 #define MAKE_2B_CODE_2(A,B) \
        ((((A) & 0xff) << 8) | ((B) & 0xff))
 #define MAKE_2B_CODE_4(A,B,C,D) \
index 248ef802ab432b15267ee48a1b9569a9149790d1..220b4546528a123c743a079b00b5fbbd192c298b 100644 (file)
@@ -471,7 +471,6 @@ int pass_get_num_cpus(void)
 }
 
 /* Get the load_table of each resource to estimate the system load. */
-#define BUFF_MAX       255
 int pass_get_cpu_stats(struct pass_policy *policy)
 {
        struct pass_cpu_stats *stats = policy->pass_cpu_stats;