[PATCH] bsps/clock: Fix fast idle mode

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Jan 22 18:16:55 UTC 2024


----- Am 22. Jan 2024 um 17:52 schrieb Gedare Bloom gedare at rtems.org:

> On Tue, Jan 16, 2024 at 8:44 AM Sebastian Huber
> <sebastian.huber at embedded-brains.de> wrote:
>>
>> Switch back to the idle thread if no watchdogs are active.  In some tests, the
>> idle thread may do some non-blocking work.
>> ---
>>  bsps/shared/dev/clock/clockimpl.h | 16 ++++++++++++++++
>>  1 file changed, 16 insertions(+)
>>
>> diff --git a/bsps/shared/dev/clock/clockimpl.h
>> b/bsps/shared/dev/clock/clockimpl.h
>> index e922c0b320..ec56e175f5 100644
>> --- a/bsps/shared/dev/clock/clockimpl.h
>> +++ b/bsps/shared/dev/clock/clockimpl.h
>> @@ -139,6 +139,21 @@ volatile uint32_t    Clock_driver_ticks;
>>  #error "Clock_driver_support_shutdown_hardware() is no longer supported"
>>  #endif
>>
>> +#if CLOCK_DRIVER_USE_FAST_IDLE
>> +static bool Clock_Has_watchdogs(const Per_CPU_Control *cpu)
>> +{
> 
> nit: if this cannot be overridden by BSPs and is purely internal to
> this header file implementation, it should not use "Clock_"

Ok, I change it to _Clock_Has_watchdogs().

-- 
embedded brains GmbH & Co. KG
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.huber at embedded-brains.de
phone: +49-89-18 94 741 - 16
fax:   +49-89-18 94 741 - 08

Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/


More information about the devel mailing list