diff options
Diffstat (limited to 'arch/x86/kernel/process_32.c')
-rw-r--r-- | arch/x86/kernel/process_32.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/process_32.c b/arch/x86/kernel/process_32.c index 9230ce060d09..ec05fb750dfc 100644 --- a/arch/x86/kernel/process_32.c +++ b/arch/x86/kernel/process_32.c | |||
@@ -564,12 +564,12 @@ __switch_to_xtra(struct task_struct *prev_p, struct task_struct *next_p, | |||
564 | /* we clear debugctl to make sure DS | 564 | /* we clear debugctl to make sure DS |
565 | * is not in use when we change it */ | 565 | * is not in use when we change it */ |
566 | debugctl = 0; | 566 | debugctl = 0; |
567 | wrmsrl(MSR_IA32_DEBUGCTLMSR, 0); | 567 | update_debugctlmsr(0); |
568 | wrmsr(MSR_IA32_DS_AREA, next->ds_area_msr, 0); | 568 | wrmsr(MSR_IA32_DS_AREA, next->ds_area_msr, 0); |
569 | } | 569 | } |
570 | 570 | ||
571 | if (next->debugctlmsr != debugctl) | 571 | if (next->debugctlmsr != debugctl) |
572 | wrmsr(MSR_IA32_DEBUGCTLMSR, next->debugctlmsr, 0); | 572 | update_debugctlmsr(next->debugctlmsr); |
573 | 573 | ||
574 | if (test_tsk_thread_flag(next_p, TIF_DEBUG)) { | 574 | if (test_tsk_thread_flag(next_p, TIF_DEBUG)) { |
575 | set_debugreg(next->debugreg0, 0); | 575 | set_debugreg(next->debugreg0, 0); |