From: Tony Lindgren <tony@atomide.com>
To: Hiroshi DOYU <Hiroshi.DOYU@nokia.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCH 1/3] ARM: Create an ARM debugfs root.
Date: Tue, 22 Apr 2008 12:18:27 -0700 [thread overview]
Message-ID: <20080422191827.GF24257@atomide.com> (raw)
In-Reply-To: <1208848630-6771-1-git-send-email-Hiroshi.DOYU@nokia.com>
* Hiroshi DOYU <Hiroshi.DOYU@nokia.com> [080422 00:17]:
> 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
This one should be discussed first on the linux-arm-kernel list.
Tony
prev parent reply other threads:[~2008-04-22 19:18 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Tony Lindgren [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20080422191827.GF24257@atomide.com \
--to=tony@atomide.com \
--cc=Hiroshi.DOYU@nokia.com \
--cc=linux-omap@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox