Skip to content

Commit

Permalink
sam_hsmci: rm sched_[un]lock
Browse files Browse the repository at this point in the history
Signed-off-by: hujun5 <[email protected]>
  • Loading branch information
hujun260 committed Sep 7, 2023
1 parent ba73272 commit 952bfad
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions arch/arm/src/sama5/sam_hsmci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
Expand All @@ -2333,7 +2331,6 @@ static int sam_sendsetup(struct sdio_dev_s *dev,
}

leave_critical_section(flags);
sched_unlock();
return OK;
}

Expand Down
3 changes: 0 additions & 3 deletions arch/arm/src/samv7/sam_hsmci.c
Original file line number Diff line number Diff line change
Expand Up @@ -2222,7 +2222,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;
Expand All @@ -2239,7 +2238,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)
Expand Down Expand Up @@ -2297,7 +2295,6 @@ static int sam_sendsetup(struct sdio_dev_s *dev,
}

leave_critical_section(flags);
sched_unlock();
return OK;
}

Expand Down

0 comments on commit 952bfad

Please sign in to comment.