@@ -17,6 +17,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <linux/debugfs.h>
#include <linux/export.h>
#include <linux/kernel.h>
#include <linux/stddef.h>
@@ -398,6 +399,19 @@ static int __init arm64_device_init(void)
}
arch_initcall_sync(arm64_device_init);
+struct dentry *arch_debugfs_dir;
+EXPORT_SYMBOL(arch_debugfs_dir);
+
+static int __init arch_kdebugfs_init(void)
+{
+ arch_debugfs_dir = debugfs_create_dir("arm64", NULL);
+ if (IS_ERR_OR_NULL(arch_debugfs_dir))
+ return -ENOMEM;
+
+ return 0;
+}
+arch_initcall(arch_kdebugfs_init);
+
static DEFINE_PER_CPU(struct cpu, cpu_data);
static int __init topology_init(void)