diff options
author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2013-07-24 04:35:33 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-11 21:35:25 -0400 |
commit | 72e2729ea923cbbbeda03e5fce14f50b0707f724 (patch) | |
tree | 01706ddb3a5f44e5005318e7857779111830fffb | |
parent | 21dd5ff6d6bd6be287e3e627f623075085eabb08 (diff) |
s390: add support for IBM zBC12 machine
commit 594712276e737961d30e11eae80d403b2b3815df upstream.
Just add the new model number where appropiate.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | arch/s390/Kconfig | 7 | ||||
-rw-r--r-- | arch/s390/kernel/setup.c | 1 | ||||
-rw-r--r-- | arch/s390/mm/init.c | 1 | ||||
-rw-r--r-- | arch/s390/oprofile/init.c | 2 |
4 files changed, 7 insertions, 4 deletions
diff --git a/arch/s390/Kconfig b/arch/s390/Kconfig index da183c5a103c..97dcbea97a1c 100644 --- a/arch/s390/Kconfig +++ b/arch/s390/Kconfig | |||
@@ -227,11 +227,12 @@ config MARCH_Z196 | |||
227 | not work on older machines. | 227 | not work on older machines. |
228 | 228 | ||
229 | config MARCH_ZEC12 | 229 | config MARCH_ZEC12 |
230 | bool "IBM zEC12" | 230 | bool "IBM zBC12 and zEC12" |
231 | select HAVE_MARCH_ZEC12_FEATURES if 64BIT | 231 | select HAVE_MARCH_ZEC12_FEATURES if 64BIT |
232 | help | 232 | help |
233 | Select this to enable optimizations for IBM zEC12 (2827 series). The | 233 | Select this to enable optimizations for IBM zBC12 and zEC12 (2828 and |
234 | kernel will be slightly faster but will not work on older machines. | 234 | 2827 series). The kernel will be slightly faster but will not work on |
235 | older machines. | ||
235 | 236 | ||
236 | endchoice | 237 | endchoice |
237 | 238 | ||
diff --git a/arch/s390/kernel/setup.c b/arch/s390/kernel/setup.c index 0a49095104c9..8ad9413148bf 100644 --- a/arch/s390/kernel/setup.c +++ b/arch/s390/kernel/setup.c | |||
@@ -998,6 +998,7 @@ static void __init setup_hwcaps(void) | |||
998 | strcpy(elf_platform, "z196"); | 998 | strcpy(elf_platform, "z196"); |
999 | break; | 999 | break; |
1000 | case 0x2827: | 1000 | case 0x2827: |
1001 | case 0x2828: | ||
1001 | strcpy(elf_platform, "zEC12"); | 1002 | strcpy(elf_platform, "zEC12"); |
1002 | break; | 1003 | break; |
1003 | } | 1004 | } |
diff --git a/arch/s390/mm/init.c b/arch/s390/mm/init.c index 89ebae4008f2..eba15f18fd38 100644 --- a/arch/s390/mm/init.c +++ b/arch/s390/mm/init.c | |||
@@ -69,6 +69,7 @@ static void __init setup_zero_pages(void) | |||
69 | order = 2; | 69 | order = 2; |
70 | break; | 70 | break; |
71 | case 0x2827: /* zEC12 */ | 71 | case 0x2827: /* zEC12 */ |
72 | case 0x2828: /* zEC12 */ | ||
72 | default: | 73 | default: |
73 | order = 5; | 74 | order = 5; |
74 | break; | 75 | break; |
diff --git a/arch/s390/oprofile/init.c b/arch/s390/oprofile/init.c index ffeb17ce7f31..930783d2c99b 100644 --- a/arch/s390/oprofile/init.c +++ b/arch/s390/oprofile/init.c | |||
@@ -440,7 +440,7 @@ static int oprofile_hwsampler_init(struct oprofile_operations *ops) | |||
440 | switch (id.machine) { | 440 | switch (id.machine) { |
441 | case 0x2097: case 0x2098: ops->cpu_type = "s390/z10"; break; | 441 | case 0x2097: case 0x2098: ops->cpu_type = "s390/z10"; break; |
442 | case 0x2817: case 0x2818: ops->cpu_type = "s390/z196"; break; | 442 | case 0x2817: case 0x2818: ops->cpu_type = "s390/z196"; break; |
443 | case 0x2827: ops->cpu_type = "s390/zEC12"; break; | 443 | case 0x2827: case 0x2828: ops->cpu_type = "s390/zEC12"; break; |
444 | default: return -ENODEV; | 444 | default: return -ENODEV; |
445 | } | 445 | } |
446 | } | 446 | } |