aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/time_64.c
diff options
context:
space:
mode:
authorGlauber Costa <gcosta@redhat.com>2008-07-11 13:10:13 -0400
committerIngo Molnar <mingo@elte.hu>2008-10-13 04:21:34 -0400
commit8de0b8a7eaf274d197698b035090eeb805f62de6 (patch)
treeccca2dc5d9f16247fcb5d758cfcce1ebe11a7289 /arch/x86/kernel/time_64.c
parentefa323abd424a2450f810b96203c1fbf138998b9 (diff)
x86: use user_mode_vm instead of user_mode
For x86_64, it does not really matter. But makes the code equal to i386. Signed-off-by: Glauber Costa <gcosta@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/time_64.c')
-rw-r--r--arch/x86/kernel/time_64.c2
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