Watchdog and kernel profiling for AMD

- a different set of MSRs and performance counters is used on AMD

- when initializing NMI watchdog the test for Intel architecture
  performance counters feature only applies to Intel now

- NMI is enabled if the CPU belongs to a family which has the
  performance counters that we use
This commit is contained in:
Tomas Hruby
2010-09-23 14:42:30 +00:00
parent 274fcf8d1f
commit 1786291e32
2 changed files with 95 additions and 24 deletions
+3 -3
View File
@@ -20,9 +20,9 @@ struct arch_watchdog {
arch_watchdog_method_t init; /* initial setup */
arch_watchdog_method_t reinit; /* reinit after a tick */
arch_watchdog_profile_init_t profile_init;
unsigned resetval;
unsigned watchdog_resetval;
unsigned profile_resetval;
u64_t resetval;
u64_t watchdog_resetval;
u64_t profile_resetval;
};
extern struct arch_watchdog *watchdog;