diff --git a/headers/private/kernel/DPC.h b/headers/private/kernel/DPC.h index 9267910822..3c883a7a21 100644 --- a/headers/private/kernel/DPC.h +++ b/headers/private/kernel/DPC.h @@ -62,10 +62,8 @@ public: uint32 reservedSlots); void Close(bool cancelPending); - status_t Add(DPCCallback* callback, - bool schedulerLocked); - status_t Add(void (*function)(void*), void* argument, - bool schedulerLocked); + status_t Add(DPCCallback* callback); + status_t Add(void (*function)(void*), void* argument); bool Cancel(DPCCallback* callback); thread_id Thread() const diff --git a/src/system/kernel/DPC.cpp b/src/system/kernel/DPC.cpp index 7d64ca4a84..4d7261663c 100644 --- a/src/system/kernel/DPC.cpp +++ b/src/system/kernel/DPC.cpp @@ -158,7 +158,7 @@ DPCQueue::Close(bool cancelPending) status_t -DPCQueue::Add(DPCCallback* callback, bool schedulerLocked) +DPCQueue::Add(DPCCallback* callback) { // queue the callback, if the queue isn't closed already InterruptsSpinLocker locker(fLock); @@ -174,14 +174,14 @@ DPCQueue::Add(DPCCallback* callback, bool schedulerLocked) // notify the condition variable, if necessary if (wasEmpty) - fPendingCallbacksCondition.NotifyAll(schedulerLocked); + fPendingCallbacksCondition.NotifyAll(); return B_OK; } status_t -DPCQueue::Add(void (*function)(void*), void* argument, bool schedulerLocked) +DPCQueue::Add(void (*function)(void*), void* argument) { if (function == NULL) return B_BAD_VALUE; @@ -201,7 +201,7 @@ DPCQueue::Add(void (*function)(void*), void* argument, bool schedulerLocked) functionCallback->SetTo(function, argument); // add it - status_t error = Add(functionCallback, schedulerLocked); + status_t error = Add(functionCallback); if (error != B_OK) Recycle(functionCallback);