aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/oprofile
diff options
context:
space:
mode:
authorTim Deegan <tim@xen.org>2012-04-11 13:10:33 +0100
committerTim Deegan <tim@xen.org>2012-04-11 13:10:33 +0100
commit05db6ab3e5cbe1e5d7edaf7caaa246bb97bc45ca (patch)
tree810b79071d4d65f38f822cb5c6a494e0e284e06d /xen/arch/x86/oprofile
parent2b7aac76417d57e336f41b6f6d5b0cb301d512f8 (diff)
downloadxen-05db6ab3e5cbe1e5d7edaf7caaa246bb97bc45ca.tar.gz
xen-05db6ab3e5cbe1e5d7edaf7caaa246bb97bc45ca.tar.bz2
xen-05db6ab3e5cbe1e5d7edaf7caaa246bb97bc45ca.zip
x86: explicitly mark __initdata variables as used when building with clang.
This stops LLVM from replacing it with a different, auto-generated variable as part of an optimization. (The auto-generated variable ends up in the normal data section.) Remove stray __read_mostly annotations on declarations that this unmasked. Signed-off-by: Tim Deegan <tim@xen.org> Acked-by: Keir Fraser <keir@xen.org> Committed-by: Tim Deegan <tim@xen.org>
Diffstat (limited to 'xen/arch/x86/oprofile')
-rw-r--r--xen/arch/x86/oprofile/op_x86_model.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/oprofile/op_x86_model.h b/xen/arch/x86/oprofile/op_x86_model.h
index 87beedbf87..31d473b7f6 100644
--- a/xen/arch/x86/oprofile/op_x86_model.h
+++ b/xen/arch/x86/oprofile/op_x86_model.h
@@ -53,6 +53,6 @@ extern struct op_x86_model_spec const op_amd_fam15h_spec;
void arch_perfmon_setup_counters(void);
extern int ppro_has_global_ctrl;
-extern struct op_x86_model_spec const *__read_mostly model;
+extern struct op_x86_model_spec const *model;
#endif /* OP_X86_MODEL_H */