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
...@@ -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