Lines Matching refs:wd
36 void (*rearm)(struct nmi_watchdog_ctlblk *wd, unsigned nmi_hz);
285 struct nmi_watchdog_ctlblk *wd = &__get_cpu_var(nmi_watchdog_ctlblk); in setup_k7_watchdog() local
302 wd->perfctr_msr = perfctr_msr; in setup_k7_watchdog()
303 wd->evntsel_msr = evntsel_msr; in setup_k7_watchdog()
304 wd->cccr_msr = 0; /* unused */ in setup_k7_watchdog()
318 struct nmi_watchdog_ctlblk *wd = &__get_cpu_var(nmi_watchdog_ctlblk); in single_msr_stop_watchdog() local
320 wrmsr(wd->evntsel_msr, 0, 0); in single_msr_stop_watchdog()
342 single_msr_rearm(struct nmi_watchdog_ctlblk *wd, unsigned nmi_hz) in single_msr_rearm() argument
345 write_watchdog_counter(wd->perfctr_msr, NULL, nmi_hz); in single_msr_rearm()
373 struct nmi_watchdog_ctlblk *wd = &__get_cpu_var(nmi_watchdog_ctlblk); in setup_p6_watchdog() local
393 wd->perfctr_msr = perfctr_msr; in setup_p6_watchdog()
394 wd->evntsel_msr = evntsel_msr; in setup_p6_watchdog()
395 wd->cccr_msr = 0; /* unused */ in setup_p6_watchdog()
407 static void __kprobes p6_rearm(struct nmi_watchdog_ctlblk *wd, unsigned nmi_hz) in p6_rearm() argument
418 write_watchdog_counter32(wd->perfctr_msr, NULL,nmi_hz); in p6_rearm()
482 struct nmi_watchdog_ctlblk *wd = &__get_cpu_var(nmi_watchdog_ctlblk); in setup_p4_watchdog() local
559 wd->perfctr_msr = perfctr_msr; in setup_p4_watchdog()
560 wd->evntsel_msr = evntsel_msr; in setup_p4_watchdog()
561 wd->cccr_msr = cccr_msr; in setup_p4_watchdog()
574 struct nmi_watchdog_ctlblk *wd = &__get_cpu_var(nmi_watchdog_ctlblk); in stop_p4_watchdog() local
575 wrmsr(wd->cccr_msr, 0, 0); in stop_p4_watchdog()
576 wrmsr(wd->evntsel_msr, 0, 0); in stop_p4_watchdog()
611 static void __kprobes p4_rearm(struct nmi_watchdog_ctlblk *wd, unsigned nmi_hz) in p4_rearm() argument
621 rdmsrl(wd->cccr_msr, dummy); in p4_rearm()
623 wrmsrl(wd->cccr_msr, dummy); in p4_rearm()
626 write_watchdog_counter(wd->perfctr_msr, NULL, nmi_hz); in p4_rearm()
657 struct nmi_watchdog_ctlblk *wd = &__get_cpu_var(nmi_watchdog_ctlblk); in setup_intel_arch_watchdog() local
685 wd->perfctr_msr = perfctr_msr; in setup_intel_arch_watchdog()
686 wd->evntsel_msr = evntsel_msr; in setup_intel_arch_watchdog()
687 wd->cccr_msr = 0; /* unused */ in setup_intel_arch_watchdog()
783 struct nmi_watchdog_ctlblk *wd = &__get_cpu_var(nmi_watchdog_ctlblk); in lapic_adjust_nmi_hz() local
784 if (wd->perfctr_msr == MSR_P6_PERFCTR0 || in lapic_adjust_nmi_hz()
785 wd->perfctr_msr == MSR_ARCH_PERFMON_PERFCTR1) in lapic_adjust_nmi_hz()
792 struct nmi_watchdog_ctlblk *wd = &__get_cpu_var(nmi_watchdog_ctlblk); in lapic_wd_event() local
795 rdmsrl(wd->perfctr_msr, ctr); in lapic_wd_event()
799 wd_ops->rearm(wd, nmi_hz); in lapic_wd_event()