Skip to content

Commit 6a00cb6

Browse files
Firoz Khanpaulburton
authored andcommitted
mips: remove syscall table entries
The config flag - CONFIG_MIPS_MT_FPAFF uses to check whether which syscall entries need to be used in scall32-o32.S file. One of the patch in this patch series will generate syscall table file. But CONFIG_MIPS_MT_FPAFF flag will add more complexity in the script to generate the syscall table file. In order to come up with a common implementation across all archit- ecture, we need to remove mipsmt_sys_sched_setaffinity and mipsmt- _sys_sched_getaffinity from the table and define it in other way. Signed-off-by: Firoz Khan <firoz.khan@linaro.org> Signed-off-by: Paul Burton <paul.burton@mips.com> Cc: linux-mips@vger.kernel.org Cc: Ralf Baechle <ralf@linux-mips.org> Cc: James Hogan <jhogan@kernel.org> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Cc: Philippe Ombredanne <pombredanne@nexb.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Kate Stewart <kstewart@linuxfoundation.org> Cc: y2038@lists.linaro.org Cc: linux-kernel@vger.kernel.org Cc: linux-arch@vger.kernel.org Cc: arnd@arndb.de Cc: deepa.kernel@gmail.com Cc: marcin.juszkiewicz@linaro.org
1 parent be85643 commit 6a00cb6

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

arch/mips/kernel/scall32-o32.S

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,18 @@ einval: li v0, -ENOSYS
205205
jr ra
206206
END(sys_syscall)
207207

208+
#ifdef CONFIG_MIPS_MT_FPAFF
209+
/*
210+
* For FPU affinity scheduling on MIPS MT processors, we need to
211+
* intercept sys_sched_xxxaffinity() calls until we get a proper hook
212+
* in kernel/sched/core.c. Considered only temporary we only support
213+
* these hooks for the 32-bit kernel - there is no MIPS64 MT processor
214+
* atm.
215+
*/
216+
#define sys_sched_setaffinity mipsmt_sys_sched_setaffinity
217+
#define sys_sched_getaffinity mipsmt_sys_sched_getaffinity
218+
#endif /* CONFIG_MIPS_MT_FPAFF */
219+
208220
.align 2
209221
.type sys_call_table, @object
210222
EXPORT(sys_call_table)
@@ -447,20 +459,8 @@ EXPORT(sys_call_table)
447459
PTR sys_tkill
448460
PTR sys_sendfile64
449461
PTR sys_futex
450-
#ifdef CONFIG_MIPS_MT_FPAFF
451-
/*
452-
* For FPU affinity scheduling on MIPS MT processors, we need to
453-
* intercept sys_sched_xxxaffinity() calls until we get a proper hook
454-
* in kernel/sched/core.c. Considered only temporary we only support
455-
* these hooks for the 32-bit kernel - there is no MIPS64 MT processor
456-
* atm.
457-
*/
458-
PTR mipsmt_sys_sched_setaffinity
459-
PTR mipsmt_sys_sched_getaffinity
460-
#else
461462
PTR sys_sched_setaffinity
462463
PTR sys_sched_getaffinity /* 4240 */
463-
#endif /* CONFIG_MIPS_MT_FPAFF */
464464
PTR sys_io_setup
465465
PTR sys_io_destroy
466466
PTR sys_io_getevents

0 commit comments

Comments
 (0)