Skip to content
Snippets Groups Projects
Commit 637618e8 authored by patacongo's avatar patacongo
Browse files

Removed redundant interrupt disable

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@268 42af7a65-404d-4744-a932-0658087f49c3
parent a54e55c4
No related branches found
Tags nuttx-2.5
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment