lkml.org 
[lkml]   [2007]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] Immediate Values - Powerpc Optimization Fix
Immediate Values Powerpc Optimization Fix

Fix a bad call to flush_icache_range(). The second parameter is the end address
of the range, not the length.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
CC: Christoph Hellwig <hch@infradead.org>
---
arch/powerpc/kernel/immediate.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: linux-2.6-lttng/arch/powerpc/kernel/immediate.c
===================================================================
--- linux-2.6-lttng.orig/arch/powerpc/kernel/immediate.c 2007-08-28 16:36:10.000000000 -0400
+++ linux-2.6-lttng/arch/powerpc/kernel/immediate.c 2007-08-28 16:36:40.000000000 -0400
@@ -67,7 +67,7 @@ int arch_immediate_update(const struct _
memcpy((void*)immediate->immediate, (void*)immediate->var,
immediate->size);
flush_icache_range((unsigned long)immediate->immediate,
- immediate->size);
+ (unsigned long)immediate->immediate + immediate->size);
return 0;
}

@@ -99,5 +99,5 @@ void __init arch_immediate_update_early(
memcpy((void*)immediate->immediate, (void*)immediate->var,
immediate->size);
flush_icache_range((unsigned long)immediate->immediate,
- immediate->size);
+ (unsigned long)immediate->immediate + immediate->size);
}
--
Mathieu Desnoyers
Computer Engineering Ph.D. Student, Ecole Polytechnique de Montreal
OpenPGP key fingerprint: 8CD5 52C3 8E3C 4140 715F BA06 3F25 A8FE 3BAE 9A68
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2007-08-28 22:43    [from the cache]
©2003-2011 Jasper Spaans