diff options
Diffstat (limited to 'arch/x86/kernel/process_64.c')
-rw-r--r-- | arch/x86/kernel/process_64.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kernel/process_64.c b/arch/x86/kernel/process_64.c index f7356e5517f6..ae5eca17aa3c 100644 --- a/arch/x86/kernel/process_64.c +++ b/arch/x86/kernel/process_64.c | |||
@@ -555,6 +555,9 @@ static inline void __switch_to_xtra(struct task_struct *prev_p, | |||
555 | prev = &prev_p->thread, | 555 | prev = &prev_p->thread, |
556 | next = &next_p->thread; | 556 | next = &next_p->thread; |
557 | 557 | ||
558 | if (next->debugctlmsr != prev->debugctlmsr) | ||
559 | wrmsrl(MSR_IA32_DEBUGCTLMSR, next->debugctlmsr); | ||
560 | |||
558 | if (test_tsk_thread_flag(next_p, TIF_DEBUG)) { | 561 | if (test_tsk_thread_flag(next_p, TIF_DEBUG)) { |
559 | loaddebug(next, 0); | 562 | loaddebug(next, 0); |
560 | loaddebug(next, 1); | 563 | loaddebug(next, 1); |