x86: Fix code patching for paravirt-alternatives on 486
[safe/jmp/linux-2.6] / arch / x86 / kernel / vsyscall_64.c
index 2f90202..25ee06a 100644 (file)
  *  want per guest time just set the kernel.vsyscall64 sysctl to 0.
  */
 
-/* Protect userspace from profiling */
-#ifdef CONFIG_TRACE_UNLIKELY_PROFILE
-# undef likely
-# undef unlikely
-# define likely(x)             likely_notrace(x)
-# define unlikely(x)           unlikely_notrace(x)
-#endif
+/* Disable profiling for userspace code: */
+#define DISABLE_BRANCH_PROFILING
 
 #include <linux/time.h>
 #include <linux/init.h>
@@ -136,6 +131,7 @@ static __always_inline void do_vgettimeofday(struct timeval * tv)
                        gettimeofday(tv,NULL);
                        return;
                }
+
                now = vread();
                base = __vsyscall_gtod_data.clock.cycle_last;
                mask = __vsyscall_gtod_data.clock.mask;