[PATCH 2/2] Convert PowerPC macro spin_event_timeout() to architecture independent macro

Goel Arpit-B44344 B44344 at freescale.com
Thu Aug 1 00:38:34 EDT 2013


On Tue, Jul 30, 2013 at 7:38 AM, Arpit Goel <B44344 at freescale.com> wrote:
>
> +#ifndef spin_event_timeout
> +/**

On Thursday, August 01, 2013 5:32 AM Timur Tabi [mailto:timur at tabi.org] wrote:
> Why don't you make PowerPC also use this generic version?  It seems silly to have two virtually identical implementations of this macro?

PowerPC uses hardware timer registers provided by PowerPC architecture to implement spin_event_timeout(). These registers make
PowerPC implementation of spin_event_timeout() more granular in comparison to ones using generic USECS_PER_JIFFY framework. This
would handle those cases more granularly in which evaluation of "condition" is taking time or fails.    




More information about the linux-arm-kernel mailing list