]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: Sort out CPU type to name translation.
authorRalf Baechle <ralf@linux-mips.org>
Thu, 30 Oct 2008 13:38:45 +0000 (13:38 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 30 Oct 2008 14:44:34 +0000 (14:44 +0000)
commitbe6383cfc11a47e04f14988100b5a6452000cbf3
treef5513224d9fb6e3fb086a3c629fb76f53ac6fea6
parent2f5b7f396e199e9b28537170db6d2af88ff82a13
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>
arch/mips/kernel/cpu-probe.c