]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - include/linux/filter.h
firmware/psci: Expose PSCI conduit
[mirror_ubuntu-artful-kernel.git] / include / linux / filter.h
index bfef1e5734f8a8da5b06c3ad44d36bda7af3a06d..d9f58516ccc3f14517595605b2bb19950d111ae2 100644 (file)
@@ -779,6 +779,17 @@ static inline bool bpf_jit_blinding_enabled(void)
        return true;
 }
 
+static inline bool bpf_jit_fence_present(void)
+{
+       /* Check if lfence is present on CPU
+        */
+#ifdef CONFIG_X86
+       if (boot_cpu_has(X86_FEATURE_LFENCE_RDTSC))
+               return true;
+#endif
+       return false;
+}
+
 static inline bool bpf_jit_kallsyms_enabled(void)
 {
        /* There are a couple of corner cases where kallsyms should