Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

asm/vga.h: don't bother with scr_mem{cpy,move}v() unless we need to

... if they are identical to fallbacks, just leave them alone.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

authored by

Al Viro and committed by
Arnd Bergmann
a36498d2 fb56007c

-25
-4
arch/mips/include/asm/vga.h
··· 47 47 memset16(s, cpu_to_le16(v), count / 2); 48 48 } 49 49 50 - #define scr_memcpyw(d, s, c) memcpy(d, s, c) 51 - #define scr_memmovew(d, s, c) memmove(d, s, c) 52 - #define VT_BUF_HAVE_MEMCPYW 53 - #define VT_BUF_HAVE_MEMMOVEW 54 50 #define VT_BUF_HAVE_MEMSETW 55 51 56 52 #endif /* _ASM_VGA_H */
-5
arch/powerpc/include/asm/vga.h
··· 40 40 memset16(s, cpu_to_le16(v), n / 2); 41 41 } 42 42 43 - #define VT_BUF_HAVE_MEMCPYW 44 - #define VT_BUF_HAVE_MEMMOVEW 45 - #define scr_memcpyw memcpy 46 - #define scr_memmovew memmove 47 - 48 43 #endif /* !CONFIG_VGA_CONSOLE && !CONFIG_MDA_CONSOLE */ 49 44 50 45 #ifdef __powerpc64__
-16
arch/sparc/include/asm/vga.h
··· 14 14 15 15 #define VT_BUF_HAVE_RW 16 16 #define VT_BUF_HAVE_MEMSETW 17 - #define VT_BUF_HAVE_MEMCPYW 18 - #define VT_BUF_HAVE_MEMMOVEW 19 17 20 18 #undef scr_writew 21 19 #undef scr_readw ··· 37 39 BUG_ON((long) p >= 0); 38 40 39 41 memset16(p, cpu_to_le16(v), n / 2); 40 - } 41 - 42 - static inline void scr_memcpyw(u16 *d, u16 *s, unsigned int n) 43 - { 44 - BUG_ON((long) d >= 0); 45 - 46 - memcpy(d, s, n); 47 - } 48 - 49 - static inline void scr_memmovew(u16 *d, u16 *s, unsigned int n) 50 - { 51 - BUG_ON((long) d >= 0); 52 - 53 - memmove(d, s, n); 54 42 } 55 43 56 44 #define VGA_MAP_MEM(x,s) (x)