Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 91435
b: refs/heads/master
c: 0276c13
h: refs/heads/master
i:
  91433: 7c6c2b2
  91431: 0ba4e3a
v: v3
  • Loading branch information
Marian Balakowicz authored and Paul Mackerras committed Mar 25, 2008
1 parent 560c623 commit 9de4ebe
Show file tree
Hide file tree
Showing 2 changed files with 10 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: bed04a4413376265746053be2a9cfbfc80c98ec9
refs/heads/master: 0276c1368f111b1fd75e6fe0bf4cd78a6903798f
9 changes: 9 additions & 0 deletions trunk/arch/powerpc/kernel/setup-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ static int show_cpuinfo(struct seq_file *m, void *v)
unsigned short min;

if (cpu_id == NR_CPUS) {
struct device_node *root;
const char *model = NULL;
#if defined(CONFIG_SMP) && defined(CONFIG_PPC32)
unsigned long bogosum = 0;
int i;
Expand All @@ -178,6 +180,13 @@ static int show_cpuinfo(struct seq_file *m, void *v)
seq_printf(m, "timebase\t: %lu\n", ppc_tb_freq);
if (ppc_md.name)
seq_printf(m, "platform\t: %s\n", ppc_md.name);
root = of_find_node_by_path("/");
if (root)
model = of_get_property(root, "model", NULL);
if (model)
seq_printf(m, "model\t\t: %s\n", model);
of_node_put(root);

if (ppc_md.show_cpuinfo != NULL)
ppc_md.show_cpuinfo(m);

Expand Down

0 comments on commit 9de4ebe

Please sign in to comment.