Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5671a10e authored by Peter Zijlstra's avatar Peter Zijlstra Committed by Ingo Molnar
Browse files

nmi_watchdog: Tell the world we're active



Because I was wondering why perf stat wasn't working as expected..

Signed-off-by: default avatarPeter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Don Zickus <dzickus@redhat.com>
LKML-Reference: <new-submission>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent c99c30fe
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -244,6 +244,8 @@ static int __init spawn_nmi_watchdog_task(void)
	if (nonmi_watchdog)
	if (nonmi_watchdog)
		return 0;
		return 0;


	printk(KERN_INFO "NMI watchdog enabled, takes one hw-pmu counter.\n");

	err = cpu_callback(&cpu_nfb, CPU_UP_PREPARE, cpu);
	err = cpu_callback(&cpu_nfb, CPU_UP_PREPARE, cpu);
	if (err == NOTIFY_BAD) {
	if (err == NOTIFY_BAD) {
		BUG();
		BUG();