git.samba.org
/
sfrench
/
cifs-2.6.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
b1cce6b
)
Merge branch 'fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/xscaleiop
author
Russell King
<rmk@dyn-67.arm.linux.org.uk>
Thu, 6 Nov 2008 18:04:23 +0000
(18:04 +0000)
committer
Russell King
<rmk+kernel@arm.linux.org.uk>
Thu, 6 Nov 2008 18:04:23 +0000
(18:04 +0000)
arch/arm/mm/cache-xsc3l2.c
patch
|
blob
|
history
diff --git
a/arch/arm/mm/cache-xsc3l2.c
b/arch/arm/mm/cache-xsc3l2.c
index 10b1bae1a258f782f0aaf67e128f8a8aef514672..464de893a988033180ac9bb7e25c1a53daa6f149 100644
(file)
--- a/
arch/arm/mm/cache-xsc3l2.c
+++ b/
arch/arm/mm/cache-xsc3l2.c
@@
-98,7
+98,7
@@
static void xsc3_l2_inv_range(unsigned long start, unsigned long end)
/*
* Clean and invalidate partial last cache line.
*/
- if (
end & (CACHE_LINE_SIZE - 1
)) {
+ if (
start < end && (end & (CACHE_LINE_SIZE - 1)
)) {
xsc3_l2_clean_pa(end & ~(CACHE_LINE_SIZE - 1));
xsc3_l2_inv_pa(end & ~(CACHE_LINE_SIZE - 1));
end &= ~(CACHE_LINE_SIZE - 1);
@@
-107,7
+107,7
@@
static void xsc3_l2_inv_range(unsigned long start, unsigned long end)
/*
* Invalidate all full cache lines between 'start' and 'end'.
*/
- while (start
!=
end) {
+ while (start
<
end) {
xsc3_l2_inv_pa(start);
start += CACHE_LINE_SIZE;
}