Skip to content

Commit

Permalink
cxd56xx: rm sched_[un]lock
Browse files Browse the repository at this point in the history
Signed-off-by: hujun5 <hujun5@xiaomi.com>
  • Loading branch information
hujun260 committed Sep 7, 2023
1 parent ba73272 commit 1bfb6dc
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions arch/arm/src/cxd56xx/cxd56_cpu1signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,8 +169,6 @@ int cxd56_cpu1siginit(uint8_t sigtype, void *data)
return -ENODEV;
}

sched_lock();

if (priv->sigtype[sigtype].use)
{
ret = -EBUSY;
Expand All @@ -188,8 +186,6 @@ int cxd56_cpu1siginit(uint8_t sigtype, void *data)

priv->ndev++;

sched_unlock();

cxd56_iccinit(CXD56_PROTO_GNSS);

ret = cxd56_iccinitmsg(CXD56CPU1_CPUID);
Expand Down Expand Up @@ -236,8 +232,6 @@ int cxd56_cpu1siguninit(uint8_t sigtype)
return -ENODEV;
}

sched_lock();

if (!priv->sigtype[sigtype].use)
{
ret = -EBUSY;
Expand All @@ -258,8 +252,6 @@ int cxd56_cpu1siguninit(uint8_t sigtype)
pid = priv->workerpid;
priv->workerpid = INVALID_PROCESS_ID;

sched_unlock();

ret = kthread_delete(pid);

if (ret)
Expand Down

0 comments on commit 1bfb6dc

Please sign in to comment.