Messages in this thread | | | Date | Fri, 21 Jan 2011 12:42:34 -0600 (CST) | From | Christoph Lameter <> | Subject | Re: [cpuops cmpxchg double V2 1/4] Generic support for this_cpu_cmpxchg_double |
| |
On Fri, 21 Jan 2011, Mathieu Desnoyers wrote:
> "if the pointer passed is constant" -> if you use the actual type of percpu_dd > to check the alignment, then you can do an alignment check at compile-time even > for a non-const parameter. The requirement imposed on typing will take care to > make sure that even a non-const pointer will have the proper alignment.
True that would be a benefit if we used something like percpu_dd. If somehow we can marry that to a parameter list that only includes single word entities then we would have the best of both.
| |