diff options
author | 2020-09-02 15:26:02 +0200 | |
---|---|---|
committer | 2020-09-04 15:12:58 +0200 | |
commit | d53d9bc0cf783e93b374de3895145c7375e570ba (patch) | |
tree | fb95a9c74cba7e6a7d93f58f80f542e941f99997 /drivers/usb/cdns3/cdns3-imx.c | |
parent | x86/debug: Support negative polarity DR6 bits (diff) | |
download | linux-dev-d53d9bc0cf783e93b374de3895145c7375e570ba.tar.xz linux-dev-d53d9bc0cf783e93b374de3895145c7375e570ba.zip |
x86/debug: Change thread.debugreg6 to thread.virtual_dr6
Current usage of thread.debugreg6 is convoluted at best. It starts life as
a copy of the hardware DR6 value, but then various bits are cleared and
set.
Replace this with a new variable thread.virtual_dr6 that is initialized to
0 when DR6 is read and only gains bits, at the same time the actual (on
stack) dr6 value which is read from the hardware only gets bits cleared.
Suggested-by: Andy Lutomirski <luto@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Tested-by: Daniel Thompson <daniel.thompson@linaro.org>
Link: https://lore.kernel.org/r/20200902133201.415372940@infradead.org
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions