mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
ACPICA: Add new statistics interface.
This patch ports new counters and statistics interface, already implemented in ACPICA upstream, to Linux. That helps to reduce source code differences between Linux and ACPICA upstream. [rjw: Changelog] Signed-off-by: Lv Zheng <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
fa5f508f94
commit
9187a415fd
7 changed files with 66 additions and 0 deletions
|
|
@ -140,6 +140,8 @@ ACPI_HW_DEPENDENT_RETURN_STATUS(acpi_status acpi_disable(void))
|
|||
acpi_status acpi_get_system_info(struct acpi_buffer *ret_buffer);
|
||||
#endif
|
||||
|
||||
acpi_status acpi_get_statistics(struct acpi_statistics *stats);
|
||||
|
||||
const char *acpi_format_exception(acpi_status exception);
|
||||
|
||||
acpi_status acpi_purge_cached_objects(void);
|
||||
|
|
|
|||
|
|
@ -973,6 +973,16 @@ struct acpi_system_info {
|
|||
u32 debug_layer;
|
||||
};
|
||||
|
||||
/*
|
||||
* System statistics returned by acpi_get_statistics()
|
||||
*/
|
||||
struct acpi_statistics {
|
||||
u32 sci_count;
|
||||
u32 gpe_count;
|
||||
u32 fixed_event_count[ACPI_NUM_FIXED_EVENTS];
|
||||
u32 method_count;
|
||||
};
|
||||
|
||||
/* Table Event Types */
|
||||
|
||||
#define ACPI_TABLE_EVENT_LOAD 0x0
|
||||
|
|
|
|||
Loading…
Reference in a new issue