X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/b0d623f7f2ae71ed96e60569f61f9a9a27016e80..04b8595b18b1b41ac7a206e4b3d51a635f8413d7:/iokit/Kernel/IOPMPowerStateQueue.cpp diff --git a/iokit/Kernel/IOPMPowerStateQueue.cpp b/iokit/Kernel/IOPMPowerStateQueue.cpp index 7081a7fae..cd24b8c53 100644 --- a/iokit/Kernel/IOPMPowerStateQueue.cpp +++ b/iokit/Kernel/IOPMPowerStateQueue.cpp @@ -62,7 +62,7 @@ bool IOPMPowerStateQueue::init( OSObject * inOwner, Action inAction ) bool IOPMPowerStateQueue::submitPowerEvent( uint32_t eventType, void * arg0, - void * arg1 ) + uint64_t arg1 ) { PowerEventEntry * entry; @@ -71,8 +71,8 @@ bool IOPMPowerStateQueue::submitPowerEvent( return false; entry->eventType = eventType; - entry->args[0] = arg0; - entry->args[1] = arg1; + entry->arg0 = arg0; + entry->arg1 = arg1; IOLockLock(queueLock); queue_enter(&queueHead, entry, PowerEventEntry *, chain); @@ -93,7 +93,7 @@ bool IOPMPowerStateQueue::checkForWork( void ) queue_remove_first(&queueHead, entry, PowerEventEntry *, chain); IOLockUnlock(queueLock); - (*queueAction)(owner, entry->eventType, entry->args[0], entry->args[1]); + (*queueAction)(owner, entry->eventType, entry->arg0, entry->arg1); IODelete(entry, PowerEventEntry, 1); IOLockLock(queueLock);