aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/oprofile/nmi_int.c
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2009-07-09 09:12:35 -0400
committerRobert Richter <robert.richter@amd.com>2009-07-20 10:43:20 -0400
commit259a83a8abdb9d2664819ec80ad12ebaeb251e32 (patch)
tree47217db436b7a6d39e719a76065f773a62965382 /arch/x86/oprofile/nmi_int.c
parentb28d1b923ab52d535c0719155dccf3b3d98bab9f (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/nmi_int.c')
-rw-r--r--arch/x86/oprofile/nmi_int.c4
1 files changed, 2 insertions, 2 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
30static struct op_x86_model_spec const *model; 30static struct op_x86_model_spec *model;
31static DEFINE_PER_CPU(struct op_msrs, cpu_msrs); 31static DEFINE_PER_CPU(struct op_msrs, cpu_msrs);
32static DEFINE_PER_CPU(unsigned long, saved_lvtpc); 32static DEFINE_PER_CPU(unsigned long, saved_lvtpc);
33 33
@@ -542,7 +542,7 @@ module_param_call(cpu_type, force_cpu_type, NULL, NULL, 0);
542static int __init ppro_init(char **cpu_type) 542static 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;