Commit 6f4944c5 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] numa api: x86_64 support

From: Andi Kleen <ak@suse.de>

Add NUMA API system calls on x86-64

This includes a bugfix to prevent miscompilation on gcc 3.2 of bitmap.h
parent d3f42511
...@@ -534,7 +534,7 @@ __SYSCALL(__NR_utimes, sys_utimes) ...@@ -534,7 +534,7 @@ __SYSCALL(__NR_utimes, sys_utimes)
__SYSCALL(__NR_vserver, sys_ni_syscall) __SYSCALL(__NR_vserver, sys_ni_syscall)
#define __NR_vserver 236 #define __NR_vserver 236
__SYSCALL(__NR_vserver, sys_ni_syscall) __SYSCALL(__NR_vserver, sys_ni_syscall)
#define __NR_mbind 237 #define __NR_mbind 237
__SYSCALL(__NR_mbind, sys_ni_syscall) __SYSCALL(__NR_mbind, sys_ni_syscall)
#define __NR_set_mempolicy 238 #define __NR_set_mempolicy 238
__SYSCALL(__NR_set_mempolicy, sys_ni_syscall) __SYSCALL(__NR_set_mempolicy, sys_ni_syscall)
...@@ -546,7 +546,7 @@ __SYSCALL(__NR_mq_open, sys_mq_open) ...@@ -546,7 +546,7 @@ __SYSCALL(__NR_mq_open, sys_mq_open)
__SYSCALL(__NR_mq_unlink, sys_mq_unlink) __SYSCALL(__NR_mq_unlink, sys_mq_unlink)
#define __NR_mq_timedsend 242 #define __NR_mq_timedsend 242
__SYSCALL(__NR_mq_timedsend, sys_mq_timedsend) __SYSCALL(__NR_mq_timedsend, sys_mq_timedsend)
#define __NR_mq_timedreceive 243 #define __NR_mq_timedreceive 243
__SYSCALL(__NR_mq_timedreceive, sys_mq_timedreceive) __SYSCALL(__NR_mq_timedreceive, sys_mq_timedreceive)
#define __NR_mq_notify 244 #define __NR_mq_notify 244
__SYSCALL(__NR_mq_notify, sys_mq_notify) __SYSCALL(__NR_mq_notify, sys_mq_notify)
......
...@@ -29,7 +29,8 @@ static inline void bitmap_fill(unsigned long *bitmap, int bits) ...@@ -29,7 +29,8 @@ static inline void bitmap_fill(unsigned long *bitmap, int bits)
static inline void bitmap_copy(unsigned long *dst, static inline void bitmap_copy(unsigned long *dst,
const unsigned long *src, int bits) const unsigned long *src, int bits)
{ {
memcpy(dst, src, BITS_TO_LONGS(bits)*sizeof(unsigned long)); int len = BITS_TO_LONGS(bits)*sizeof(unsigned long);
memcpy(dst, src, len);
} }
void bitmap_shift_right(unsigned long *dst, void bitmap_shift_right(unsigned long *dst,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment