diff options
Diffstat (limited to 'drivers/acpi/acpica/utxface.c')
-rw-r--r-- | drivers/acpi/acpica/utxface.c | 45 |
1 files changed, 42 insertions, 3 deletions
diff --git a/drivers/acpi/acpica/utxface.c b/drivers/acpi/acpica/utxface.c index 03a211e6e26a..be322c83643a 100644 --- a/drivers/acpi/acpica/utxface.c +++ b/drivers/acpi/acpica/utxface.c | |||
@@ -41,7 +41,8 @@ | |||
41 | * POSSIBILITY OF SUCH DAMAGES. | 41 | * POSSIBILITY OF SUCH DAMAGES. |
42 | */ | 42 | */ |
43 | 43 | ||
44 | #include <linux/export.h> | 44 | #define EXPORT_ACPI_INTERFACES |
45 | |||
45 | #include <acpi/acpi.h> | 46 | #include <acpi/acpi.h> |
46 | #include "accommon.h" | 47 | #include "accommon.h" |
47 | #include "acdebug.h" | 48 | #include "acdebug.h" |
@@ -60,7 +61,7 @@ ACPI_MODULE_NAME("utxface") | |||
60 | * DESCRIPTION: Shutdown the ACPICA subsystem and release all resources. | 61 | * DESCRIPTION: Shutdown the ACPICA subsystem and release all resources. |
61 | * | 62 | * |
62 | ******************************************************************************/ | 63 | ******************************************************************************/ |
63 | acpi_status acpi_terminate(void) | 64 | acpi_status __init acpi_terminate(void) |
64 | { | 65 | { |
65 | acpi_status status; | 66 | acpi_status status; |
66 | 67 | ||
@@ -104,7 +105,7 @@ acpi_status acpi_terminate(void) | |||
104 | return_ACPI_STATUS(status); | 105 | return_ACPI_STATUS(status); |
105 | } | 106 | } |
106 | 107 | ||
107 | ACPI_EXPORT_SYMBOL(acpi_terminate) | 108 | ACPI_EXPORT_SYMBOL_INIT(acpi_terminate) |
108 | 109 | ||
109 | #ifndef ACPI_ASL_COMPILER | 110 | #ifndef ACPI_ASL_COMPILER |
110 | #ifdef ACPI_FUTURE_USAGE | 111 | #ifdef ACPI_FUTURE_USAGE |
@@ -207,6 +208,44 @@ acpi_status acpi_get_system_info(struct acpi_buffer * out_buffer) | |||
207 | 208 | ||
208 | ACPI_EXPORT_SYMBOL(acpi_get_system_info) | 209 | ACPI_EXPORT_SYMBOL(acpi_get_system_info) |
209 | 210 | ||
211 | /******************************************************************************* | ||
212 | * | ||
213 | * FUNCTION: acpi_get_statistics | ||
214 | * | ||
215 | * PARAMETERS: stats - Where the statistics are returned | ||
216 | * | ||
217 | * RETURN: status - the status of the call | ||
218 | * | ||
219 | * DESCRIPTION: Get the contents of the various system counters | ||
220 | * | ||
221 | ******************************************************************************/ | ||
222 | acpi_status acpi_get_statistics(struct acpi_statistics *stats) | ||
223 | { | ||
224 | ACPI_FUNCTION_TRACE(acpi_get_statistics); | ||
225 | |||
226 | /* Parameter validation */ | ||
227 | |||
228 | if (!stats) { | ||
229 | return_ACPI_STATUS(AE_BAD_PARAMETER); | ||
230 | } | ||
231 | |||
232 | /* Various interrupt-based event counters */ | ||
233 | |||
234 | stats->sci_count = acpi_sci_count; | ||
235 | stats->gpe_count = acpi_gpe_count; | ||
236 | |||
237 | ACPI_MEMCPY(stats->fixed_event_count, acpi_fixed_event_count, | ||
238 | sizeof(acpi_fixed_event_count)); | ||
239 | |||
240 | /* Other counters */ | ||
241 | |||
242 | stats->method_count = acpi_method_count; | ||
243 | |||
244 | return_ACPI_STATUS(AE_OK); | ||
245 | } | ||
246 | |||
247 | ACPI_EXPORT_SYMBOL(acpi_get_statistics) | ||
248 | |||
210 | /***************************************************************************** | 249 | /***************************************************************************** |
211 | * | 250 | * |
212 | * FUNCTION: acpi_install_initialization_handler | 251 | * FUNCTION: acpi_install_initialization_handler |