[PATCH 3/5] score: Return prev state in thread state set/clear

Sebastian Huber sebastian.huber at embedded-brains.de
Wed Apr 1 06:19:34 UTC 2015



On 31/03/15 16:46, Joel Sherrill wrote:
>> @@ -267,11 +269,13 @@ void _Thread_Clear_state(
>> >   *  @param[in] the_thread is the thread to set the state for.
>> >   *  @param[in] state is the state to set the_thread to.
>> >   *
>> >+ *  @return The previous state.
>> >+ *
>> >   *  - INTERRUPT LATENCY:
>> >   *   + ready chain
>> >   *   + select map
>> >   */
> I don't think this comment still applies after refactoring out the
> scheduler.
> Is there even a disable interrupt in this code now?

Yes, the _Scheduler_Acquire/Release is a simple ISR disable/enable on 
uni-processor configurations.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.huber at embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.



More information about the devel mailing list