diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-01-10 12:23:29 -0500 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2010-02-15 16:39:12 -0500 |
commit | e119bfff1f102f8d1505910cd6c09df55c776b43 (patch) | |
tree | 9965ed156096521c3106f7451b758d2bf08f0c68 /arch/arm/mm | |
parent | 373b32abf9b33616ad94283461bb2ab49e8371d5 (diff) |
ARM: Move creation of /proc/cpu out of alignment.c
Always creating this directory avoids other users having to jump
through silly hoops when they want to share this directory.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/mm')
-rw-r--r-- | arch/arm/mm/alignment.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/arm/mm/alignment.c b/arch/arm/mm/alignment.c index b270d6228fe2..0c5eb6983cef 100644 --- a/arch/arm/mm/alignment.c +++ b/arch/arm/mm/alignment.c | |||
@@ -898,11 +898,7 @@ static int __init alignment_init(void) | |||
898 | #ifdef CONFIG_PROC_FS | 898 | #ifdef CONFIG_PROC_FS |
899 | struct proc_dir_entry *res; | 899 | struct proc_dir_entry *res; |
900 | 900 | ||
901 | res = proc_mkdir("cpu", NULL); | 901 | res = create_proc_entry("cpu/alignment", S_IWUSR | S_IRUGO, NULL); |
902 | if (!res) | ||
903 | return -ENOMEM; | ||
904 | |||
905 | res = create_proc_entry("alignment", S_IWUSR | S_IRUGO, res); | ||
906 | if (!res) | 902 | if (!res) |
907 | return -ENOMEM; | 903 | return -ENOMEM; |
908 | 904 | ||