x86_64,vsyscall: Make vsyscall emulation configurable
[linux-2.6-microblaze.git] / arch / x86 / include / asm / vsyscall.h
index 34f7d88..6ba66ee 100644 (file)
@@ -4,6 +4,7 @@
 #include <linux/seqlock.h>
 #include <uapi/asm/vsyscall.h>
 
+#ifdef CONFIG_X86_VSYSCALL_EMULATION
 extern void map_vsyscall(void);
 
 /*
@@ -11,5 +12,12 @@ extern void map_vsyscall(void);
  * Returns true if handled.
  */
 extern bool emulate_vsyscall(struct pt_regs *regs, unsigned long address);
+#else
+static inline void map_vsyscall(void) {}
+static inline bool emulate_vsyscall(struct pt_regs *regs, unsigned long address)
+{
+       return false;
+}
+#endif
 
 #endif /* _ASM_X86_VSYSCALL_H */