diff options
author | Ingo Molnar <mingo@elte.hu> | 2009-04-06 03:02:57 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-04-06 03:02:57 -0400 |
commit | f541ae326fa120fa5c57433e4d9a133df212ce41 (patch) | |
tree | bdbd94ec72cfc601118051cb35e8617d55510177 /include/linux/io-mapping.h | |
parent | e255357764f92afcafafbd4879b222b8c752065a (diff) | |
parent | 0221c81b1b8eb0cbb6b30a0ced52ead32d2b4e4c (diff) |
Merge branch 'linus' into perfcounters/core-v2
Merge reason: we have gathered quite a few conflicts, need to merge upstream
Conflicts:
arch/powerpc/kernel/Makefile
arch/x86/ia32/ia32entry.S
arch/x86/include/asm/hardirq.h
arch/x86/include/asm/unistd_32.h
arch/x86/include/asm/unistd_64.h
arch/x86/kernel/cpu/common.c
arch/x86/kernel/irq.c
arch/x86/kernel/syscall_table_32.S
arch/x86/mm/iomap_32.c
include/linux/sched.h
kernel/Makefile
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/linux/io-mapping.h')
-rw-r--r-- | include/linux/io-mapping.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/include/linux/io-mapping.h b/include/linux/io-mapping.h index c1b48301dc7d..0adb0f91568c 100644 --- a/include/linux/io-mapping.h +++ b/include/linux/io-mapping.h | |||
@@ -49,9 +49,8 @@ static inline struct io_mapping * | |||
49 | io_mapping_create_wc(resource_size_t base, unsigned long size) | 49 | io_mapping_create_wc(resource_size_t base, unsigned long size) |
50 | { | 50 | { |
51 | struct io_mapping *iomap; | 51 | struct io_mapping *iomap; |
52 | pgprot_t prot; | ||
53 | 52 | ||
54 | if (!reserve_io_memtype_wc(base, size, &prot)) | 53 | if (!is_io_mapping_possible(base, size)) |
55 | return NULL; | 54 | return NULL; |
56 | 55 | ||
57 | iomap = kmalloc(sizeof(*iomap), GFP_KERNEL); | 56 | iomap = kmalloc(sizeof(*iomap), GFP_KERNEL); |
@@ -60,14 +59,13 @@ io_mapping_create_wc(resource_size_t base, unsigned long size) | |||
60 | 59 | ||
61 | iomap->base = base; | 60 | iomap->base = base; |
62 | iomap->size = size; | 61 | iomap->size = size; |
63 | iomap->prot = prot; | 62 | iomap->prot = pgprot_writecombine(__pgprot(__PAGE_KERNEL)); |
64 | return iomap; | 63 | return iomap; |
65 | } | 64 | } |
66 | 65 | ||
67 | static inline void | 66 | static inline void |
68 | io_mapping_free(struct io_mapping *mapping) | 67 | io_mapping_free(struct io_mapping *mapping) |
69 | { | 68 | { |
70 | free_io_memtype(mapping->base, mapping->size); | ||
71 | kfree(mapping); | 69 | kfree(mapping); |
72 | } | 70 | } |
73 | 71 | ||