• Robin Murphy's avatar
    swiotlb: simplify debugfs setup · 35265899
    Robin Murphy authored
    Debugfs functions are already stubbed out for !CONFIG_DEBUG_FS, so we
    can remove most of the #ifdefs, just keeping one to manually optimise
    away the initcall when it would do nothing. We can also simplify the
    code itself by factoring out the directory creation and realising that
    the global io_tlb_default_mem now makes debugfs_dir redundant.
    Signed-off-by: default avatarRobin Murphy <robin.murphy@arm.com>
    Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
    35265899
swiotlb.c 23.7 KB