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:
patacongo 2007-06-07 00:08:40 +00:00
parent a54e55c432
commit 637618e8bb

View File

@ -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