[rtems-central commit] spec: Use ClockTick()
Sebastian Huber
sebh at rtems.org
Mon Apr 12 06:11:11 UTC 2021
Module: rtems-central
Branch: master
Commit: 8cfee8f3923d8024c8a84900b890bbbf42d0bdb0
Changeset: http://git.rtems.org/rtems-central/commit/?id=8cfee8f3923d8024c8a84900b890bbbf42d0bdb0
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Mon Apr 12 07:14:55 2021 +0200
spec: Use ClockTick()
---
spec/rtems/task/req/mode.yml | 20 ++------------------
1 file changed, 2 insertions(+), 18 deletions(-)
diff --git a/spec/rtems/task/req/mode.yml b/spec/rtems/task/req/mode.yml
index b80897d..58914f3 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(
More information about the vc
mailing list