projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a19b4a1
)
[AVR32] Don't use kmap() in flush_icache_page()
author
Haavard Skinnemoen
<hskinnemoen@atmel.com>
Thu, 1 Mar 2007 15:32:31 +0000
(16:32 +0100)
committer
Haavard Skinnemoen
<hskinnemoen@atmel.com>
Wed, 7 Mar 2007 09:50:29 +0000
(10:50 +0100)
flush_icache_page() can be called from atomic context, so we can't
use kmap(). Use page_address() instead.
Signed-off-by: Haavard Skinnemoen <hskinnemoen@atmel.com>
arch/avr32/mm/cache.c
patch
|
blob
|
history
diff --git
a/arch/avr32/mm/cache.c
b/arch/avr32/mm/cache.c
index
fb13f72
..
8f7b1c3
100644
(file)
--- a/
arch/avr32/mm/cache.c
+++ b/
arch/avr32/mm/cache.c
@@
-121,9
+121,8
@@
void flush_icache_range(unsigned long start, unsigned long end)
void flush_icache_page(struct vm_area_struct *vma, struct page *page)
{
if (vma->vm_flags & VM_EXEC) {
- void *v =
kmap
(page);
+ void *v =
page_address
(page);
__flush_icache_range((unsigned long)v, (unsigned long)v + PAGE_SIZE);
- kunmap(v);
}
}