acpi: EcGpeHandler() should return ACPI_REENABLE_GPE.

* this clears the GPE if level triggered and possibly enables the GPE.
See AcpiEvFinishGpe() and AcpiEvGpeDispatch().
This commit is contained in:
Jérôme Duval 2013-11-11 18:59:38 +01:00
parent e94bffa072
commit 847ab5a734
2 changed files with 4 additions and 1 deletions

View File

@ -151,6 +151,9 @@ typedef uint32 acpi_status;
typedef struct acpi_resource acpi_resource;
#define ACPI_REENABLE_GPE 0x80
#endif // __ACTYPES_H__

View File

@ -604,7 +604,7 @@ EcGpeHandler(acpi_handle gpeDevice, uint32 gpeNumber, void* context)
else
dprintf("EcGpeHandler: queuing GPE query handler failed\n");
}
return B_INVOKE_SCHEDULER;
return ACPI_REENABLE_GPE;
}