lkml.org 
[lkml]   [2008]   [Jan]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH] x86: Remove ifdef from step.c
    From
    Date
    Similar cleanup was done when unifying kprobes_32|64.c and
    wrmsr() was chosen there over wrmsrl().

    Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
    ---
    Ingo, only chose this direction based on the kprobes.c unification.

    arch/x86/kernel/step.c | 4 ----
    1 files changed, 0 insertions(+), 4 deletions(-)

    diff --git a/arch/x86/kernel/step.c b/arch/x86/kernel/step.c
    index 21ea22f..d73c537 100644
    --- a/arch/x86/kernel/step.c
    +++ b/arch/x86/kernel/step.c
    @@ -148,11 +148,7 @@ static void write_debugctlmsr(struct task_struct *child, unsigned long val)
    if (child != current)
    return;

    -#ifdef CONFIG_X86_64
    - wrmsrl(MSR_IA32_DEBUGCTLMSR, val);
    -#else
    wrmsr(MSR_IA32_DEBUGCTLMSR, val, 0);
    -#endif
    }

    /*
    --
    1.5.4.rc2.1164.g6451


    \
     
     \ /
      Last update: 2008-01-10 08:21    [W:0.019 / U:0.364 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site