[PATCH] - Scaling fix for simulatneous unaligned accesses

From: Jack Steiner <steiner_at_sgi.com>
Date: 2006-01-25 09:32:11
Eliminate a hot shared cacheline that occurs if multiple cpus are
taking unaligned exceptions.

	Signed-off-by: Jack Steiner <steiner@sgi.com>


Index: linux/arch/ia64/kernel/unaligned.c
===================================================================
--- linux.orig/arch/ia64/kernel/unaligned.c	2006-01-23 14:02:18.582928211 -0600
+++ linux/arch/ia64/kernel/unaligned.c	2006-01-24 16:02:26.266232267 -0600
@@ -1283,8 +1283,9 @@ within_logging_rate_limit (void)
 
 	if (jiffies - last_time > 5*HZ)
 		count = 0;
-	if (++count < 5) {
+	if (count < 5) {
 		last_time = jiffies;
+		count++;
 		return 1;
 	}
 	return 0;
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Wed Jan 25 09:32:17 2006

This archive was generated by hypermail 2.1.8 : 2006-01-25 09:32:25 EST