Re: Small optimizations for UP (sched and prefetch)

From: Arjan van de Ven (arjanv@redhat.com)
Date: Thu Jan 10 2002 - 05:57:07 EST


> +
> +#ifndef CONFIG_SMP
> +#define spin_lock_prefetch(x)
> +#else
> +#define spin_lock_prefetch(x) prefetchw(x)
> +#endif
>

please make it
+#define spin_lock_prefetch(x) do {} while (0)

instead of an empty define...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Jan 15 2002 - 21:00:31 EST