aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/page_32.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/asm-x86/page_32.h')
-rw-r--r--include/asm-x86/page_32.h53
1 files changed, 0 insertions, 53 deletions
diff --git a/include/asm-x86/page_32.h b/include/asm-x86/page_32.h
index 69e520059b26..b4750ef44920 100644
--- a/include/asm-x86/page_32.h
+++ b/include/asm-x86/page_32.h
@@ -4,59 +4,6 @@
4#ifdef __KERNEL__ 4#ifdef __KERNEL__
5#ifndef __ASSEMBLY__ 5#ifndef __ASSEMBLY__
6 6
7#include <linux/string.h>
8
9#ifdef CONFIG_X86_USE_3DNOW
10
11#include <asm/mmx.h>
12
13static inline void clear_page(void *page)
14{
15 mmx_clear_page(page);
16}
17
18static inline void copy_page(void *to, void *from)
19{
20 mmx_copy_page(to, from);
21}
22
23#else
24
25/*
26 * On older X86 processors it's not a win to use MMX here it seems.
27 * Maybe the K6-III ?
28 */
29
30static inline void clear_page(void *page)
31{
32 memset(page, 0, PAGE_SIZE);
33}
34
35static inline void copy_page(void *to, void *from)
36{
37 memcpy(to, from, PAGE_SIZE);
38}
39
40#endif
41
42struct page;
43
44static void inline clear_user_page(void *page, unsigned long vaddr,
45 struct page *pg)
46{
47 clear_page(page);
48}
49
50static void inline copy_user_page(void *to, void *from, unsigned long vaddr,
51 struct page *topage)
52{
53 copy_page(to, from);
54}
55
56#define __alloc_zeroed_user_highpage(movableflags, vma, vaddr) \
57 alloc_page_vma(GFP_HIGHUSER | __GFP_ZERO | movableflags, vma, vaddr)
58#define __HAVE_ARCH_ALLOC_ZEROED_USER_HIGHPAGE
59
60/* 7/*
61 * These are used to make use of C type-checking.. 8 * These are used to make use of C type-checking..
62 */ 9 */