Re: [PATCH] per-cpu patch 2/3

From: Robert Love (rml@tech9.net)
Date: Fri Jul 19 2002 - 12:49:28 EST


On Thu, 2002-07-18 at 18:36, Rusty Russell wrote:

> I think you are confused: this patch is an enhancement of the per-cpu
> variable infrastructure. I was making an analogy with
> smp_processor_id().
>
> +#define get_cpu_var(var) ({ preempt_disable(); __get_cpu_var(var); })
> +#define put_cpu_var(var) preempt_enable()
>
> Clear?

as day.

sorry,

        Robert Love

-
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 Jul 23 2002 - 22:00:31 EST