]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - drivers/misc/cxl/debugfs.c
cxl: Isolate a few bare-metal-specific calls
[mirror_ubuntu-artful-kernel.git] / drivers / misc / cxl / debugfs.c
index 18df6f44af2a80686fb5bf9711214c1d8fa880d9..5751899e0c175ad393420c03cc019948fdfa0b3c 100644 (file)
@@ -118,6 +118,10 @@ void cxl_debugfs_afu_remove(struct cxl_afu *afu)
 int __init cxl_debugfs_init(void)
 {
        struct dentry *ent;
+
+       if (!cpu_has_feature(CPU_FTR_HVMODE))
+               return 0;
+
        ent = debugfs_create_dir("cxl", NULL);
        if (IS_ERR(ent))
                return PTR_ERR(ent);