diff mbox series

MIPS: Add the missing 'CPU_1074K' into __get_cpu_type()

Message ID 20200923065312.44851-1-liwei391@huawei.com (mailing list archive)
State Accepted
Commit e393fbe6fa27af23f78df6e16a8fd2963578a8c4
Headers show
Series MIPS: Add the missing 'CPU_1074K' into __get_cpu_type() | expand

Commit Message

Wei Li Sept. 23, 2020, 6:53 a.m. UTC
Commit 442e14a2c55e ("MIPS: Add 1074K CPU support explicitly.") split
1074K from the 74K as an unique CPU type, while it missed to add the
'CPU_1074K' in __get_cpu_type(). So let's add it back.

Fixes: 442e14a2c55e ("MIPS: Add 1074K CPU support explicitly.")
Signed-off-by: Wei Li <liwei391@huawei.com>
---
 arch/mips/include/asm/cpu-type.h | 1 +
 1 file changed, 1 insertion(+)

Comments

Thomas Bogendoerfer Sept. 24, 2020, 1:55 p.m. UTC | #1
On Wed, Sep 23, 2020 at 02:53:12PM +0800, Wei Li wrote:
> Commit 442e14a2c55e ("MIPS: Add 1074K CPU support explicitly.") split
> 1074K from the 74K as an unique CPU type, while it missed to add the
> 'CPU_1074K' in __get_cpu_type(). So let's add it back.
> 
> Fixes: 442e14a2c55e ("MIPS: Add 1074K CPU support explicitly.")
> Signed-off-by: Wei Li <liwei391@huawei.com>
> ---
>  arch/mips/include/asm/cpu-type.h | 1 +
>  1 file changed, 1 insertion(+)

applied to mips-fixes.

Thomas.
diff mbox series

Patch

diff --git a/arch/mips/include/asm/cpu-type.h b/arch/mips/include/asm/cpu-type.h
index 75a7a382da09..3288cef4b168 100644
--- a/arch/mips/include/asm/cpu-type.h
+++ b/arch/mips/include/asm/cpu-type.h
@@ -47,6 +47,7 @@  static inline int __pure __get_cpu_type(const int cpu_type)
 	case CPU_34K:
 	case CPU_1004K:
 	case CPU_74K:
+	case CPU_1074K:
 	case CPU_M14KC:
 	case CPU_M14KEC:
 	case CPU_INTERAPTIV: