diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-06-07 00:08:40 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2007-06-07 00:08:40 +0000 |
commit | ecfee8e6c69e3eb36b2b3f1112b1b2e04e8432c6 (patch) | |
tree | 3af6666ba1f17dd33114ae49981ca3c51c30ceb8 /nuttx/sched | |
parent | 9ed4928e582934a0d1b5e662f161bcd95ba1bc5e (diff) | |
download | px4-nuttx-ecfee8e6c69e3eb36b2b3f1112b1b2e04e8432c6.tar.gz px4-nuttx-ecfee8e6c69e3eb36b2b3f1112b1b2e04e8432c6.tar.bz2 px4-nuttx-ecfee8e6c69e3eb36b2b3f1112b1b2e04e8432c6.zip |
Removed redundant interrupt disable
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@268 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/sched')
-rw-r--r-- | nuttx/sched/sched_setparam.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/nuttx/sched/sched_setparam.c b/nuttx/sched/sched_setparam.c index 7ee22ffb6..09b834873 100644 --- a/nuttx/sched/sched_setparam.c +++ b/nuttx/sched/sched_setparam.c @@ -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 |