]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Fix compile issue with force DAWR
authorMichael Neuling <mikey@neuling.org>
Tue, 4 Jun 2019 03:00:37 +0000 (13:00 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 3 Jul 2019 05:19:35 +0000 (15:19 +1000)
commit57b1c73b1b3bdd967436697ff364feef97aed1c6
tree5eeb4faa4d6b050d034841d488b9e916429c6af5
parentfc7edf0d65b3d267949d20c50315a9d73855c2f6
powerpc: Fix compile issue with force DAWR

If you compile with KVM but without CONFIG_HAVE_HW_BREAKPOINT you fail
at linking with:
  arch/powerpc/kvm/book3s_hv_rmhandlers.o:(.text+0x708): undefined reference to `dawr_force_enable'

This was caused by commit 69e64c621508 ("powerpc: Add force enable of
DAWR on P9 option").

This moves a bunch of code around to fix this. It moves a lot of the
DAWR code in a new file and creates a new CONFIG_PPC_DAWR to enable
compiling it.

Fixes: 69e64c621508 ("powerpc: Add force enable of DAWR on P9 option")
Signed-off-by: Michael Neuling <mikey@neuling.org>
[mpe: Minor formatting in set_dawr()]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/Kconfig
arch/powerpc/include/asm/hw_breakpoint.h
arch/powerpc/kernel/Makefile
arch/powerpc/kernel/dawr.c [new file with mode: 0644]
arch/powerpc/kernel/hw_breakpoint.c
arch/powerpc/kernel/process.c
arch/powerpc/kvm/Kconfig