diff mbox series

[047/120] MIPS: PS2: Let the system type be Sony PlayStation 2

Message ID cf9924007a0e9515d3bd18bcca44c8908028b90a.1567326213.git.noring@nocrew.org (mailing list archive)
State RFC
Headers show
Series Linux for the PlayStation 2 | expand

Commit Message

Fredrik Noring Sept. 1, 2019, 3:54 p.m. UTC
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(+)

Comments

Philippe Mathieu-Daudé Sept. 1, 2019, 11:09 p.m. UTC | #1
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 mbox series

Patch

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();