mirror of
https://github.com/apache/nuttx.git
synced 2026-09-25 09:15:09 +08:00
Removed redundant interrupt disable
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@268 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -176,9 +176,7 @@ int sched_setparam(pid_t pid, const struct sched_param *param)
|
||||
{
|
||||
/* A context switch will occur. */
|
||||
|
||||
irqstate_t flags = irqsave();
|
||||
up_reprioritize_rtr(tcb, (ubyte)sched_priority);
|
||||
irqrestore(flags);
|
||||
}
|
||||
|
||||
/* Otherwise, we can just change priority since it has no effect */
|
||||
@@ -205,9 +203,7 @@ int sched_setparam(pid_t pid, const struct sched_param *param)
|
||||
{
|
||||
/* A context switch will occur. */
|
||||
|
||||
irqstate_t flags = irqsave();
|
||||
up_reprioritize_rtr(tcb, (ubyte)sched_priority);
|
||||
irqrestore(flags);
|
||||
}
|
||||
|
||||
/* Otherwise, we can just change priority and re-schedule (since it
|
||||
|
||||
Reference in New Issue
Block a user