aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFiroz Khan <firoz.khan@linaro.org>2018-12-13 04:07:37 -0500
committerPaul Burton <paul.burton@mips.com>2018-12-14 14:19:01 -0500
commit6a00cb6175a4212e314a8f3166a66cfc2eee9e05 (patch)
tree33651bdb3e5a82dd12b9354583ef7b36b59dad2c
parentbe856439c998854c009b1f2ef9084a39b1295cec (diff)
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
-rw-r--r--arch/mips/kernel/scall32-o32.S24
1 files changed, 12 insertions, 12 deletions
diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S
index 10f636765728..43fa5cd9d8a2 100644
--- a/arch/mips/kernel/scall32-o32.S
+++ b/arch/mips/kernel/scall32-o32.S
@@ -205,6 +205,18 @@ einval: li v0, -ENOSYS
205 jr ra 205 jr ra
206 END(sys_syscall) 206 END(sys_syscall)
207 207
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
208 .align 2 220 .align 2
209 .type sys_call_table, @object 221 .type sys_call_table, @object
210EXPORT(sys_call_table) 222EXPORT(sys_call_table)
@@ -447,20 +459,8 @@ EXPORT(sys_call_table)
447 PTR sys_tkill 459 PTR sys_tkill
448 PTR sys_sendfile64 460 PTR sys_sendfile64
449 PTR sys_futex 461 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
461 PTR sys_sched_setaffinity 462 PTR sys_sched_setaffinity
462 PTR sys_sched_getaffinity /* 4240 */ 463 PTR sys_sched_getaffinity /* 4240 */
463#endif /* CONFIG_MIPS_MT_FPAFF */
464 PTR sys_io_setup 464 PTR sys_io_setup
465 PTR sys_io_destroy 465 PTR sys_io_destroy
466 PTR sys_io_getevents 466 PTR sys_io_getevents