projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f7d2b7
)
powerpc: use memset_io() to clear CPM Muram
author
LEROY Christophe
<christophe.leroy@c-s.fr>
Tue, 19 May 2015 10:07:46 +0000
(12:07 +0200)
committer
Scott Wood
<scottwood@freescale.com>
Sat, 8 Aug 2015 03:59:20 +0000
(22:59 -0500)
CPM muram is not cached, so use memset_io() instead of memset()
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/sysdev/cpm_common.c
patch
|
blob
|
history
diff --git
a/arch/powerpc/sysdev/cpm_common.c
b/arch/powerpc/sysdev/cpm_common.c
index
4f78695
..
e2ea519
100644
(file)
--- a/
arch/powerpc/sysdev/cpm_common.c
+++ b/
arch/powerpc/sysdev/cpm_common.c
@@
-147,7
+147,7
@@
unsigned long cpm_muram_alloc(unsigned long size, unsigned long align)
spin_lock_irqsave(&cpm_muram_lock, flags);
cpm_muram_info.alignment = align;
start = rh_alloc(&cpm_muram_info, size, "commproc");
- memset(cpm_muram_addr(start), 0, size);
+ memset
_io
(cpm_muram_addr(start), 0, size);
spin_unlock_irqrestore(&cpm_muram_lock, flags);
return start;