Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 183011
b: refs/heads/master
c: e119bff
h: refs/heads/master
i:
  183009: a72c6ca
  183007: 03a2cd1
v: v3
  • Loading branch information
Russell King committed Feb 15, 2010
1 parent 4325e45 commit 50c874f
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 373b32abf9b33616ad94283461bb2ab49e8371d5
refs/heads/master: e119bfff1f102f8d1505910cd6c09df55c776b43
4 changes: 4 additions & 0 deletions trunk/arch/arm/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ config HAVE_TCM
bool
select GENERIC_ALLOCATOR

config HAVE_PROC_CPU
bool

config NO_IOPORT
bool

Expand Down Expand Up @@ -1229,6 +1232,7 @@ config ALIGNMENT_TRAP
bool
depends on CPU_CP15_MMU
default y if !ARCH_EBSA110
select HAVE_PROC_CPU if PROC_FS
help
ARM processors cannot fetch/store information which is not
naturally aligned on the bus, i.e., a 4 byte fetch must start at an
Expand Down
15 changes: 14 additions & 1 deletion trunk/arch/arm/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <linux/interrupt.h>
#include <linux/smp.h>
#include <linux/fs.h>
#include <linux/proc_fs.h>

#include <asm/unified.h>
#include <asm/cpu.h>
Expand Down Expand Up @@ -782,9 +783,21 @@ static int __init topology_init(void)

return 0;
}

subsys_initcall(topology_init);

#ifdef CONFIG_HAVE_PROC_CPU
static int __init proc_cpu_init(void)
{
struct proc_dir_entry *res;

res = proc_mkdir("cpu", NULL);
if (!res)
return -ENOMEM;
return 0;
}
fs_initcall(proc_cpu_init);
#endif

static const char *hwcap_str[] = {
"swp",
"half",
Expand Down
6 changes: 1 addition & 5 deletions trunk/arch/arm/mm/alignment.c
Original file line number Diff line number Diff line change
Expand Up @@ -898,11 +898,7 @@ static int __init alignment_init(void)
#ifdef CONFIG_PROC_FS
struct proc_dir_entry *res;

res = proc_mkdir("cpu", NULL);
if (!res)
return -ENOMEM;

res = create_proc_entry("alignment", S_IWUSR | S_IRUGO, res);
res = create_proc_entry("cpu/alignment", S_IWUSR | S_IRUGO, NULL);
if (!res)
return -ENOMEM;

Expand Down

0 comments on commit 50c874f

Please sign in to comment.