diff options
author | Lv Zheng <lv.zheng@intel.com> | 2014-07-07 22:06:39 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-07-08 08:22:25 -0400 |
commit | e8c038a3c6227892e6c0982804b6f9d03fa4b3c5 (patch) | |
tree | 336859a993480881c05cd14d1820dec1814f479a /tools/power | |
parent | afbdc6aece93edb6c8f14722782696ef7c439231 (diff) |
ACPICA: Utilities: Cleanup DEFINE_ACPI_GLOBALS by moving acpi_ut_init_global() from utglobal.c to utinit.c
The utglobal.c is used to define and initialize global variables. It makes
sense if just adding utglobal.o to applications that are using such
variables. But acpi_ut_init_globals() is preventing us from doing so as
this initialization function references other components' initializations
code, which leads to the requirement that many files should also get linked
if one wants to link utglobal.o.
It is possible to just move acpi_ut_init_global() to utinit.c for
applications that require this function to link.
By linking utglobal.o, we can stop defining DEFINE_ACPI_GLOBALS for
applications (currently only acpidump is affected). Lv Zheng.
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'tools/power')
-rw-r--r-- | tools/power/acpi/Makefile | 1 | ||||
-rw-r--r-- | tools/power/acpi/tools/acpidump/acpidump.h | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/tools/power/acpi/Makefile b/tools/power/acpi/Makefile index e5a3c4be2a10..61446dbf70a6 100644 --- a/tools/power/acpi/Makefile +++ b/tools/power/acpi/Makefile | |||
@@ -112,6 +112,7 @@ DUMP_OBJS = \ | |||
112 | tbxfroot.o\ | 112 | tbxfroot.o\ |
113 | utbuffer.o\ | 113 | utbuffer.o\ |
114 | utexcep.o\ | 114 | utexcep.o\ |
115 | utglobal.o\ | ||
115 | utmath.o\ | 116 | utmath.o\ |
116 | utstring.o\ | 117 | utstring.o\ |
117 | utxferror.o\ | 118 | utxferror.o\ |
diff --git a/tools/power/acpi/tools/acpidump/acpidump.h b/tools/power/acpi/tools/acpidump/acpidump.h index 46f519597fe5..8efc84824308 100644 --- a/tools/power/acpi/tools/acpidump/acpidump.h +++ b/tools/power/acpi/tools/acpidump/acpidump.h | |||
@@ -47,7 +47,6 @@ | |||
47 | #ifdef _DECLARE_GLOBALS | 47 | #ifdef _DECLARE_GLOBALS |
48 | #define EXTERN | 48 | #define EXTERN |
49 | #define INIT_GLOBAL(a,b) a=b | 49 | #define INIT_GLOBAL(a,b) a=b |
50 | #define DEFINE_ACPI_GLOBALS 1 | ||
51 | #else | 50 | #else |
52 | #define EXTERN extern | 51 | #define EXTERN extern |
53 | #define INIT_GLOBAL(a,b) a | 52 | #define INIT_GLOBAL(a,b) a |