Unverified Commit 45c76c86 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!3678 timer_list: avoid other cpu soft lockup when printing timer list

parents 693bc3a9 8a145b73
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -269,13 +269,17 @@ void sysrq_timer_list_show(void)

	timer_list_header(NULL, now);

	for_each_online_cpu(cpu)
	for_each_online_cpu(cpu) {
		touch_all_softlockup_watchdogs();
		print_cpu(NULL, cpu, now);
	}

#ifdef CONFIG_GENERIC_CLOCKEVENTS
	timer_list_show_tickdevices_header(NULL);
	for_each_online_cpu(cpu)
	for_each_online_cpu(cpu) {
		touch_all_softlockup_watchdogs();
		print_tickdevice(NULL, tick_get_device(cpu), cpu);
	}
#endif
	return;
}