From: Ralf Baechle Date: Thu, 30 Oct 2008 13:38:45 +0000 (+0000) Subject: MIPS: Sort out CPU type to name translation. X-Git-Tag: v2.6.28-rc3~36^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cea7e2dfdef53fe55f359d00da562a268be06fd2;p=pandora-kernel.git MIPS: Sort out CPU type to name translation. As noticed by David Daney , 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 --- Reading git-diff-tree failed