[patch 7/8] Immediate Values Powerpc Optimization Fix

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <akpm@...>, <linux-kernel@...>
Cc: Mathieu Desnoyers <mathieu.desnoyers@...>, Christoph Hellwig <hch@...>
Date: Thursday, September 6, 2007 - 4:02 pm

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
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 7/8] Immediate Values Powerpc Optimization Fix, Mathieu Desnoyers, (Thu Sep 6, 4:02 pm)