aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/oprofile/op_model_amd.c4
-rw-r--r--drivers/oprofile/cpu_buffer.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/oprofile/op_model_amd.c b/arch/x86/oprofile/op_model_amd.c
index fb67e1999d85..f71bd218b488 100644
--- a/arch/x86/oprofile/op_model_amd.c
+++ b/arch/x86/oprofile/op_model_amd.c
@@ -70,8 +70,8 @@ static unsigned long reset_value[NUM_COUNTERS];
70 * data. Should then be added to linux/oprofile.h. 70 * data. Should then be added to linux/oprofile.h.
71 */ 71 */
72extern void 72extern void
73oprofile_add_ibs_sample(struct pt_regs *const regs, 73oprofile_add_ibs_sample(struct pt_regs * const regs,
74 unsigned int *const ibs_sample, int ibs_code); 74 unsigned int * const ibs_sample, int ibs_code);
75 75
76struct ibs_fetch_sample { 76struct ibs_fetch_sample {
77 /* MSRC001_1031 IBS Fetch Linear Address Register */ 77 /* MSRC001_1031 IBS Fetch Linear Address Register */
diff --git a/drivers/oprofile/cpu_buffer.c b/drivers/oprofile/cpu_buffer.c
index 3958107723fb..2c4d54187b90 100644
--- a/drivers/oprofile/cpu_buffer.c
+++ b/drivers/oprofile/cpu_buffer.c
@@ -277,8 +277,8 @@ void oprofile_add_sample(struct pt_regs * const regs, unsigned long event)
277 277
278#define MAX_IBS_SAMPLE_SIZE 14 278#define MAX_IBS_SAMPLE_SIZE 14
279 279
280void oprofile_add_ibs_sample(struct pt_regs *const regs, 280void oprofile_add_ibs_sample(struct pt_regs * const regs,
281 unsigned int *const ibs_sample, int ibs_code) 281 unsigned int * const ibs_sample, int ibs_code)
282{ 282{
283 int is_kernel = !user_mode(regs); 283 int is_kernel = !user_mode(regs);
284 struct oprofile_cpu_buffer *cpu_buf = &__get_cpu_var(cpu_buffer); 284 struct oprofile_cpu_buffer *cpu_buf = &__get_cpu_var(cpu_buffer);