Commit ae79cdaa authored by venkatesh.pallipadi@intel.com's avatar venkatesh.pallipadi@intel.com Committed by H. Peter Anvin

x86: Add a arch directory for x86 under debugfs

Add a directory for x86 arch under debugfs. Can be used to accumulate all
x86 specific debugfs files.
Signed-off-by: default avatarVenkatesh Pallipadi <venkatesh.pallipadi@intel.com>
Signed-off-by: default avatarH. Peter Anvin <hpa@zytor.com>
parent 50515af2
...@@ -12,9 +12,13 @@ ...@@ -12,9 +12,13 @@
#include <linux/init.h> #include <linux/init.h>
#include <linux/io.h> #include <linux/io.h>
#include <linux/mm.h> #include <linux/mm.h>
#include <linux/module.h>
#include <asm/setup.h> #include <asm/setup.h>
struct dentry *arch_debugfs_dir;
EXPORT_SYMBOL(arch_debugfs_dir);
#ifdef CONFIG_DEBUG_BOOT_PARAMS #ifdef CONFIG_DEBUG_BOOT_PARAMS
struct setup_data_node { struct setup_data_node {
u64 paddr; u64 paddr;
...@@ -209,6 +213,10 @@ static int __init arch_kdebugfs_init(void) ...@@ -209,6 +213,10 @@ static int __init arch_kdebugfs_init(void)
{ {
int error = 0; int error = 0;
arch_debugfs_dir = debugfs_create_dir("x86", NULL);
if (!arch_debugfs_dir)
return -ENOMEM;
#ifdef CONFIG_DEBUG_BOOT_PARAMS #ifdef CONFIG_DEBUG_BOOT_PARAMS
error = boot_params_kdebugfs_init(); error = boot_params_kdebugfs_init();
#endif #endif
......
...@@ -26,6 +26,8 @@ struct debugfs_blob_wrapper { ...@@ -26,6 +26,8 @@ struct debugfs_blob_wrapper {
unsigned long size; unsigned long size;
}; };
extern struct dentry *arch_debugfs_dir;
#if defined(CONFIG_DEBUG_FS) #if defined(CONFIG_DEBUG_FS)
/* declared over in file.c */ /* declared over in file.c */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment