Skip to content

Commit d94d0e2

Browse files
committed
Merge branch 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus
Pull MIPS updates from Ralf Baechle: "hree minor patches. All have sat in -next for a few days" * 'upstream' of git://git.linux-mips.org/pub/scm/ralf/upstream-linus: MIPS: fpu.h: Fix build when CONFIG_BUG is not set MIPS: Wire up sched_setattr/sched_getattr syscalls MIPS: Alchemy: Fix DB1100 GPIO registration
2 parents 3e382dd + 97b8b16 commit d94d0e2

File tree

7 files changed

+24
-11
lines changed

7 files changed

+24
-11
lines changed

arch/mips/alchemy/devboards/db1000.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -534,13 +534,10 @@ static int __init db1000_dev_init(void)
534534
s0 = AU1100_GPIO1_INT;
535535
s1 = AU1100_GPIO4_INT;
536536

537+
gpio_request(19, "sd0_cd");
538+
gpio_request(20, "sd1_cd");
537539
gpio_direction_input(19); /* sd0 cd# */
538540
gpio_direction_input(20); /* sd1 cd# */
539-
gpio_direction_input(21); /* touch pendown# */
540-
gpio_direction_input(207); /* SPI MISO */
541-
gpio_direction_output(208, 0); /* SPI MOSI */
542-
gpio_direction_output(209, 1); /* SPI SCK */
543-
gpio_direction_output(210, 1); /* SPI CS# */
544541

545542
/* spi_gpio on SSI0 pins */
546543
pfc = __raw_readl((void __iomem *)SYS_PINFUNC);

arch/mips/include/asm/fpu.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ static inline int __enable_fpu(enum fpu_mode mode)
7474
default:
7575
BUG();
7676
}
77+
78+
return SIGFPE;
7779
}
7880

7981
#define __disable_fpu() \

arch/mips/include/uapi/asm/unistd.h

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -369,16 +369,18 @@
369369
#define __NR_process_vm_writev (__NR_Linux + 346)
370370
#define __NR_kcmp (__NR_Linux + 347)
371371
#define __NR_finit_module (__NR_Linux + 348)
372+
#define __NR_sched_setattr (__NR_Linux + 349)
373+
#define __NR_sched_getattr (__NR_Linux + 350)
372374

373375
/*
374376
* Offset of the last Linux o32 flavoured syscall
375377
*/
376-
#define __NR_Linux_syscalls 348
378+
#define __NR_Linux_syscalls 350
377379

378380
#endif /* _MIPS_SIM == _MIPS_SIM_ABI32 */
379381

380382
#define __NR_O32_Linux 4000
381-
#define __NR_O32_Linux_syscalls 348
383+
#define __NR_O32_Linux_syscalls 350
382384

383385
#if _MIPS_SIM == _MIPS_SIM_ABI64
384386

@@ -695,16 +697,18 @@
695697
#define __NR_kcmp (__NR_Linux + 306)
696698
#define __NR_finit_module (__NR_Linux + 307)
697699
#define __NR_getdents64 (__NR_Linux + 308)
700+
#define __NR_sched_setattr (__NR_Linux + 309)
701+
#define __NR_sched_getattr (__NR_Linux + 310)
698702

699703
/*
700704
* Offset of the last Linux 64-bit flavoured syscall
701705
*/
702-
#define __NR_Linux_syscalls 308
706+
#define __NR_Linux_syscalls 310
703707

704708
#endif /* _MIPS_SIM == _MIPS_SIM_ABI64 */
705709

706710
#define __NR_64_Linux 5000
707-
#define __NR_64_Linux_syscalls 308
711+
#define __NR_64_Linux_syscalls 310
708712

709713
#if _MIPS_SIM == _MIPS_SIM_NABI32
710714

@@ -1025,15 +1029,17 @@
10251029
#define __NR_process_vm_writev (__NR_Linux + 310)
10261030
#define __NR_kcmp (__NR_Linux + 311)
10271031
#define __NR_finit_module (__NR_Linux + 312)
1032+
#define __NR_sched_setattr (__NR_Linux + 313)
1033+
#define __NR_sched_getattr (__NR_Linux + 314)
10281034

10291035
/*
10301036
* Offset of the last N32 flavoured syscall
10311037
*/
1032-
#define __NR_Linux_syscalls 312
1038+
#define __NR_Linux_syscalls 314
10331039

10341040
#endif /* _MIPS_SIM == _MIPS_SIM_NABI32 */
10351041

10361042
#define __NR_N32_Linux 6000
1037-
#define __NR_N32_Linux_syscalls 312
1043+
#define __NR_N32_Linux_syscalls 314
10381044

10391045
#endif /* _UAPI_ASM_UNISTD_H */

arch/mips/kernel/scall32-o32.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -563,3 +563,5 @@ EXPORT(sys_call_table)
563563
PTR sys_process_vm_writev
564564
PTR sys_kcmp
565565
PTR sys_finit_module
566+
PTR sys_sched_setattr
567+
PTR sys_sched_getattr /* 4350 */

arch/mips/kernel/scall64-64.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,4 +425,6 @@ EXPORT(sys_call_table)
425425
PTR sys_kcmp
426426
PTR sys_finit_module
427427
PTR sys_getdents64
428+
PTR sys_sched_setattr
429+
PTR sys_sched_getattr /* 5310 */
428430
.size sys_call_table,.-sys_call_table

arch/mips/kernel/scall64-n32.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,4 +418,6 @@ EXPORT(sysn32_call_table)
418418
PTR compat_sys_process_vm_writev /* 6310 */
419419
PTR sys_kcmp
420420
PTR sys_finit_module
421+
PTR sys_sched_setattr
422+
PTR sys_sched_getattr
421423
.size sysn32_call_table,.-sysn32_call_table

arch/mips/kernel/scall64-o32.S

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,4 +541,6 @@ EXPORT(sys32_call_table)
541541
PTR compat_sys_process_vm_writev
542542
PTR sys_kcmp
543543
PTR sys_finit_module
544+
PTR sys_sched_setattr
545+
PTR sys_sched_getattr /* 4350 */
544546
.size sys32_call_table,.-sys32_call_table

0 commit comments

Comments
 (0)