x86/oprofile: removing unused function parameter in add_ibs_begin()
Signed-off-by: Robert Richter <robert.richter@amd.com>hifive-unleashed-5.1
parent
25ad2913ca
commit
8655a3b872
|
@ -340,7 +340,7 @@ static void add_trace_begin(void)
|
||||||
* Add IBS fetch and op entries to event buffer
|
* Add IBS fetch and op entries to event buffer
|
||||||
*/
|
*/
|
||||||
static void add_ibs_begin(struct oprofile_cpu_buffer *cpu_buf, int code,
|
static void add_ibs_begin(struct oprofile_cpu_buffer *cpu_buf, int code,
|
||||||
int in_kernel, struct mm_struct *mm)
|
struct mm_struct *mm)
|
||||||
{
|
{
|
||||||
unsigned long rip;
|
unsigned long rip;
|
||||||
int i, count;
|
int i, count;
|
||||||
|
@ -592,12 +592,10 @@ void sync_buffer(int cpu)
|
||||||
#ifdef CONFIG_OPROFILE_IBS
|
#ifdef CONFIG_OPROFILE_IBS
|
||||||
} else if (s->event == IBS_FETCH_BEGIN) {
|
} else if (s->event == IBS_FETCH_BEGIN) {
|
||||||
state = sb_bt_start;
|
state = sb_bt_start;
|
||||||
add_ibs_begin(cpu_buf,
|
add_ibs_begin(cpu_buf, IBS_FETCH_CODE, mm);
|
||||||
IBS_FETCH_CODE, in_kernel, mm);
|
|
||||||
} else if (s->event == IBS_OP_BEGIN) {
|
} else if (s->event == IBS_OP_BEGIN) {
|
||||||
state = sb_bt_start;
|
state = sb_bt_start;
|
||||||
add_ibs_begin(cpu_buf,
|
add_ibs_begin(cpu_buf, IBS_OP_CODE, mm);
|
||||||
IBS_OP_CODE, in_kernel, mm);
|
|
||||||
#endif
|
#endif
|
||||||
} else {
|
} else {
|
||||||
struct mm_struct *oldmm = mm;
|
struct mm_struct *oldmm = mm;
|
||||||
|
|
Loading…
Reference in New Issue