Messages in this thread | | | From | Rusty Russell <> | Subject | Re: [PATCH 2/5] percpu struct members. | Date | Tue, 22 Jul 2003 07:27:41 +1000 |
| |
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/
| |