UACPI: Difference between revisions
Jump to navigation
Jump to search
[unchecked revision] | [unchecked revision] |
Content deleted Content added
No edit summary |
|||
Line 99: | Line 99: | ||
if (uacpi_unlikely_error(ret)) { |
if (uacpi_unlikely_error(ret)) { |
||
log_error("uacpi_namespace_initialize error: %s", uacpi_status_to_string(ret)); |
log_error("uacpi_namespace_initialize error: %s", uacpi_status_to_string(ret)); |
||
return -ENODEV; |
|||
} |
|||
/* |
|||
* Tell uACPI that we have marked all GPEs we wanted for wake (even though we haven't |
|||
* actually marked any, as we have no power management support right now). This is |
|||
* needed to let uACPI enable all unmarked GPEs that have a corresponding AML handler. |
|||
* These handlers are used by the firmware to dynamically execute AML code at runtime |
|||
* to e.g. react to thermal events or device hotplug. |
|||
*/ |
|||
ret = uacpi_finalize_gpe_initialization(); |
|||
if (uacpi_unlikely_error(ret)) { |
|||
log_error("uACPI GPE initialization error: %s", uacpi_status_to_string(ret)); |
|||
return -ENODEV; |
return -ENODEV; |
||
} |
} |
||
Line 110: | Line 123: | ||
} |
} |
||
</source> |
</source> |
||
== Code examples == |
== Code examples == |