diff options
| author | Ingo Molnar <mingo@elte.hu> | 2011-12-06 00:42:35 -0500 |
|---|---|---|
| committer | Ingo Molnar <mingo@elte.hu> | 2011-12-06 00:43:49 -0500 |
| commit | d6c1c49de577fa292af2449817364b7d89b574d8 (patch) | |
| tree | e97cf88a318f50eb23c18d790e8b0bcf7bb47169 /arch/sh | |
| parent | 9dde9dc0a81c7aeb863b35121d09011f09b4897c (diff) | |
| parent | ddf6e0e50723b62ac76ed18eb53e9417c6eefba7 (diff) | |
Merge branch 'perf/urgent' into perf/core
Merge reason: Add these cherry-picked commits so that future changes
on perf/core don't conflict.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/sh')
| -rw-r--r-- | arch/sh/include/asm/page.h | 5 | ||||
| -rw-r--r-- | arch/sh/include/asm/unistd_32.h | 4 | ||||
| -rw-r--r-- | arch/sh/include/asm/unistd_64.h | 4 | ||||
| -rw-r--r-- | arch/sh/kernel/cpu/sh2a/setup-sh7203.c | 16 | ||||
| -rw-r--r-- | arch/sh/kernel/syscalls_32.S | 2 | ||||
| -rw-r--r-- | arch/sh/kernel/syscalls_64.S | 2 |
6 files changed, 27 insertions, 6 deletions
diff --git a/arch/sh/include/asm/page.h b/arch/sh/include/asm/page.h index 0dca9a5c6be..15d970328f7 100644 --- a/arch/sh/include/asm/page.h +++ b/arch/sh/include/asm/page.h | |||
| @@ -151,8 +151,13 @@ typedef struct page *pgtable_t; | |||
| 151 | #endif /* !__ASSEMBLY__ */ | 151 | #endif /* !__ASSEMBLY__ */ |
| 152 | 152 | ||
| 153 | #ifdef CONFIG_UNCACHED_MAPPING | 153 | #ifdef CONFIG_UNCACHED_MAPPING |
| 154 | #if defined(CONFIG_29BIT) | ||
| 155 | #define UNCAC_ADDR(addr) P2SEGADDR(addr) | ||
| 156 | #define CAC_ADDR(addr) P1SEGADDR(addr) | ||
| 157 | #else | ||
| 154 | #define UNCAC_ADDR(addr) ((addr) - PAGE_OFFSET + uncached_start) | 158 | #define UNCAC_ADDR(addr) ((addr) - PAGE_OFFSET + uncached_start) |
| 155 | #define CAC_ADDR(addr) ((addr) - uncached_start + PAGE_OFFSET) | 159 | #define CAC_ADDR(addr) ((addr) - uncached_start + PAGE_OFFSET) |
| 160 | #endif | ||
| 156 | #else | 161 | #else |
| 157 | #define UNCAC_ADDR(addr) ((addr)) | 162 | #define UNCAC_ADDR(addr) ((addr)) |
| 158 | #define CAC_ADDR(addr) ((addr)) | 163 | #define CAC_ADDR(addr) ((addr)) |
diff --git a/arch/sh/include/asm/unistd_32.h b/arch/sh/include/asm/unistd_32.h index 3432008d288..152b8627a18 100644 --- a/arch/sh/include/asm/unistd_32.h +++ b/arch/sh/include/asm/unistd_32.h | |||
| @@ -375,8 +375,10 @@ | |||
| 375 | #define __NR_syncfs 362 | 375 | #define __NR_syncfs 362 |
| 376 | #define __NR_sendmmsg 363 | 376 | #define __NR_sendmmsg 363 |
| 377 | #define __NR_setns 364 | 377 | #define __NR_setns 364 |
| 378 | #define __NR_process_vm_readv 365 | ||
| 379 | #define __NR_process_vm_writev 366 | ||
| 378 | 380 | ||
| 379 | #define NR_syscalls 365 | 381 | #define NR_syscalls 367 |
| 380 | 382 | ||
| 381 | #ifdef __KERNEL__ | 383 | #ifdef __KERNEL__ |
| 382 | 384 | ||
diff --git a/arch/sh/include/asm/unistd_64.h b/arch/sh/include/asm/unistd_64.h index ec9898665f2..c330c23db5a 100644 --- a/arch/sh/include/asm/unistd_64.h +++ b/arch/sh/include/asm/unistd_64.h | |||
| @@ -396,10 +396,12 @@ | |||
| 396 | #define __NR_syncfs 373 | 396 | #define __NR_syncfs 373 |
| 397 | #define __NR_sendmmsg 374 | 397 | #define __NR_sendmmsg 374 |
| 398 | #define __NR_setns 375 | 398 | #define __NR_setns 375 |
| 399 | #define __NR_process_vm_readv 376 | ||
| 400 | #define __NR_process_vm_writev 377 | ||
| 399 | 401 | ||
| 400 | #ifdef __KERNEL__ | 402 | #ifdef __KERNEL__ |
| 401 | 403 | ||
| 402 | #define NR_syscalls 376 | 404 | #define NR_syscalls 378 |
| 403 | 405 | ||
| 404 | #define __ARCH_WANT_IPC_PARSE_VERSION | 406 | #define __ARCH_WANT_IPC_PARSE_VERSION |
| 405 | #define __ARCH_WANT_OLD_READDIR | 407 | #define __ARCH_WANT_OLD_READDIR |
diff --git a/arch/sh/kernel/cpu/sh2a/setup-sh7203.c b/arch/sh/kernel/cpu/sh2a/setup-sh7203.c index a43124e608c..0bd744f9a3b 100644 --- a/arch/sh/kernel/cpu/sh2a/setup-sh7203.c +++ b/arch/sh/kernel/cpu/sh2a/setup-sh7203.c | |||
| @@ -176,10 +176,12 @@ static DECLARE_INTC_DESC(intc_desc, "sh7203", vectors, groups, | |||
| 176 | static struct plat_sci_port scif0_platform_data = { | 176 | static struct plat_sci_port scif0_platform_data = { |
| 177 | .mapbase = 0xfffe8000, | 177 | .mapbase = 0xfffe8000, |
| 178 | .flags = UPF_BOOT_AUTOCONF, | 178 | .flags = UPF_BOOT_AUTOCONF, |
| 179 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 179 | .scscr = SCSCR_RIE | SCSCR_TIE | SCSCR_RE | SCSCR_TE | |
| 180 | SCSCR_REIE, | ||
| 180 | .scbrr_algo_id = SCBRR_ALGO_2, | 181 | .scbrr_algo_id = SCBRR_ALGO_2, |
| 181 | .type = PORT_SCIF, | 182 | .type = PORT_SCIF, |
| 182 | .irqs = { 192, 192, 192, 192 }, | 183 | .irqs = { 192, 192, 192, 192 }, |
| 184 | .regtype = SCIx_SH2_SCIF_FIFODATA_REGTYPE, | ||
| 183 | }; | 185 | }; |
| 184 | 186 | ||
| 185 | static struct platform_device scif0_device = { | 187 | static struct platform_device scif0_device = { |
| @@ -193,10 +195,12 @@ static struct platform_device scif0_device = { | |||
| 193 | static struct plat_sci_port scif1_platform_data = { | 195 | static struct plat_sci_port scif1_platform_data = { |
| 194 | .mapbase = 0xfffe8800, | 196 | .mapbase = 0xfffe8800, |
| 195 | .flags = UPF_BOOT_AUTOCONF, | 197 | .flags = UPF_BOOT_AUTOCONF, |
| 196 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 198 | .scscr = SCSCR_RIE | SCSCR_TIE | SCSCR_RE | SCSCR_TE | |
| 199 | SCSCR_REIE, | ||
| 197 | .scbrr_algo_id = SCBRR_ALGO_2, | 200 | .scbrr_algo_id = SCBRR_ALGO_2, |
| 198 | .type = PORT_SCIF, | 201 | .type = PORT_SCIF, |
| 199 | .irqs = { 196, 196, 196, 196 }, | 202 | .irqs = { 196, 196, 196, 196 }, |
| 203 | .regtype = SCIx_SH2_SCIF_FIFODATA_REGTYPE, | ||
| 200 | }; | 204 | }; |
| 201 | 205 | ||
| 202 | static struct platform_device scif1_device = { | 206 | static struct platform_device scif1_device = { |
| @@ -210,10 +214,12 @@ static struct platform_device scif1_device = { | |||
| 210 | static struct plat_sci_port scif2_platform_data = { | 214 | static struct plat_sci_port scif2_platform_data = { |
| 211 | .mapbase = 0xfffe9000, | 215 | .mapbase = 0xfffe9000, |
| 212 | .flags = UPF_BOOT_AUTOCONF, | 216 | .flags = UPF_BOOT_AUTOCONF, |
| 213 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 217 | .scscr = SCSCR_RIE | SCSCR_TIE | SCSCR_RE | SCSCR_TE | |
| 218 | SCSCR_REIE, | ||
| 214 | .scbrr_algo_id = SCBRR_ALGO_2, | 219 | .scbrr_algo_id = SCBRR_ALGO_2, |
| 215 | .type = PORT_SCIF, | 220 | .type = PORT_SCIF, |
| 216 | .irqs = { 200, 200, 200, 200 }, | 221 | .irqs = { 200, 200, 200, 200 }, |
| 222 | .regtype = SCIx_SH2_SCIF_FIFODATA_REGTYPE, | ||
| 217 | }; | 223 | }; |
| 218 | 224 | ||
| 219 | static struct platform_device scif2_device = { | 225 | static struct platform_device scif2_device = { |
| @@ -227,10 +233,12 @@ static struct platform_device scif2_device = { | |||
| 227 | static struct plat_sci_port scif3_platform_data = { | 233 | static struct plat_sci_port scif3_platform_data = { |
| 228 | .mapbase = 0xfffe9800, | 234 | .mapbase = 0xfffe9800, |
| 229 | .flags = UPF_BOOT_AUTOCONF, | 235 | .flags = UPF_BOOT_AUTOCONF, |
| 230 | .scscr = SCSCR_RE | SCSCR_TE | SCSCR_REIE, | 236 | .scscr = SCSCR_RIE | SCSCR_TIE | SCSCR_RE | SCSCR_TE | |
| 237 | SCSCR_REIE, | ||
| 231 | .scbrr_algo_id = SCBRR_ALGO_2, | 238 | .scbrr_algo_id = SCBRR_ALGO_2, |
| 232 | .type = PORT_SCIF, | 239 | .type = PORT_SCIF, |
| 233 | .irqs = { 204, 204, 204, 204 }, | 240 | .irqs = { 204, 204, 204, 204 }, |
| 241 | .regtype = SCIx_SH2_SCIF_FIFODATA_REGTYPE, | ||
| 234 | }; | 242 | }; |
| 235 | 243 | ||
| 236 | static struct platform_device scif3_device = { | 244 | static struct platform_device scif3_device = { |
diff --git a/arch/sh/kernel/syscalls_32.S b/arch/sh/kernel/syscalls_32.S index 293e39c59c0..ee56a9b1a98 100644 --- a/arch/sh/kernel/syscalls_32.S +++ b/arch/sh/kernel/syscalls_32.S | |||
| @@ -382,3 +382,5 @@ ENTRY(sys_call_table) | |||
| 382 | .long sys_syncfs | 382 | .long sys_syncfs |
| 383 | .long sys_sendmmsg | 383 | .long sys_sendmmsg |
| 384 | .long sys_setns | 384 | .long sys_setns |
| 385 | .long sys_process_vm_readv /* 365 */ | ||
| 386 | .long sys_process_vm_writev | ||
diff --git a/arch/sh/kernel/syscalls_64.S b/arch/sh/kernel/syscalls_64.S index ceb34b94afa..9af7de26fb7 100644 --- a/arch/sh/kernel/syscalls_64.S +++ b/arch/sh/kernel/syscalls_64.S | |||
| @@ -402,3 +402,5 @@ sys_call_table: | |||
| 402 | .long sys_syncfs | 402 | .long sys_syncfs |
| 403 | .long sys_sendmmsg | 403 | .long sys_sendmmsg |
| 404 | .long sys_setns /* 375 */ | 404 | .long sys_setns /* 375 */ |
| 405 | .long sys_process_vm_readv | ||
| 406 | .long sys_process_vm_writev | ||
