https://github.com/torvalds/linux
Revision cea7e2dfdef53fe55f359d00da562a268be06fd2 authored by Ralf Baechle on 30 October 2008, 13:38:45 UTC, committed by Ralf Baechle on 30 October 2008, 14:44:34 UTC
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>
1 parent 255a12f
History
Tip revision: cea7e2dfdef53fe55f359d00da562a268be06fd2 authored by Ralf Baechle on 30 October 2008, 13:38:45 UTC
MIPS: Sort out CPU type to name translation.
Tip revision: cea7e2d
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
usr
virt
.gitignore -rw-r--r-- 867 bytes
.mailmap -rw-r--r-- 3.7 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.0 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 102.0 KB
Makefile -rw-r--r-- 55.5 KB
README -rw-r--r-- 16.5 KB
REPORTING-BUGS -rw-r--r-- 3.1 KB

README

back to top