diff options
author | Robert Richter <robert.richter@amd.com> | 2009-07-09 09:12:35 -0400 |
---|---|---|
committer | Robert Richter <robert.richter@amd.com> | 2009-07-20 10:43:20 -0400 |
commit | 259a83a8abdb9d2664819ec80ad12ebaeb251e32 (patch) | |
tree | 47217db436b7a6d39e719a76065f773a62965382 /arch/x86/oprofile | |
parent | b28d1b923ab52d535c0719155dccf3b3d98bab9f (diff) |
x86/oprofile: Remove const qualifier from struct op_x86_model_spec
This patch removes the const qualifier from struct
op_x86_model_spec to make model parameters changable.
Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'arch/x86/oprofile')
-rw-r--r-- | arch/x86/oprofile/nmi_int.c | 4 | ||||
-rw-r--r-- | arch/x86/oprofile/op_model_amd.c | 2 | ||||
-rw-r--r-- | arch/x86/oprofile/op_model_p4.c | 4 | ||||
-rw-r--r-- | arch/x86/oprofile/op_model_ppro.c | 2 | ||||
-rw-r--r-- | arch/x86/oprofile/op_x86_model.h | 8 |
5 files changed, 10 insertions, 10 deletions
diff --git a/arch/x86/oprofile/nmi_int.c b/arch/x86/oprofile/nmi_int.c index 998c7dca31e7..826f391b4229 100644 --- a/arch/x86/oprofile/nmi_int.c +++ b/arch/x86/oprofile/nmi_int.c | |||
@@ -27,7 +27,7 @@ | |||
27 | #include "op_counter.h" | 27 | #include "op_counter.h" |
28 | #include "op_x86_model.h" | 28 | #include "op_x86_model.h" |
29 | 29 | ||
30 | static struct op_x86_model_spec const *model; | 30 | static struct op_x86_model_spec *model; |
31 | static DEFINE_PER_CPU(struct op_msrs, cpu_msrs); | 31 | static DEFINE_PER_CPU(struct op_msrs, cpu_msrs); |
32 | static DEFINE_PER_CPU(unsigned long, saved_lvtpc); | 32 | static DEFINE_PER_CPU(unsigned long, saved_lvtpc); |
33 | 33 | ||
@@ -542,7 +542,7 @@ module_param_call(cpu_type, force_cpu_type, NULL, NULL, 0); | |||
542 | static int __init ppro_init(char **cpu_type) | 542 | static int __init ppro_init(char **cpu_type) |
543 | { | 543 | { |
544 | __u8 cpu_model = boot_cpu_data.x86_model; | 544 | __u8 cpu_model = boot_cpu_data.x86_model; |
545 | struct op_x86_model_spec const *spec = &op_ppro_spec; /* default */ | 545 | struct op_x86_model_spec *spec = &op_ppro_spec; /* default */ |
546 | 546 | ||
547 | if (force_arch_perfmon && cpu_has_arch_perfmon) | 547 | if (force_arch_perfmon && cpu_has_arch_perfmon) |
548 | return 0; | 548 | return 0; |
diff --git a/arch/x86/oprofile/op_model_amd.c b/arch/x86/oprofile/op_model_amd.c index 644980f03924..39604b429d69 100644 --- a/arch/x86/oprofile/op_model_amd.c +++ b/arch/x86/oprofile/op_model_amd.c | |||
@@ -526,7 +526,7 @@ static void op_amd_exit(void) {} | |||
526 | 526 | ||
527 | #endif /* CONFIG_OPROFILE_IBS */ | 527 | #endif /* CONFIG_OPROFILE_IBS */ |
528 | 528 | ||
529 | struct op_x86_model_spec const op_amd_spec = { | 529 | struct op_x86_model_spec op_amd_spec = { |
530 | .num_counters = NUM_COUNTERS, | 530 | .num_counters = NUM_COUNTERS, |
531 | .num_controls = NUM_CONTROLS, | 531 | .num_controls = NUM_CONTROLS, |
532 | .num_virt_counters = NUM_VIRT_COUNTERS, | 532 | .num_virt_counters = NUM_VIRT_COUNTERS, |
diff --git a/arch/x86/oprofile/op_model_p4.c b/arch/x86/oprofile/op_model_p4.c index 65b9237cde8b..40df028d0d91 100644 --- a/arch/x86/oprofile/op_model_p4.c +++ b/arch/x86/oprofile/op_model_p4.c | |||
@@ -695,7 +695,7 @@ static void p4_shutdown(struct op_msrs const * const msrs) | |||
695 | 695 | ||
696 | 696 | ||
697 | #ifdef CONFIG_SMP | 697 | #ifdef CONFIG_SMP |
698 | struct op_x86_model_spec const op_p4_ht2_spec = { | 698 | struct op_x86_model_spec op_p4_ht2_spec = { |
699 | .num_counters = NUM_COUNTERS_HT2, | 699 | .num_counters = NUM_COUNTERS_HT2, |
700 | .num_controls = NUM_CONTROLS_HT2, | 700 | .num_controls = NUM_CONTROLS_HT2, |
701 | .num_virt_counters = NUM_COUNTERS_HT2, | 701 | .num_virt_counters = NUM_COUNTERS_HT2, |
@@ -709,7 +709,7 @@ struct op_x86_model_spec const op_p4_ht2_spec = { | |||
709 | }; | 709 | }; |
710 | #endif | 710 | #endif |
711 | 711 | ||
712 | struct op_x86_model_spec const op_p4_spec = { | 712 | struct op_x86_model_spec op_p4_spec = { |
713 | .num_counters = NUM_COUNTERS_NON_HT, | 713 | .num_counters = NUM_COUNTERS_NON_HT, |
714 | .num_controls = NUM_CONTROLS_NON_HT, | 714 | .num_controls = NUM_CONTROLS_NON_HT, |
715 | .num_virt_counters = NUM_COUNTERS_NON_HT, | 715 | .num_virt_counters = NUM_COUNTERS_NON_HT, |
diff --git a/arch/x86/oprofile/op_model_ppro.c b/arch/x86/oprofile/op_model_ppro.c index 098cbca5c0b0..659f3b6f86fb 100644 --- a/arch/x86/oprofile/op_model_ppro.c +++ b/arch/x86/oprofile/op_model_ppro.c | |||
@@ -203,7 +203,7 @@ static void ppro_shutdown(struct op_msrs const * const msrs) | |||
203 | } | 203 | } |
204 | 204 | ||
205 | 205 | ||
206 | struct op_x86_model_spec const op_ppro_spec = { | 206 | struct op_x86_model_spec op_ppro_spec = { |
207 | .num_counters = 2, | 207 | .num_counters = 2, |
208 | .num_controls = 2, | 208 | .num_controls = 2, |
209 | .num_virt_counters = 2, | 209 | .num_virt_counters = 2, |
diff --git a/arch/x86/oprofile/op_x86_model.h b/arch/x86/oprofile/op_x86_model.h index e874dc3565ae..0c886fa0369c 100644 --- a/arch/x86/oprofile/op_x86_model.h +++ b/arch/x86/oprofile/op_x86_model.h | |||
@@ -62,10 +62,10 @@ extern u64 op_x86_get_ctrl(struct op_x86_model_spec const *model, | |||
62 | struct op_counter_config *counter_config); | 62 | struct op_counter_config *counter_config); |
63 | extern int op_x86_phys_to_virt(int phys); | 63 | extern int op_x86_phys_to_virt(int phys); |
64 | 64 | ||
65 | extern struct op_x86_model_spec const op_ppro_spec; | 65 | extern struct op_x86_model_spec op_ppro_spec; |
66 | extern struct op_x86_model_spec const op_p4_spec; | 66 | extern struct op_x86_model_spec op_p4_spec; |
67 | extern struct op_x86_model_spec const op_p4_ht2_spec; | 67 | extern struct op_x86_model_spec op_p4_ht2_spec; |
68 | extern struct op_x86_model_spec const op_amd_spec; | 68 | extern struct op_x86_model_spec op_amd_spec; |
69 | extern struct op_x86_model_spec op_arch_perfmon_spec; | 69 | extern struct op_x86_model_spec op_arch_perfmon_spec; |
70 | 70 | ||
71 | #endif /* OP_X86_MODEL_H */ | 71 | #endif /* OP_X86_MODEL_H */ |