Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 970
b: refs/heads/master
c: 696c2b9
h: refs/heads/master
v: v3
  • Loading branch information
Kumar Gala authored and Linus Torvalds committed May 5, 2005
1 parent 2e8ac88 commit 759b465
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 20 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: 075d6eb16d273dab7b7b4b83fcee8bce4ee387ed
refs/heads/master: 696c2b9f97c2439e9fb299650041ec750df46865
37 changes: 18 additions & 19 deletions trunk/arch/ppc/kernel/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,27 +221,26 @@ int show_cpuinfo(struct seq_file *m, void *v)
return err;
}

switch (PVR_VER(pvr)) {
case 0x0020: /* 403 family */
maj = PVR_MAJ(pvr) + 1;
min = PVR_MIN(pvr);
break;
case 0x1008: /* 740P/750P ?? */
maj = ((pvr >> 8) & 0xFF) - 1;
min = pvr & 0xFF;
break;
case 0x8083: /* e300 */
maj = PVR_MAJ(pvr);
min = PVR_MIN(pvr);
break;
case 0x8020: /* e500 */
/* If we are a Freescale core do a simple check so
* we dont have to keep adding cases in the future */
if ((PVR_VER(pvr) & 0x8000) == 0x8000) {
maj = PVR_MAJ(pvr);
min = PVR_MIN(pvr);
break;
default:
maj = (pvr >> 8) & 0xFF;
min = pvr & 0xFF;
break;
} else {
switch (PVR_VER(pvr)) {
case 0x0020: /* 403 family */
maj = PVR_MAJ(pvr) + 1;
min = PVR_MIN(pvr);
break;
case 0x1008: /* 740P/750P ?? */
maj = ((pvr >> 8) & 0xFF) - 1;
min = pvr & 0xFF;
break;
default:
maj = (pvr >> 8) & 0xFF;
min = pvr & 0xFF;
break;
}
}

seq_printf(m, "revision\t: %hd.%hd (pvr %04x %04x)\n",
Expand Down

0 comments on commit 759b465

Please sign in to comment.