Re: [PATCH] atomic_inc_return() for i386[1/5] (Re: atomic_inc_return)

From: Chris Wedgwood
Date: Fri Sep 10 2004 - 00:42:40 EST


On Fri, Sep 10, 2004 at 12:26:54PM +0900, Kaigai Kohei wrote:

> +static __inline__ int atomic_add_return(int i, atomic_t *v)
> +{
> + int __i;
> +#ifdef CONFIG_M386
> + if(unlikely(boot_cpu_data.x86==3))
> + goto no_xadd;
> +#endif

i didn't check what code is generated, but isn't that expensive? i
guess most people building i386 kernels want maximum compatability so
it probably doesn't matter...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/