Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Firoz Khan and committed by
Paul Burton
6a00cb61 be856439

+12 -12
+12 -12
arch/mips/kernel/scall32-o32.S
··· 205 205 jr ra 206 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 220 .align 2 209 221 .type sys_call_table, @object 210 222 EXPORT(sys_call_table) ··· 459 447 PTR sys_tkill 460 448 PTR sys_sendfile64 461 449 PTR sys_futex 462 - #ifdef CONFIG_MIPS_MT_FPAFF 463 - /* 464 - * For FPU affinity scheduling on MIPS MT processors, we need to 465 - * intercept sys_sched_xxxaffinity() calls until we get a proper hook 466 - * in kernel/sched/core.c. Considered only temporary we only support 467 - * these hooks for the 32-bit kernel - there is no MIPS64 MT processor 468 - * atm. 469 - */ 470 - PTR mipsmt_sys_sched_setaffinity 471 - PTR mipsmt_sys_sched_getaffinity 472 - #else 473 450 PTR sys_sched_setaffinity 474 451 PTR sys_sched_getaffinity /* 4240 */ 475 - #endif /* CONFIG_MIPS_MT_FPAFF */ 476 452 PTR sys_io_setup 477 453 PTR sys_io_destroy 478 454 PTR sys_io_getevents