Commit ee98b8bf authored by Dapeng Mi's avatar Dapeng Mi Committed by Peter Zijlstra
Browse files

perf/x86/intel: Replace x86_pmu.drain_pebs calling with static call



Use x86_pmu_drain_pebs static call to replace calling x86_pmu.drain_pebs
function pointer.

Suggested-by: default avatarPeter Zijlstra <peterz@infradead.org>
Signed-off-by: default avatarDapeng Mi <dapeng1.mi@linux.intel.com>
Signed-off-by: default avatarPeter Zijlstra (Intel) <peterz@infradead.org>
Link: https://patch.msgid.link/20251029102136.61364-4-dapeng1.mi@linux.intel.com
parent 7e772a93
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3269,7 +3269,7 @@ static int handle_pmi_common(struct pt_regs *regs, u64 status)
		 * The PEBS buffer has to be drained before handling the A-PMI
		 */
		if (is_pebs_counter_event_group(event))
			x86_pmu.drain_pebs(regs, &data);
			static_call(x86_pmu_drain_pebs)(regs, &data);

		last_period = event->hw.last_period;