Skip to content

Commit

Permalink
Use YieldProcessor in DMA driver
Browse files Browse the repository at this point in the history
  • Loading branch information
coolstar committed Nov 29, 2023
1 parent 5031f46 commit 594a74c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/dma/pl330dma/dmacontroller.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ static NTSTATUS UntilDmacIdle(PPL330DMA_THREAD Thread)
if (!(read32(pDevice, DBGSTATUS) & DBG_BUSY))
return STATUS_SUCCESS;

__yield();
YieldProcessor();

LARGE_INTEGER CurrentTime;
KeQuerySystemTimePrecise(&CurrentTime);
Expand Down
2 changes: 1 addition & 1 deletion drivers/dma/pl330dma/pl330.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ enum pl330_byteswap {
#define MCODE_BUFF_PER_REQ 256

/* Use this _only_ to wait on transient states */
#define UNTIL(t, s) while (!(_state(t) & (s))) __yield();
#define UNTIL(t, s) while (!(_state(t) & (s))) YieldProcessor();

/* The number of default descriptors */

Expand Down

0 comments on commit 594a74c

Please sign in to comment.