Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 283195
b: refs/heads/master
c: 7123a6c
h: refs/heads/master
i:
  283193: f39ec2d
  283191: 873b124
v: v3
  • Loading branch information
Mark Salter committed Jan 8, 2012
1 parent 8205868 commit 16f25da
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d5981a5f16ed8d648b7f44e4aa19cd25733518a3
refs/heads/master: 7123a6cab02ebc5dca61d0e341267578b245f2f3
15 changes: 15 additions & 0 deletions trunk/arch/c6x/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include <linux/delay.h>
#include <linux/sched.h>
#include <linux/clk.h>
#include <linux/cpu.h>
#include <linux/fs.h>
#include <linux/of.h>

Expand Down Expand Up @@ -493,3 +494,17 @@ const struct seq_operations cpuinfo_op = {
c_next,
show_cpuinfo
};

static struct cpu cpu_devices[NR_CPUS];

static int __init topology_init(void)
{
int i;

for_each_present_cpu(i)
register_cpu(&cpu_devices[i], i);

return 0;
}

subsys_initcall(topology_init);

0 comments on commit 16f25da

Please sign in to comment.