MIPS: prom.c: Only show machine name when it is available
PATCH 1/1 MIPS: prom.c: Only show machine name when it is available
'Unknown' machine name in /proc/cpuinfo will make users confused. Therefore, it is better to show it only when it is available.
Signed-off-by Kelvin Cheung <[email protected]>
--- arch/mips/kernel/prom.c | 3 +++ 1 file changed, 3 insertions(+)
arch/mips/kernel/prom.c +3 -0
@@ -33,6 +33,9 @@ __init void mips_set_machine_name(const char *name)char *mips_get_machine_name (void ) { +if (!strncmp (mips_machine_name,"Unknown" ,64 )) +return NULL ; +return mips_machine_name; }
Signature · 1 line
1.9.1