Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

MIPS: generic: Allow boards to set system type

Check for the system_type variable in the get_system_type() function. If
non-NULL, return it as the system type.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>

authored by

Paul Cercueil and committed by
Thomas Bogendoerfer
84054199 c434b9f8

+5
+5
arch/mips/generic/proc.c
··· 8 8 9 9 #include <asm/bootinfo.h> 10 10 11 + char *system_type; 12 + 11 13 const char *get_system_type(void) 12 14 { 13 15 const char *str; 14 16 int err; 17 + 18 + if (system_type) 19 + return system_type; 15 20 16 21 err = of_property_read_string(of_root, "model", &str); 17 22 if (!err)