summaryrefslogtreecommitdiffstats
path: root/cpukit/rtems/src/ratemonperiod.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-04-03 15:03:35 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2014-04-04 11:01:18 +0200
commit24934e36e2513f972510d7c746103be1f766dc6a (patch)
tree66e3c8840cec6c1262f142e25ec545926140dbf9 /cpukit/rtems/src/ratemonperiod.c
parentscore: Add and use Scheduler_simple_Control (diff)
downloadrtems-24934e36e2513f972510d7c746103be1f766dc6a.tar.bz2
score: Add scheduler control to scheduler ops
Scheduler operations must be free of a global scheduler context to enable partitioned/clustered scheduling.
Diffstat (limited to '')
-rw-r--r--cpukit/rtems/src/ratemonperiod.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/cpukit/rtems/src/ratemonperiod.c b/cpukit/rtems/src/ratemonperiod.c
index 4c39fc56ff..9d31813353 100644
--- a/cpukit/rtems/src/ratemonperiod.c
+++ b/cpukit/rtems/src/ratemonperiod.c
@@ -144,7 +144,11 @@ void _Rate_monotonic_Initiate_statistics(
}
#endif
- _Scheduler_Release_job(the_period->owner, the_period->next_length);
+ _Scheduler_Release_job(
+ _Scheduler_Get( the_period->owner ),
+ the_period->owner,
+ the_period->next_length
+ );
}
static void _Rate_monotonic_Update_statistics(
@@ -340,7 +344,11 @@ rtems_status_code rtems_rate_monotonic_period(
the_period->next_length = length;
_Watchdog_Insert_ticks( &the_period->Timer, length );
- _Scheduler_Release_job(the_period->owner, the_period->next_length);
+ _Scheduler_Release_job(
+ _Scheduler_Get( the_period->owner ),
+ the_period->owner,
+ the_period->next_length
+ );
_Objects_Put( &the_period->Object );
return RTEMS_TIMEOUT;
}