hrev46061 adds 1 changeset to branch 'master' old head: 4ace94e6b11489dab205f4d954538f17dec6a33b new head: c11cdf8d88cd93f11f2711623e17276ddaa57a17 overview: http://cgit.haiku-os.org/haiku/log/?qt=range&q=c11cdf8+%5E4ace94e ---------------------------------------------------------------------------- c11cdf8: dpc: fix comments spelling. [ Jerome Duval <jerome.duval@xxxxxxxxx> ] ---------------------------------------------------------------------------- Revision: hrev46061 Commit: c11cdf8d88cd93f11f2711623e17276ddaa57a17 URL: http://cgit.haiku-os.org/haiku/commit/?id=c11cdf8 Author: Jerome Duval <jerome.duval@xxxxxxxxx> Date: Sun Sep 15 12:39:56 2013 UTC ---------------------------------------------------------------------------- 1 file changed, 4 insertions(+), 4 deletions(-) src/add-ons/kernel/generic/dpc/dpc.c | 8 ++++---- ---------------------------------------------------------------------------- diff --git a/src/add-ons/kernel/generic/dpc/dpc.c b/src/add-ons/kernel/generic/dpc/dpc.c index 4b09253..4557972 100644 --- a/src/add-ons/kernel/generic/dpc/dpc.c +++ b/src/add-ons/kernel/generic/dpc/dpc.c @@ -64,7 +64,7 @@ dpc_thread(void *arg) } // Let's finish the pending DPCs, if any. - // Otherwise, resource could leaks... + // Otherwise, resource could leak... while (queue->count--) { dpc = queue->slots[queue->head]; queue->head = (queue->head + 1) % queue->size; @@ -135,7 +135,7 @@ delete_dpc_queue(void *handle) if (!queue) return B_BAD_VALUE; - // Close the queue: queue_dpc() should knows we're closing: + // Close the queue: queue_dpc() should know we're closing: former = disable_interrupts(); acquire_spinlock(&queue->lock); @@ -186,8 +186,8 @@ queue_dpc(void *handle, dpc_func function, void *arg) restore_interrupts(former); if (status == B_OK) - // Wake up the corresponding dpc thead - // Notice that interrupt handlers should returns B_INVOKE_SCHEDULER to + // Wake up the corresponding dpc thread + // Notice that interrupt handlers should return B_INVOKE_SCHEDULER to // shorten DPC latency as much as possible... status = release_sem_etc(queue->wakeup_sem, 1, B_DO_NOT_RESCHEDULE);