On 9/1/19 5:54 PM, Fredrik Noring wrote: > The system type is shown in the /proc/cpuinfo file: > > # grep system' 'type /proc/cpuinfo > system type : Sony PlayStation 2 > > Signed-off-by: Fredrik Noring <noring@nocrew.org> > --- > arch/mips/ps2/identify.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > diff --git a/arch/mips/ps2/identify.c b/arch/mips/ps2/identify.c > index 264fdc13dc43..579148fb79c4 100644 > --- a/arch/mips/ps2/identify.c > +++ b/arch/mips/ps2/identify.c > @@ -9,11 +9,17 @@ > #include <linux/init.h> > #include <linux/printk.h> > > +#include <asm/bootinfo.h> > #include <asm/prom.h> > > #include <asm/mach-ps2/rom.h> > #include <asm/mach-ps2/scmd.h> > > +const char *get_system_type(void) > +{ > + return "Sony PlayStation 2"; > +} > + > static int __init set_machine_name_by_scmd(void) > { > const struct scmd_machine_name machine = scmd_read_machine_name(); > Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
diff --git a/arch/mips/ps2/identify.c b/arch/mips/ps2/identify.c index 264fdc13dc43..579148fb79c4 100644 --- a/arch/mips/ps2/identify.c +++ b/arch/mips/ps2/identify.c @@ -9,11 +9,17 @@ #include <linux/init.h> #include <linux/printk.h> +#include <asm/bootinfo.h> #include <asm/prom.h> #include <asm/mach-ps2/rom.h> #include <asm/mach-ps2/scmd.h> +const char *get_system_type(void) +{ + return "Sony PlayStation 2"; +} + static int __init set_machine_name_by_scmd(void) { const struct scmd_machine_name machine = scmd_read_machine_name();
The system type is shown in the /proc/cpuinfo file: # grep system' 'type /proc/cpuinfo system type : Sony PlayStation 2 Signed-off-by: Fredrik Noring <noring@nocrew.org> --- arch/mips/ps2/identify.c | 6 ++++++ 1 file changed, 6 insertions(+)