sparc64: fix readout of cpu/fpu type
commitc275ce44929402664902cbb09d4f054b315623d7
authorSam Ravnborg <sam@ravnborg.org>
Sun, 18 Jan 2009 07:10:35 +0000 (17 23:10 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 18 Jan 2009 07:10:35 +0000 (17 23:10 -0800)
tree4016c6a4c82b55c55ab833df6f36c7635876761e
parentf3b8436ad9a8ad36b3c9fa1fe030c7f38e5d3d0b
sparc64: fix readout of cpu/fpu type

Meelis reported that on his box /proc/cpuinfo started
to reported "Unknow CPU" and the same did the boot messages.

It was a stupid bug I introduced when merging
cpu.c for 32 and 64 bit.

The code did an array reference where it had to search
for the right index.

Reported-by: Meelis Roos <mroos@linux.ee>
Tested-by: Meelis Roos <mroos@linux.ee>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc/kernel/cpu.c