diff options
author | Tim Deegan <Tim.Deegan@citrix.com> | 2011-05-27 08:56:12 +0100 |
---|---|---|
committer | Tim Deegan <Tim.Deegan@citrix.com> | 2011-05-27 08:56:12 +0100 |
commit | f87806bcecfdd4d57bc1b543045ce3bfa84332a4 (patch) | |
tree | 26d8986e03ce83ad6d00a3b22da9915d531a4a63 /xen/arch/x86/oprofile | |
parent | 2d680dadf189da1774c086f6eed72e5da564eb1e (diff) | |
download | xen-f87806bcecfdd4d57bc1b543045ce3bfa84332a4.tar.gz xen-f87806bcecfdd4d57bc1b543045ce3bfa84332a4.tar.bz2 xen-f87806bcecfdd4d57bc1b543045ce3bfa84332a4.zip |
xen: remove more declarations from C files.
This patch moves some more, mostly data, extern declarations into
header files. I haven't been as strict as I was with functions;
in particular there are a number of declarations of assembler labels
that are only used in one place. I've also left a few compat-mode
tricks, and all the magic in symbols.c
Signed-off-by: Tim Deegan <Tim.Deegan@citrix.com>
Diffstat (limited to 'xen/arch/x86/oprofile')
-rw-r--r-- | xen/arch/x86/oprofile/nmi_int.c | 1 | ||||
-rw-r--r-- | xen/arch/x86/oprofile/op_model_athlon.c | 1 | ||||
-rw-r--r-- | xen/arch/x86/oprofile/op_x86_model.h | 4 |
3 files changed, 4 insertions, 2 deletions
diff --git a/xen/arch/x86/oprofile/nmi_int.c b/xen/arch/x86/oprofile/nmi_int.c index d06ba881c0..eba9dec64d 100644 --- a/xen/arch/x86/oprofile/nmi_int.c +++ b/xen/arch/x86/oprofile/nmi_int.c @@ -339,7 +339,6 @@ static int force_cpu_type(const char *str) } custom_param("cpu_type", force_cpu_type); -extern int ppro_has_global_ctrl; static int __init ppro_init(char ** cpu_type) { __u8 cpu_model = current_cpu_data.x86_model; diff --git a/xen/arch/x86/oprofile/op_model_athlon.c b/xen/arch/x86/oprofile/op_model_athlon.c index fcbf5b55e8..95ad07c6c6 100644 --- a/xen/arch/x86/oprofile/op_model_athlon.c +++ b/xen/arch/x86/oprofile/op_model_athlon.c @@ -52,7 +52,6 @@ static unsigned long reset_value[MAX_COUNTERS]; extern char svm_stgi_label[]; -extern struct op_x86_model_spec const *__read_mostly model; #ifdef CONFIG_X86_64 u32 ibs_caps = 0; diff --git a/xen/arch/x86/oprofile/op_x86_model.h b/xen/arch/x86/oprofile/op_x86_model.h index b154415873..87beedbf87 100644 --- a/xen/arch/x86/oprofile/op_x86_model.h +++ b/xen/arch/x86/oprofile/op_x86_model.h @@ -51,4 +51,8 @@ extern struct op_x86_model_spec const op_athlon_spec; 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; + #endif /* OP_X86_MODEL_H */ |