[PATCH] i386: Clean up NMI watchdog code

- Introduce a wd_ops structure
- Convert the various nmi watchdogs over to it
- This allows to split the perfctr reservation from the watchdog
setup cleanly.
- Do perfctr reservation globally as it should have always been
- Remove dead code referenced only by unused EXPORT_SYMBOLs

Signed-off-by: Andi Kleen <[email protected]>
This commit is contained in:
Andi Kleen 2007-05-02 19:27:20 +02:00 • committed by Andi Kleen
commit 09198e6850
4 changed files with 721 additions and 776 deletions

View file

@ -50,4 +50,12 @@ void __trigger_all_cpu_backtrace(void);
#endif
void lapic_watchdog_stop(void);
int lapic_watchdog_init(unsigned nmi_hz);
int lapic_wd_event(unsigned nmi_hz);
unsigned lapic_adjust_nmi_hz(unsigned hz);
int lapic_watchdog_ok(void);
void disable_lapic_nmi_watchdog(void);
void enable_lapic_nmi_watchdog(void);
#endif /* ASM_NMI_H */