x86, ds: dont use TIF_DEBUGCTLMSR
authorMarkus Metzger <markus.t.metzger@intel.com>
Fri, 3 Apr 2009 14:43:49 +0000 (16:43 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 7 Apr 2009 11:36:32 +0000 (13:36 +0200)
Debug store already uses TIF_DS_AREA_MSR to trigger debug store context
switch handling. No need to use TIF_DEBUGCTLMSR, as well.

Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
Cc: roland@redhat.com
Cc: eranian@googlemail.com
Cc: oleg@redhat.com
Cc: juan.villacis@intel.com
Cc: ak@linux.jf.intel.com
LKML-Reference: <20090403144604.256645000@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/ds.c

index 443f415441daefe4a807afba68450ad922c91fbc..cab28320dac7364dc5d07ac91ad9a77b6b6f30a2 100644 (file)
@@ -925,11 +925,6 @@ static void update_task_debugctlmsr(struct task_struct *task,
        get_cpu();
        if (task == current)
                update_debugctlmsr(debugctlmsr);
-
-       if (task->thread.debugctlmsr)
-               set_tsk_thread_flag(task, TIF_DEBUGCTLMSR);
-       else
-               clear_tsk_thread_flag(task, TIF_DEBUGCTLMSR);
        put_cpu();
 }