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:
parent
a54e55c432
commit
637618e8bb
@ -176,9 +176,7 @@ int sched_setparam(pid_t pid, const struct sched_param *param)
|
|||||||
{
|
{
|
||||||
/* A context switch will occur. */
|
/* A context switch will occur. */
|
||||||
|
|
||||||
irqstate_t flags = irqsave();
|
|
||||||
up_reprioritize_rtr(tcb, (ubyte)sched_priority);
|
up_reprioritize_rtr(tcb, (ubyte)sched_priority);
|
||||||
irqrestore(flags);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Otherwise, we can just change priority since it has no effect */
|
/* 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. */
|
/* A context switch will occur. */
|
||||||
|
|
||||||
irqstate_t flags = irqsave();
|
|
||||||
up_reprioritize_rtr(tcb, (ubyte)sched_priority);
|
up_reprioritize_rtr(tcb, (ubyte)sched_priority);
|
||||||
irqrestore(flags);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Otherwise, we can just change priority and re-schedule (since it
|
/* Otherwise, we can just change priority and re-schedule (since it
|
||||||
|
Loading…
x
Reference in New Issue
Block a user