diff options
author | Paul Mundt <lethal@linux-sh.org> | 2008-03-07 17:19:58 +0900 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2008-04-18 09:50:01 -0700 |
commit | b9e393c2babb8b6956de52fc580b7c23f3629232 (patch) | |
tree | 94b02b6698c39c34da3100e79836cc2555e35e35 /arch/sh/kernel | |
parent | b420b1a7a17ea88531d0e12b2f2679a0c8365803 (diff) | |
download | linux-b9e393c2babb8b6956de52fc580b7c23f3629232.tar.gz linux-b9e393c2babb8b6956de52fc580b7c23f3629232.tar.bz2 linux-b9e393c2babb8b6956de52fc580b7c23f3629232.zip |
sh: Create an sh debugfs root.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/kernel')
-rw-r--r-- | arch/sh/kernel/setup.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/sh/kernel/setup.c b/arch/sh/kernel/setup.c index ff4f54a47c07..23bc707c2b03 100644 --- a/arch/sh/kernel/setup.c +++ b/arch/sh/kernel/setup.c @@ -23,6 +23,8 @@ #include <linux/kexec.h> #include <linux/module.h> #include <linux/smp.h> +#include <linux/err.h> +#include <linux/debugfs.h> #include <asm/uaccess.h> #include <asm/io.h> #include <asm/page.h> @@ -443,3 +445,15 @@ const struct seq_operations cpuinfo_op = { .show = show_cpuinfo, }; #endif /* CONFIG_PROC_FS */ + +struct dentry *sh_debugfs_root; + +static int __init sh_debugfs_init(void) +{ + sh_debugfs_root = debugfs_create_dir("sh", NULL); + if (IS_ERR(sh_debugfs_root)) + return PTR_ERR(sh_debugfs_root); + + return 0; +} +arch_initcall(sh_debugfs_init); |