瀏覽代碼

[IA64] Scaling fix for simultaneous unaligned accesses

Eliminate a hot shared cacheline that occurs if multiple cpus are
taking unaligned exceptions.

Signed-off-by: Jack Steiner <steiner@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Jack Steiner 19 年之前
父節點
當前提交
79c83bd15a
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      arch/ia64/kernel/unaligned.c

+ 2 - 1
arch/ia64/kernel/unaligned.c

@@ -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;