arch: Remove critical section inside up_schedule_sigaction

since nxsig_tcbdispatch already hold it for us

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I2fe6ad840bdca3ec0eaa76a9af3b6929c7d5a721
This commit is contained in:
Xiang Xiao
2021-01-21 15:09:32 +08:00
committed by Alin Jerpelea
parent 394cfba1d8
commit 94da3e4c3a
28 changed files with 84 additions and 241 deletions
+3 -8
View File
@@ -85,18 +85,15 @@
* currently executing task -- just call the signal
* handler now.
*
* Assumptions:
* Called from critical section
*
****************************************************************************/
void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
{
irqstate_t flags;
sinfo("tcb=0x%p sigdeliver=0x%p\n", tcb, sigdeliver);
/* Make sure that interrupts are disabled */
flags = enter_critical_section();
/* Refuse to handle nested signal actions */
if (!tcb->xcp.sigdeliver)
@@ -188,6 +185,4 @@ void up_schedule_sigaction(struct tcb_s *tcb, sig_deliver_t sigdeliver)
*/
}
}
leave_critical_section(flags);
}