- Delay creation of the DPC queue to the point when it is first used. Need this to load acpi in the early boot phase.
- Automatic whitespace cleanup. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@34170 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
8684e35ad7
commit
2591def6e5
@ -111,13 +111,6 @@ acpi_std_ops(int32 op,...)
|
||||
return ENOSYS;
|
||||
}
|
||||
|
||||
if (gDPC->new_dpc_queue(&gDPCHandle, "acpi_task",
|
||||
B_NORMAL_PRIORITY) != B_OK) {
|
||||
ERROR("failed to create os execution queue\n");
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
AcpiGbl_EnableInterpreterSlack = true;
|
||||
// AcpiGbl_CreateOSIMethod = true;
|
||||
|
||||
|
@ -774,6 +774,12 @@ AcpiOsExecute(ACPI_EXECUTE_TYPE type, ACPI_OSD_EXEC_CALLBACK function,
|
||||
break;
|
||||
}
|
||||
*/
|
||||
if (!gDPCHandle && gDPC->new_dpc_queue(&gDPCHandle, "acpi_task",
|
||||
B_NORMAL_PRIORITY) != B_OK) {
|
||||
DEBUG_FUNCTION_F("failed to create os execution queue\n");
|
||||
return AE_ERROR;
|
||||
}
|
||||
|
||||
if (gDPC->queue_dpc(gDPCHandle, function, context) != B_OK) {
|
||||
DEBUG_FUNCTION_F("Serious failure in AcpiOsExecute! function: %p",
|
||||
function);
|
||||
|
Loading…
Reference in New Issue
Block a user