diff options
Diffstat (limited to 'firmware/target/arm/sandisk/ata-c200_e200.c')
-rw-r--r-- | firmware/target/arm/sandisk/ata-c200_e200.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/sandisk/ata-c200_e200.c b/firmware/target/arm/sandisk/ata-c200_e200.c index c1c0cb3e8c..747cb17ca1 100644 --- a/firmware/target/arm/sandisk/ata-c200_e200.c +++ b/firmware/target/arm/sandisk/ata-c200_e200.c | |||
@@ -198,7 +198,7 @@ static bool sd_poll_status(unsigned int trigger, long timeout) | |||
198 | if (TIME_AFTER(time, next_yield)) | 198 | if (TIME_AFTER(time, next_yield)) |
199 | { | 199 | { |
200 | long ty = USEC_TIMER; | 200 | long ty = USEC_TIMER; |
201 | priority_yield(); | 201 | yield(); |
202 | timeout += USEC_TIMER - ty; | 202 | timeout += USEC_TIMER - ty; |
203 | next_yield = ty + MIN_YIELD_PERIOD; | 203 | next_yield = ty + MIN_YIELD_PERIOD; |
204 | } | 204 | } |
@@ -317,7 +317,7 @@ static int sd_wait_for_state(unsigned int state, int id) | |||
317 | us = USEC_TIMER; | 317 | us = USEC_TIMER; |
318 | if (TIME_AFTER(us, next_yield)) | 318 | if (TIME_AFTER(us, next_yield)) |
319 | { | 319 | { |
320 | priority_yield(); | 320 | yield(); |
321 | timeout += USEC_TIMER - us; | 321 | timeout += USEC_TIMER - us; |
322 | next_yield = us + MIN_YIELD_PERIOD; | 322 | next_yield = us + MIN_YIELD_PERIOD; |
323 | } | 323 | } |