summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2021-04-12 07:14:55 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2021-04-12 07:15:51 +0200
commit8cfee8f3923d8024c8a84900b890bbbf42d0bdb0 (patch)
tree0d68f99a1be3a7a84372d0f8a9e2b8b8c5908605
parentf0ba295f30d01185955231008ea29b2a823188d2 (diff)
downloadrtems-central-8cfee8f3923d8024c8a84900b890bbbf42d0bdb0.tar.bz2
spec: Use ClockTick()
-rw-r--r--spec/rtems/task/req/mode.yml20
1 files changed, 2 insertions, 18 deletions
diff --git a/spec/rtems/task/req/mode.yml b/spec/rtems/task/req/mode.yml
index b80897d4..58914f3d 100644
--- a/spec/rtems/task/req/mode.yml
+++ b/spec/rtems/task/req/mode.yml
@@ -529,9 +529,6 @@ test-header: null
test-includes:
- rtems.h
- string.h
-- rtems/score/percpu.h
-- rtems/score/threaddispatch.h
-- rtems/score/watchdogimpl.h
test-local-includes:
- tx-support.h
test-prepare: |
@@ -598,28 +595,15 @@ test-support: |
static void ExhaustTimeslice( void )
{
- Per_CPU_Control *cpu_self;
- uint32_t ticks;
-
- cpu_self = _Thread_Dispatch_disable();
+ uint32_t ticks;
for (
ticks = 0;
ticks < rtems_configuration_get_ticks_per_timeslice();
++ticks
) {
- uint32_t cpu_index;
-
- for (
- cpu_index = 0;
- cpu_index < rtems_scheduler_get_processor_maximum();
- ++cpu_index
- ) {
- _Watchdog_Tick( _Per_CPU_Get_by_index( cpu_index ) );
- }
+ ClockTick();
}
-
- _Thread_Dispatch_enable( cpu_self );
}
static void CheckMode(