/** * dma_fence_work_commit_imm: Commit the fence, and if possible execute locally. * @f: the fenced worker * * Instead of always scheduling a worker to execute the callback (see * dma_fence_work_commit()), we try to execute the callback immediately in * the local context. It is required that the fence be committed before it * is published, and that no other threads try to tamper with the number * of asynchronous waits on the fence (or else the callback will be * executed in the wrong context, i.e. not the callers).
*/ staticinlinevoid dma_fence_work_commit_imm(struct dma_fence_work *f)
{ if (atomic_read(&f->chain.pending) <= 1)
__set_bit(DMA_FENCE_WORK_IMM, &f->dma.flags);
dma_fence_work_commit(f);
}
#endif/* I915_SW_FENCE_WORK_H */
Messung V0.5
¤ Dauer der Verarbeitung: 0.11 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.