MIPS: Watch: Avoid duplication of bits in mips_install_watch_registers.
authorMatt Redfearn <matt.redfearn@mips.com>
Tue, 2 Jan 2018 11:31:21 +0000 (11:31 +0000)
committerJames Hogan <jhogan@kernel.org>
Tue, 23 Jan 2018 15:45:34 +0000 (15:45 +0000)
commitf609cc3a2000d3a14ac52e5c8db7b6fdb6c16353
tree84275a9080b5f080f81c834e0bef1694ead4eb74
parent93738d48939637af05a270306a153200aae43990
MIPS: Watch: Avoid duplication of bits in mips_install_watch_registers.

Currently the bits to be set in the watchhi register in addition to that
requested by the user is defined inline for each register. To avoid
this, define the bits once and or that in for each register.

Signed-off-by: Matt Redfearn <matt.redfearn@mips.com>
Acked-by: David Daney <david.daney@cavium.com>
Reviewed-by: James Hogan <jhogan@kernel.org>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/18157/
Signed-off-by: James Hogan <jhogan@kernel.org>
arch/mips/kernel/watch.c