sam_hsmci: rm sched_[un]lock

Signed-off-by: hujun5 <hujun5@xiaomi.com>
This commit is contained in:
hujun5 2023-09-07 09:02:04 +08:00 committed by Xiang Xiao
parent 109247e723
commit 0b23a316ca
2 changed files with 0 additions and 6 deletions

View File

@ -2303,7 +2303,6 @@ static int sam_sendsetup(struct sdio_dev_s *dev,
* in order to avoid a TX data underrun.
*/
sched_lock();
flags = enter_critical_section();
nwords = (buflen + 3) >> 2;
@ -2320,7 +2319,6 @@ static int sam_sendsetup(struct sdio_dev_s *dev,
lcderr("ERROR: sr %08" PRIx32 "\n", sr);
leave_critical_section(flags);
sched_unlock();
return -EIO;
}
else if ((sr & HSMCI_INT_TXRDY) != 0)
@ -2333,7 +2331,6 @@ static int sam_sendsetup(struct sdio_dev_s *dev,
}
leave_critical_section(flags);
sched_unlock();
return OK;
}

View File

@ -2331,7 +2331,6 @@ static int sam_sendsetup(struct sdio_dev_s *dev,
* in order to avoid a TX data underrun.
*/
sched_lock();
flags = enter_critical_section();
src = (const uint32_t *)buffer;
@ -2348,7 +2347,6 @@ static int sam_sendsetup(struct sdio_dev_s *dev,
mcerr("ERROR: sr %08" PRIx32 "\n", sr);
leave_critical_section(flags);
sched_unlock();
return -EIO;
}
else if ((sr & HSMCI_INT_TXRDY) != 0)
@ -2406,7 +2404,6 @@ static int sam_sendsetup(struct sdio_dev_s *dev,
}
leave_critical_section(flags);
sched_unlock();
return OK;
}