diff options
-rw-r--r-- | arch/x86/kernel/cpu/perfctr-watchdog.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/arch/x86/kernel/cpu/perfctr-watchdog.c b/arch/x86/kernel/cpu/perfctr-watchdog.c index b943e10ad814..f9ae93adffe5 100644 --- a/arch/x86/kernel/cpu/perfctr-watchdog.c +++ b/arch/x86/kernel/cpu/perfctr-watchdog.c | |||
@@ -614,16 +614,6 @@ static struct wd_ops intel_arch_wd_ops __read_mostly = { | |||
614 | .evntsel = MSR_ARCH_PERFMON_EVENTSEL1, | 614 | .evntsel = MSR_ARCH_PERFMON_EVENTSEL1, |
615 | }; | 615 | }; |
616 | 616 | ||
617 | static struct wd_ops coreduo_wd_ops = { | ||
618 | .reserve = single_msr_reserve, | ||
619 | .unreserve = single_msr_unreserve, | ||
620 | .setup = setup_intel_arch_watchdog, | ||
621 | .rearm = p6_rearm, | ||
622 | .stop = single_msr_stop_watchdog, | ||
623 | .perfctr = MSR_ARCH_PERFMON_PERFCTR0, | ||
624 | .evntsel = MSR_ARCH_PERFMON_EVENTSEL0, | ||
625 | }; | ||
626 | |||
627 | static void probe_nmi_watchdog(void) | 617 | static void probe_nmi_watchdog(void) |
628 | { | 618 | { |
629 | switch (boot_cpu_data.x86_vendor) { | 619 | switch (boot_cpu_data.x86_vendor) { |
@@ -637,8 +627,8 @@ static void probe_nmi_watchdog(void) | |||
637 | /* Work around Core Duo (Yonah) errata AE49 where perfctr1 | 627 | /* Work around Core Duo (Yonah) errata AE49 where perfctr1 |
638 | doesn't have a working enable bit. */ | 628 | doesn't have a working enable bit. */ |
639 | if (boot_cpu_data.x86 == 6 && boot_cpu_data.x86_model == 14) { | 629 | if (boot_cpu_data.x86 == 6 && boot_cpu_data.x86_model == 14) { |
640 | wd_ops = &coreduo_wd_ops; | 630 | intel_arch_wd_ops.perfctr = MSR_ARCH_PERFMON_PERFCTR0; |
641 | break; | 631 | intel_arch_wd_ops.evntsel = MSR_ARCH_PERFMON_EVENTSEL0; |
642 | } | 632 | } |
643 | if (cpu_has(&boot_cpu_data, X86_FEATURE_ARCH_PERFMON)) { | 633 | if (cpu_has(&boot_cpu_data, X86_FEATURE_ARCH_PERFMON)) { |
644 | wd_ops = &intel_arch_wd_ops; | 634 | wd_ops = &intel_arch_wd_ops; |