Merge tag 'powerpc-5.2-1' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/power...
[sfrench/cifs-2.6.git] / arch / powerpc / kvm / book3s_hv.c
index b2b29d4f9842877db15addda76a19eb061f7c858..7bdcd4d7a9f0297c36874cb4bd92edc30f5d777c 100644 (file)
@@ -74,6 +74,7 @@
 #include <asm/opal.h>
 #include <asm/xics.h>
 #include <asm/xive.h>
+#include <asm/hw_breakpoint.h>
 
 #include "book3s.h"
 
@@ -3374,7 +3375,7 @@ static int kvmhv_load_hv_regs_and_go(struct kvm_vcpu *vcpu, u64 time_limit,
        mtspr(SPRN_PURR, vcpu->arch.purr);
        mtspr(SPRN_SPURR, vcpu->arch.spurr);
 
-       if (cpu_has_feature(CPU_FTR_DAWR)) {
+       if (dawr_enabled()) {
                mtspr(SPRN_DAWR, vcpu->arch.dawr);
                mtspr(SPRN_DAWRX, vcpu->arch.dawrx);
        }