Shimoda, Yoshihiro | 24 Jul 2012 02:53

[PATCH] sh: modify checkcpu() for SH-4A

Even if using CPU is SH-4A, the previous code always put "SH4".
This patch fixes it.

Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh <at> renesas.com>
---
 arch/sh/cpu/sh4/cpu.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/arch/sh/cpu/sh4/cpu.c b/arch/sh/cpu/sh4/cpu.c
index f136758..7da1ef7 100644
--- a/arch/sh/cpu/sh4/cpu.c
+++ b/arch/sh/cpu/sh4/cpu.c
 <at>  <at>  -29,7 +29,11  <at>  <at> 

 int checkcpu(void)
 {
+#ifdef CONFIG_SH4A
+	puts("CPU: SH-4A\n");
+#else
 	puts("CPU: SH4\n");
+#endif
 	return 0;
 }

--

-- 
1.7.1
Nobuhiro Iwamatsu | 24 Jul 2012 03:38
Gravatar

Re: [PATCH] sh: modify checkcpu() for SH-4A

Applied, thanks.

Best regards,
  Nobuhiro

2012/7/24 Shimoda, Yoshihiro <yoshihiro.shimoda.uh <at> renesas.com>:
> Even if using CPU is SH-4A, the previous code always put "SH4".
> This patch fixes it.
>
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh <at> renesas.com>
> ---
>  arch/sh/cpu/sh4/cpu.c |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/arch/sh/cpu/sh4/cpu.c b/arch/sh/cpu/sh4/cpu.c
> index f136758..7da1ef7 100644
> --- a/arch/sh/cpu/sh4/cpu.c
> +++ b/arch/sh/cpu/sh4/cpu.c
>  <at>  <at>  -29,7 +29,11  <at>  <at> 
>
>  int checkcpu(void)
>  {
> +#ifdef CONFIG_SH4A
> +       puts("CPU: SH-4A\n");
> +#else
>         puts("CPU: SH4\n");
> +#endif
>         return 0;
>  }
>
(Continue reading)


Gmane