summaryrefslogtreecommitdiffstats
path: root/arch/x86/kernel/time_64.c
diff options
context:
space:
mode:
authorGlauber Costa <gcosta@redhat.com>2008-07-11 14:10:13 -0300
committerIngo Molnar <mingo@elte.hu>2008-10-13 10:21:34 +0200
commit8de0b8a7eaf274d197698b035090eeb805f62de6 (patch)
treeccca2dc5d9f16247fcb5d758cfcce1ebe11a7289 /arch/x86/kernel/time_64.c
parentefa323abd424a2450f810b96203c1fbf138998b9 (diff)
downloadblackbird-obmc-linux-8de0b8a7eaf274d197698b035090eeb805f62de6.tar.gz
blackbird-obmc-linux-8de0b8a7eaf274d197698b035090eeb805f62de6.zip
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)
/* Assume the lock function has either no stack frame or a copy
of flags from PUSHF
Eflags always has bits 22 and up cleared unlike kernel addresses. */
- if (!user_mode(regs) && in_lock_functions(pc)) {
+ if (!user_mode_vm(regs) && in_lock_functions(pc)) {
#ifdef CONFIG_FRAME_POINTER
return *(unsigned long *)(regs->bp + sizeof(long));
#else
OpenPOWER on IntegriCloud