Re: [PATCH 2/5] percpu struct members.

From: Rusty Russell (rusty@rustcorp.com.au)
Date: Mon Jul 21 2003 - 16:27:41 EST


In message <20030721185619.GB6912@mail.jlokier.co.uk> you write:
> Rusty Russell wrote:
> > The current percpu macros do not allow __get_cpu_var(foo.val1)
> > which makes building macros on top of them really difficult.
>
> What's the problem with __get_cpu_var(foo).val1 ?

Nothing: that will still work, too. But not say you have a macro (as
we do in local_t):

        local_cpu_inc(cpuvar)

if cpuvar is a struct, you want this to work:

        local_cpu_inc(cpuvar.member)

Hope that helps,
Rusty.

--
  Anyone who quotes me in their sig is an idiot. -- Rusty Russell.
-
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 : Wed Jul 23 2003 - 22:00:45 EST