Messages in this thread | | | Date | Wed, 14 Oct 2009 14:26:37 -0400 (EDT) | From | Christoph Lameter <> | Subject | Re: [PATCH 13/16] percpu: remove per_cpu__ prefix. |
| |
On Wed, 14 Oct 2009, H. Peter Anvin wrote:
> Okay... I also don't seem to understand the more fundamental issue here, > which is: > > Why are we dropping the prefix?
That has been answered by Tejun elsewhere. It simplifies macros in many places. Makes treatment of dynamic and static per cpu variables uniform, solves an issue on S/390 etc.
> It may be "insufficient", but at least it stands out like a sore thumb > and makes mistakes harder. It would be a different thing if we could > actually use the TLS ABI, but we really can't.
Sparse annotations will be used to detect these issues. Also generally per cpu variables are used as parameters to per cpu functions. They only work in the context of specifically designed macros.
| |