From 8cfee8f3923d8024c8a84900b890bbbf42d0bdb0 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Mon, 12 Apr 2021 07:14:55 +0200 Subject: 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 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( -- cgit v1.2.3