* [PATCH] powerpc: wire up sys_mlock2
@ 2015-11-19 20:23 Denis Kirjanov
2015-11-20 12:00 ` Michael Ellerman
0 siblings, 1 reply; 3+ messages in thread
From: Denis Kirjanov @ 2015-11-19 20:23 UTC (permalink / raw)
To: Michael Ellerman; +Cc: linuxppc-dev, Denis Kirjanov
Tested with tools/testing/selftests/vm/mlock2-tests
both on ppc64 and ppc32
Signed-off-by: Denis Kirjanov <kda@linux-powerpc.org>
---
arch/powerpc/include/asm/systbl.h | 1 +
arch/powerpc/include/asm/unistd.h | 2 +-
arch/powerpc/include/uapi/asm/unistd.h | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/powerpc/include/asm/systbl.h b/arch/powerpc/include/asm/systbl.h
index c9e26cb..dcce86c 100644
--- a/arch/powerpc/include/asm/systbl.h
+++ b/arch/powerpc/include/asm/systbl.h
@@ -382,3 +382,4 @@ COMPAT_SYS(shmat)
SYSCALL(shmdt)
SYSCALL(shmget)
COMPAT_SYS(shmctl)
+SYSCALL_SPU(mlock2)
diff --git a/arch/powerpc/include/asm/unistd.h b/arch/powerpc/include/asm/unistd.h
index 6d8f802..4b6b8ac 100644
--- a/arch/powerpc/include/asm/unistd.h
+++ b/arch/powerpc/include/asm/unistd.h
@@ -12,7 +12,7 @@
#include <uapi/asm/unistd.h>
-#define __NR_syscalls 378
+#define __NR_syscalls 379
#define __NR__exit __NR_exit
#define NR_syscalls __NR_syscalls
diff --git a/arch/powerpc/include/uapi/asm/unistd.h b/arch/powerpc/include/uapi/asm/unistd.h
index 81579e9..1effea5 100644
--- a/arch/powerpc/include/uapi/asm/unistd.h
+++ b/arch/powerpc/include/uapi/asm/unistd.h
@@ -400,5 +400,6 @@
#define __NR_shmdt 375
#define __NR_shmget 376
#define __NR_shmctl 377
+#define __NR_mlock2 378
#endif /* _UAPI_ASM_POWERPC_UNISTD_H_ */
--
2.4.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] powerpc: wire up sys_mlock2
2015-11-19 20:23 [PATCH] powerpc: wire up sys_mlock2 Denis Kirjanov
@ 2015-11-20 12:00 ` Michael Ellerman
2015-11-20 12:17 ` Denis Kirjanov
0 siblings, 1 reply; 3+ messages in thread
From: Michael Ellerman @ 2015-11-20 12:00 UTC (permalink / raw)
To: Denis Kirjanov; +Cc: linuxppc-dev
On Thu, 2015-11-19 at 23:23 +0300, Denis Kirjanov wrote:
> Tested with tools/testing/selftests/vm/mlock2-tests
> both on ppc64 and ppc32
Actually I did this myself and it's been in my fixes branch (which is in
linux-next) for a few days. I just asked Linus to pull it.
cheers
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] powerpc: wire up sys_mlock2
2015-11-20 12:00 ` Michael Ellerman
@ 2015-11-20 12:17 ` Denis Kirjanov
0 siblings, 0 replies; 3+ messages in thread
From: Denis Kirjanov @ 2015-11-20 12:17 UTC (permalink / raw)
To: Michael Ellerman; +Cc: Denis Kirjanov, linuxppc-dev
On 11/20/15, Michael Ellerman <mpe@ellerman.id.au> wrote:
> On Thu, 2015-11-19 at 23:23 +0300, Denis Kirjanov wrote:
>
>> Tested with tools/testing/selftests/vm/mlock2-tests
>> both on ppc64 and ppc32
>
> Actually I did this myself and it's been in my fixes branch (which is in
> linux-next) for a few days. I just asked Linus to pull it.
Ok, great!
>
> cheers
>
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/linuxppc-dev
--=20
Regards / Mit besten Gr=C3=BC=C3=9Fen,
Denis
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-11-20 12:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-19 20:23 [PATCH] powerpc: wire up sys_mlock2 Denis Kirjanov
2015-11-20 12:00 ` Michael Ellerman
2015-11-20 12:17 ` Denis Kirjanov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox