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

Geert Uytterhoeven Geert.Uytterhoeven at sonycom.com
Thu Jan 22 16:26:33 EST 2009


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?

With kind regards,

Geert Uytterhoeven
Software Architect

Sony Techsoft Centre Europe
The Corporate Village · Da Vincilaan 7-D1 · B-1935 Zaventem · Belgium

Phone:    +32 (0)2 700 8453
Fax:      +32 (0)2 700 8622
E-mail:   Geert.Uytterhoeven at sonycom.com
Internet: http://www.sony-europe.com/

A division of Sony Europe (Belgium) N.V.
VAT BE 0413.825.160 · RPR Brussels
Fortis · BIC GEBABEBB · IBAN BE41293037680010



More information about the cbe-oss-dev mailing list