linux-mips
[Top] [All Lists]

[PATCH V3 5/8] MIPS: Add numa api support

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH V3 5/8] MIPS: Add numa api support
From: Huacai Chen <chenhc@lemote.com>
Date: Thu, 26 Jun 2014 11:41:29 +0800
Cc: John Crispin <john@phrozen.org>, "Steven J. Hill" <Steven.Hill@imgtec.com>, Aurelien Jarno <aurelien@aurel32.net>, linux-mips@linux-mips.org, Fuxin Zhang <zhangfx@lemote.com>, Zhangjin Wu <wuzhangjin@gmail.com>, Huacai Chen <chenhc@lemote.com>
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=WQ6DV2WQsihnxjot3Iz4ouWNbEdjf3QRy6mBSKdqWgs=; b=VtkktEmPVsEjPReNjomkuRJOOjhMcgxH8PEz5XNF8Xk3i8ustOvN4+DdHzbkG/yBDW DNMlKSlG56+WFaM7OPMKuiEox6OAb6hFY/tfb41cEAB36BNUOpuxX9qWF3SmbBdIZ+BV BHGVCctbkA2DdJEoRfbi6Ah0J5yLL8je0QLpgIbdEmJ5ftfMMNjJpXtDp67pxKSvi2mq CZ1PRdcmdQFIDRwMx0C7fylHT6HAxZEUkdLLptvL3A275oEUY/ILGodKZtBiOopJYc0s siHSnugheiN3PHKOj8yfIzisn2Fu5eW0ku5LZSz2+Y6Atd16pDwK3WcHuxncCIkmLOso ftMA==
In-reply-to: <1403754092-26607-1-git-send-email-chenhc@lemote.com>
List-archive: <http://www.linux-mips.org/archives/linux-mips/>
List-help: <mailto:ecartis@linux-mips.org?Subject=help>
List-id: linux-mips <linux-mips.eddie.linux-mips.org>
List-owner: <mailto:ralf@linux-mips.org>
List-post: <mailto:linux-mips@linux-mips.org>
List-software: Ecartis version 1.0.0
List-subscribe: <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips>
List-unsubscribe: <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <1403754092-26607-1-git-send-email-chenhc@lemote.com>
Sender: linux-mips-bounce@linux-mips.org
Enable sys_mbind()/sys_get_mempolicy()/sys_set_mempolicy() for O32, N32,
and N64 ABIs. By the way, O32/N32 should use the compat version of
sys_migrate_pages()/sys_move_pages(), so fix that.

Signed-off-by: Huacai Chen <chenhc@lemote.com>
---
 arch/mips/kernel/scall32-o32.S |    4 ++--
 arch/mips/kernel/scall64-64.S  |    4 ++--
 arch/mips/kernel/scall64-n32.S |   10 +++++-----
 arch/mips/kernel/scall64-o32.S |    8 ++++----
 4 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/arch/mips/kernel/scall32-o32.S b/arch/mips/kernel/scall32-o32.S
index 3245474..6bfdc82 100644
--- a/arch/mips/kernel/scall32-o32.S
+++ b/arch/mips/kernel/scall32-o32.S
@@ -495,8 +495,8 @@ EXPORT(sys_call_table)
        PTR     sys_tgkill
        PTR     sys_utimes
        PTR     sys_mbind
-       PTR     sys_ni_syscall                  /* sys_get_mempolicy */
-       PTR     sys_ni_syscall                  /* 4270 sys_set_mempolicy */
+       PTR     sys_get_mempolicy
+       PTR     sys_set_mempolicy               /* 4270 */
        PTR     sys_mq_open
        PTR     sys_mq_unlink
        PTR     sys_mq_timedsend
diff --git a/arch/mips/kernel/scall64-64.S b/arch/mips/kernel/scall64-64.S
index be2fedd..0952139 100644
--- a/arch/mips/kernel/scall64-64.S
+++ b/arch/mips/kernel/scall64-64.S
@@ -347,8 +347,8 @@ EXPORT(sys_call_table)
        PTR     sys_tgkill                      /* 5225 */
        PTR     sys_utimes
        PTR     sys_mbind
-       PTR     sys_ni_syscall                  /* sys_get_mempolicy */
-       PTR     sys_ni_syscall                  /* sys_set_mempolicy */
+       PTR     sys_get_mempolicy
+       PTR     sys_set_mempolicy
        PTR     sys_mq_open                     /* 5230 */
        PTR     sys_mq_unlink
        PTR     sys_mq_timedsend
diff --git a/arch/mips/kernel/scall64-n32.S b/arch/mips/kernel/scall64-n32.S
index c1dbcda..7641c87 100644
--- a/arch/mips/kernel/scall64-n32.S
+++ b/arch/mips/kernel/scall64-n32.S
@@ -339,9 +339,9 @@ EXPORT(sysn32_call_table)
        PTR     compat_sys_clock_nanosleep
        PTR     sys_tgkill
        PTR     compat_sys_utimes               /* 6230 */
-       PTR     sys_ni_syscall                  /* sys_mbind */
-       PTR     sys_ni_syscall                  /* sys_get_mempolicy */
-       PTR     sys_ni_syscall                  /* sys_set_mempolicy */
+       PTR     compat_sys_mbind
+       PTR     compat_sys_get_mempolicy
+       PTR     compat_sys_set_mempolicy
        PTR     compat_sys_mq_open
        PTR     sys_mq_unlink                   /* 6235 */
        PTR     compat_sys_mq_timedsend
@@ -358,7 +358,7 @@ EXPORT(sysn32_call_table)
        PTR     sys_inotify_init
        PTR     sys_inotify_add_watch
        PTR     sys_inotify_rm_watch
-       PTR     sys_migrate_pages               /* 6250 */
+       PTR     compat_sys_migrate_pages        /* 6250 */
        PTR     sys_openat
        PTR     sys_mkdirat
        PTR     sys_mknodat
@@ -379,7 +379,7 @@ EXPORT(sysn32_call_table)
        PTR     sys_sync_file_range
        PTR     sys_tee
        PTR     compat_sys_vmsplice             /* 6270 */
-       PTR     sys_move_pages
+       PTR     compat_sys_move_pages
        PTR     compat_sys_set_robust_list
        PTR     compat_sys_get_robust_list
        PTR     compat_sys_kexec_load
diff --git a/arch/mips/kernel/scall64-o32.S b/arch/mips/kernel/scall64-o32.S
index f1343cc..18cfa11 100644
--- a/arch/mips/kernel/scall64-o32.S
+++ b/arch/mips/kernel/scall64-o32.S
@@ -473,9 +473,9 @@ EXPORT(sys32_call_table)
        PTR     compat_sys_clock_nanosleep      /* 4265 */
        PTR     sys_tgkill
        PTR     compat_sys_utimes
-       PTR     sys_ni_syscall                  /* sys_mbind */
-       PTR     sys_ni_syscall                  /* sys_get_mempolicy */
-       PTR     sys_ni_syscall                  /* 4270 sys_set_mempolicy */
+       PTR     compat_sys_mbind
+       PTR     compat_sys_get_mempolicy
+       PTR     compat_sys_set_mempolicy        /* 4270 */
        PTR     compat_sys_mq_open
        PTR     sys_mq_unlink
        PTR     compat_sys_mq_timedsend
@@ -492,7 +492,7 @@ EXPORT(sys32_call_table)
        PTR     sys_inotify_init
        PTR     sys_inotify_add_watch           /* 4285 */
        PTR     sys_inotify_rm_watch
-       PTR     sys_migrate_pages
+       PTR     compat_sys_migrate_pages
        PTR     compat_sys_openat
        PTR     sys_mkdirat
        PTR     sys_mknodat                     /* 4290 */
-- 
1.7.7.3


<Prev in Thread] Current Thread [Next in Thread>