From 5473869839e4be54c4bd759b62955b9cd5b6716b Mon Sep 17 00:00:00 2001 From: Wook Song Date: Tue, 7 Feb 2017 11:10:57 +0900 Subject: [PATCH] hal: Add define directive for BUFF_MAX to hal.h 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 --- src/hal/hal.h | 2 ++ src/pass/pass-hal.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hal/hal.h b/src/hal/hal.h index 9dd89c1..d1c2cad 100644 --- a/src/hal/hal.h +++ b/src/hal/hal.h @@ -20,6 +20,8 @@ #include #include +#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) \ diff --git a/src/pass/pass-hal.c b/src/pass/pass-hal.c index 248ef80..220b454 100644 --- a/src/pass/pass-hal.c +++ b/src/pass/pass-hal.c @@ -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; -- 2.7.4