summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorJoonsoo Kim <js1304@gmail.com>2013-02-09 06:28:05 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2013-02-16 17:54:22 +0000
commited8fd2186a4e4f3b98434093b56f9b793d48443e (patch)
treea38246555389c59db8711ce60d2983c4269c054f /sound
parent48dc369d21b41f6400d15cdaf9411e2e6fd62323 (diff)
downloadlinux-stable-ed8fd2186a4e4f3b98434093b56f9b793d48443e.tar.gz
linux-stable-ed8fd2186a4e4f3b98434093b56f9b793d48443e.tar.bz2
linux-stable-ed8fd2186a4e4f3b98434093b56f9b793d48443e.zip
ARM: 7645/1: ioremap: introduce an infrastructure for static mapped area
In current implementation, we used ARM-specific flag, that is, VM_ARM_STATIC_MAPPING, for distinguishing ARM specific static mapped area. The purpose of static mapped area is to re-use static mapped area when entire physical address range of the ioremap request can be covered by this area. This implementation causes needless overhead for some cases. For example, assume that there is only one static mapped area and vmlist has 300 areas. Every time we call ioremap, we check 300 areas for deciding whether it is matched or not. Moreover, even if there is no static mapped area and vmlist has 300 areas, every time we call ioremap, we check 300 areas in now. If we construct a extra list for static mapped area, we can eliminate above mentioned overhead. With a extra list, if there is one static mapped area, we just check only one area and proceed next operation quickly. In fact, it is not a critical problem, because ioremap is not frequently used. But reducing overhead is better idea. Another reason for doing this work is for removing architecture dependency on vmalloc layer. I think that vmlist and vmlist_lock is internal data structure for vmalloc layer. Some codes for debugging and stat inevitably use vmlist and vmlist_lock. But it is preferable that they are used as least as possible in outside of vmalloc.c Now, I introduce an ARM-specific infrastructure for static mapped area. In the following patch, we will use this and resolve above mentioned problem. Reviewed-by: Nicolas Pitre <nico@linaro.org> Tested-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions