[Cbe-oss-dev] [PATCH 19/22]MARS/task: No busy wait

Yuji Mano yuji.mano at am.sony.com
Fri Jan 23 06:25:41 EST 2009


Geert Uytterhoeven wrote:
> On Tue, 20 Jan 2009, Yuji Mano wrote:
>> @@ -95,6 +96,13 @@ int mars_task_event_flag_set(uint64_t ev
>>  	/* save current set bits */
>>  	bits = event_flag.bits;
>>  
>> +	/* signal the waiting host */
>> +	if (event_flag.direction != MARS_TASK_EVENT_FLAG_HOST_TO_MPU &&
>> +	    event_flag.direction != MARS_TASK_EVENT_FLAG_MPU_TO_MPU)
>> +		(*mars_task_module_syscalls->signal_host)(
>> +			event_flag_ea +
>> +			offsetof(struct mars_task_event_flag, bits));
>> +
> 
> What do you think about creating static inline wrappers that call the various
> (*mars_task_module_syscalls->xxx)() syscalls?

Hi Geert.

That's a very good suggestion.
I will consider it for the next patch series.

Regards,
Yuji




More information about the cbe-oss-dev mailing list