aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel
diff options
context:
space:
mode:
authorPaul Mundt <lethal@linux-sh.org>2008-03-07 03:19:58 -0500
committerPaul Mundt <lethal@linux-sh.org>2008-04-18 12:50:01 -0400
commitb9e393c2babb8b6956de52fc580b7c23f3629232 (patch)
tree94b02b6698c39c34da3100e79836cc2555e35e35 /arch/sh/kernel
parentb420b1a7a17ea88531d0e12b2f2679a0c8365803 (diff)
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.c14
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 @@
23#include <linux/kexec.h> 23#include <linux/kexec.h>
24#include <linux/module.h> 24#include <linux/module.h>
25#include <linux/smp.h> 25#include <linux/smp.h>
26#include <linux/err.h>
27#include <linux/debugfs.h>
26#include <asm/uaccess.h> 28#include <asm/uaccess.h>
27#include <asm/io.h> 29#include <asm/io.h>
28#include <asm/page.h> 30#include <asm/page.h>
@@ -443,3 +445,15 @@ const struct seq_operations cpuinfo_op = {
443 .show = show_cpuinfo, 445 .show = show_cpuinfo,
444}; 446};
445#endif /* CONFIG_PROC_FS */ 447#endif /* CONFIG_PROC_FS */
448
449struct dentry *sh_debugfs_root;
450
451static int __init sh_debugfs_init(void)
452{
453 sh_debugfs_root = debugfs_create_dir("sh", NULL);
454 if (IS_ERR(sh_debugfs_root))
455 return PTR_ERR(sh_debugfs_root);
456
457 return 0;
458}
459arch_initcall(sh_debugfs_init);