Skip to content

Commit

Permalink
[PATCH] x86_64: Use __always_inline for __inline_memcpy
Browse files Browse the repository at this point in the history
Inspired from i386 changes

Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Jun 26, 2006
1 parent 0f4fdb7 commit 79121ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/asm-x86_64/string.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
/* Written 2002 by Andi Kleen */

/* Only used for special circumstances. Stolen from i386/string.h */
static inline void * __inline_memcpy(void * to, const void * from, size_t n)
static __always_inline void *
__inline_memcpy(void * to, const void * from, size_t n)
{
unsigned long d0, d1, d2;
__asm__ __volatile__(
Expand Down

0 comments on commit 79121ea

Please sign in to comment.