Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 127067
b: refs/heads/master
c: a5f0717
h: refs/heads/master
i:
  127065: 9439b60
  127063: f640b93
v: v3
  • Loading branch information
Michael Hennerich authored and Bryan Wu committed Nov 18, 2008
1 parent 3882f35 commit d54f6c2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 8eb3e3bfd5544c4549a52e3cfc3df2be0b224dbd
refs/heads/master: a5f0717e51c5fe6cdaf885b7f621ba48ae745bfb
7 changes: 4 additions & 3 deletions trunk/arch/blackfin/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
char *cpu, *mmu, *fpu, *vendor, *cache;
uint32_t revid;

u_long sclk = 0;
u_long sclk, cclk;
u_int icache_size = BFIN_ICACHESIZE / 1024, dcache_size = 0, dsup_banks = 0;
struct blackfin_cpudata *cpudata = &per_cpu(cpu_data, *(unsigned int *)v);

Expand All @@ -1042,6 +1042,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
revid = bfin_revid();

sclk = get_sclk();
cclk = get_cclk();

switch (bfin_read_CHIPID() & CHIPID_MANUFACTURE) {
case 0xca:
Expand All @@ -1063,7 +1064,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)

seq_printf(m, "model name\t: ADSP-%s %lu(MHz CCLK) %lu(MHz SCLK) (%s)\n"
"stepping\t: %d\n",
cpu, cpudata->cclk/1000000, sclk/1000000,
cpu, cclk/1000000, sclk/1000000,
#ifdef CONFIG_MPU
"mpu on",
#else
Expand All @@ -1072,7 +1073,7 @@ static int show_cpuinfo(struct seq_file *m, void *v)
revid);

seq_printf(m, "cpu MHz\t\t: %lu.%03lu/%lu.%03lu\n",
cpudata->cclk/1000000, cpudata->cclk%1000000,
cclk/1000000, cclk%1000000,
sclk/1000000, sclk%1000000);
seq_printf(m, "bogomips\t: %lu.%02lu\n"
"Calibration\t: %lu loops\n",
Expand Down

0 comments on commit d54f6c2

Please sign in to comment.