aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/oprofile/op_model_amd.c
diff options
context:
space:
mode:
authorRobert Richter <robert.richter@amd.com>2008-07-18 17:36:20 +0200
committerRobert Richter <robert.richter@amd.com>2008-10-15 20:47:31 +0200
commite2fee2761ad1df2d29b9d502a3cefc87a17b32ca (patch)
tree6e29a2aa2abfd35ba6dba535165610e80b330244 /arch/x86/oprofile/op_model_amd.c
parentc493756e2a8a78bcaae30668317890dcfe86e7c3 (diff)
OProfile: Rework oprofile_add_ibs_sample() function
Code looks much more cleaner now. Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'arch/x86/oprofile/op_model_amd.c')
-rw-r--r--arch/x86/oprofile/op_model_amd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/oprofile/op_model_amd.c b/arch/x86/oprofile/op_model_amd.c
index d9faf607b3a..54632e0d6bf 100644
--- a/arch/x86/oprofile/op_model_amd.c
+++ b/arch/x86/oprofile/op_model_amd.c
@@ -67,8 +67,9 @@ static unsigned long reset_value[NUM_COUNTERS];
/* The function interface needs to be fixed, something like add
data. Should then be added to linux/oprofile.h. */
-extern void oprofile_add_ibs_sample(struct pt_regs *const regs,
- unsigned int * const ibs_sample, u8 code);
+extern void
+oprofile_add_ibs_sample(struct pt_regs *const regs,
+ unsigned int * const ibs_sample, int ibs_code);
struct ibs_fetch_sample {
/* MSRC001_1031 IBS Fetch Linear Address Register */