diff options
Diffstat (limited to 'arch/x86/kernel/time_64.c')
-rw-r--r-- | arch/x86/kernel/time_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/time_64.c b/arch/x86/kernel/time_64.c index 7fd995edb762..0469243ae1bd 100644 --- a/arch/x86/kernel/time_64.c +++ b/arch/x86/kernel/time_64.c | |||
@@ -33,7 +33,7 @@ unsigned long profile_pc(struct pt_regs *regs) | |||
33 | /* Assume the lock function has either no stack frame or a copy | 33 | /* Assume the lock function has either no stack frame or a copy |
34 | of flags from PUSHF | 34 | of flags from PUSHF |
35 | Eflags always has bits 22 and up cleared unlike kernel addresses. */ | 35 | Eflags always has bits 22 and up cleared unlike kernel addresses. */ |
36 | if (!user_mode(regs) && in_lock_functions(pc)) { | 36 | if (!user_mode_vm(regs) && in_lock_functions(pc)) { |
37 | #ifdef CONFIG_FRAME_POINTER | 37 | #ifdef CONFIG_FRAME_POINTER |
38 | return *(unsigned long *)(regs->bp + sizeof(long)); | 38 | return *(unsigned long *)(regs->bp + sizeof(long)); |
39 | #else | 39 | #else |