diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2008-10-30 14:38:45 +0100 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-10-30 15:44:34 +0100 |
commit | cea7e2dfdef53fe55f359d00da562a268be06fd2 (patch) | |
tree | f5513224d9fb6e3fb086a3c629fb76f53ac6fea6 /drivers | |
parent | MIPS: Use the new byteorder headers (diff) | |
download | linux-cea7e2dfdef53fe55f359d00da562a268be06fd2.tar.xz linux-cea7e2dfdef53fe55f359d00da562a268be06fd2.zip |
MIPS: Sort out CPU type to name translation.
As noticed by David Daney <ddaney@caviumnetworks.com>, the old long switch
statement did not comply with the Linux C coding style. It was also yet
another place of code to be changed when adding a new processor type
leading to annoying bugs for example in /proc/cpuinfo.
Fixed by moving the setting of the CPU type string into the core of the
probing code and a few BUG_ON() test to ensure the CPU probing code indeed
did its job and removing multiple now redundant tests.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions