On Tue, 2012-08-07 at 23:44 +0100, Ben Hutchings wrote:
Any consideration of implementation details like BSS and cache line
sharing is already outside of 'plain C'. And you don't have to 'mess
with all arches'; just look at what <linux/init.h> and <linux/module.h>
do.
"const" is the clean and portable way to express my needs. No magic
section.
All is self-contained in the definition of the metrics, with a nice
comment.
All const are naturally shared by all cpus, without adding extra cache
line boundaries.
Please feel free to send another version, but I wont spend more time
myself.
Thanks