public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/3] ARM: Create an ARM debugfs root.
@ 2008-04-22  7:17 Hiroshi DOYU
  2008-04-22  7:17 ` [PATCH 2/3] ARM: OMAP: Create an OMAP " Hiroshi DOYU
  2008-04-22 19:18 ` [PATCH 1/3] ARM: Create an ARM debugfs root Tony Lindgren
  0 siblings, 2 replies; 5+ messages in thread
From: Hiroshi DOYU @ 2008-04-22  7:17 UTC (permalink / raw)
  To: linux-omap; +Cc: Hiroshi DOYU

Signed-off-by: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
---
 arch/arm/kernel/setup.c  |   14 ++++++++++++++
 include/asm-arm/system.h |    2 ++
 2 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/arch/arm/kernel/setup.c b/arch/arm/kernel/setup.c
index b7b0720..1b1e6e4 100644
--- a/arch/arm/kernel/setup.c
+++ b/arch/arm/kernel/setup.c
@@ -24,6 +24,7 @@
 #include <linux/interrupt.h>
 #include <linux/smp.h>
 #include <linux/fs.h>
+#include <linux/debugfs.h>
 
 #include <asm/cpu.h>
 #include <asm/elf.h>
@@ -1007,3 +1008,16 @@ const struct seq_operations cpuinfo_op = {
 	.stop	= c_stop,
 	.show	= c_show
 };
+
+#ifdef CONFIG_DEBUG_FS
+struct dentry *arm_debugfs_root;
+static int __init arm_debugfs_init(void)
+{
+	arm_debugfs_root = debugfs_create_dir("arm", NULL);
+	if (IS_ERR(arm_debugfs_root))
+		return PTR_ERR(arm_debugfs_root);
+
+	return 0;
+}
+arch_initcall(arm_debugfs_init);
+#endif
diff --git a/include/asm-arm/system.h b/include/asm-arm/system.h
index 6335de9..a6be185 100644
--- a/include/asm-arm/system.h
+++ b/include/asm-arm/system.h
@@ -378,6 +378,8 @@ extern void enable_hlt(void);
 #include <asm-generic/cmpxchg.h>
 #endif
 
+extern struct dentry *arm_debugfs_root;
+
 #endif /* __ASSEMBLY__ */
 
 #define arch_align_stack(x) (x)
-- 
1.5.5.rc2.6.gf58d


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-04-22 19:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-04-22  7:17 [PATCH 1/3] ARM: Create an ARM debugfs root Hiroshi DOYU
2008-04-22  7:17 ` [PATCH 2/3] ARM: OMAP: Create an OMAP " Hiroshi DOYU
2008-04-22  7:17   ` [PATCH 3/3] ARM: OMAP: Expose omap tags as debugfs binary blob Hiroshi DOYU
2008-04-22 19:23     ` Tony Lindgren
2008-04-22 19:18 ` [PATCH 1/3] ARM: Create an ARM debugfs root Tony Lindgren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox