[PATCH] oprofile: drop const in num counters field

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Andi Kleen
Date: Wednesday, August 20, 2008 - 9:40 am

From: Andi Kleen <ak@linux.intel.com>

allow to modify it at runtime

Signed-off-by: Andi Kleen <ak@linux.intel.com>
---
 arch/x86/oprofile/op_x86_model.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/oprofile/op_x86_model.h b/arch/x86/oprofile/op_x86_model.h
index 45b605f..575e08e 100644
--- a/arch/x86/oprofile/op_x86_model.h
+++ b/arch/x86/oprofile/op_x86_model.h
@@ -32,8 +32,8 @@ struct pt_regs;
  * various x86 CPU models' perfctr support.
  */
 struct op_x86_model_spec {
-	unsigned int const num_counters;
-	unsigned int const num_controls;
+	unsigned int num_counters;
+	unsigned int num_controls;
 	void (*fill_in_addresses)(struct op_msrs * const msrs);
 	void (*setup_ctrs)(struct op_msrs const * const msrs);
 	int (*check_ctrs)(struct pt_regs * const regs,
-- 
1.5.6

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
oprofile: Implement Intel architectural perfmon, Andi Kleen, (Wed Aug 20, 9:40 am)
[PATCH] oprofile: drop const in num counters field, Andi Kleen, (Wed Aug 20, 9:40 am)
[PATCH] oprofile: Don't report Nehalem as core_2, Andi Kleen, (Wed Aug 20, 9:40 am)
Re: oprofile: Implement Intel architectural perfmon, Robert Richter, (Thu Sep 25, 12:32 pm)
Re: [PATCH] oprofile: Don't report Nehalem as core_2, Robert Richter, (Thu Sep 25, 1:05 pm)