Module Name:    src
Committed By:   snj
Date:           Wed Sep 16 04:41:14 UTC 2009

Modified Files:
        src/sys/arch/alpha/alpha [netbsd-5]: pmap.c

Log Message:
Pull up following revision(s) (requested by mhitch in ticket #954):
        sys/arch/alpha/alpha/pmap.c: revision 1.242
Alpha will size the mutex structure in pmap_tlb_shootdown_q to 16 bytes.
Change the command and pad accordingly;  now pmap_tlb_shootdown_q entries
really are cache-aligned.


To generate a diff of this commit:
cvs rdiff -u -r1.236.10.1 -r1.236.10.2 src/sys/arch/alpha/alpha/pmap.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/alpha/alpha/pmap.c
diff -u src/sys/arch/alpha/alpha/pmap.c:1.236.10.1 src/sys/arch/alpha/alpha/pmap.c:1.236.10.2
--- src/sys/arch/alpha/alpha/pmap.c:1.236.10.1	Wed Sep 16 04:24:46 2009
+++ src/sys/arch/alpha/alpha/pmap.c	Wed Sep 16 04:41:13 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: pmap.c,v 1.236.10.1 2009/09/16 04:24:46 snj Exp $ */
+/* $NetBSD: pmap.c,v 1.236.10.2 2009/09/16 04:41:13 snj Exp $ */
 
 /*-
  * Copyright (c) 1998, 1999, 2000, 2001, 2007, 2008 The NetBSD Foundation, Inc.
@@ -140,7 +140,7 @@
 
 #include <sys/cdefs.h>			/* RCS ID & Copyright macro defns */
 
-__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.236.10.1 2009/09/16 04:24:46 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pmap.c,v 1.236.10.2 2009/09/16 04:41:13 snj Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -421,11 +421,11 @@
 
 static struct pmap_tlb_shootdown_q {
 	TAILQ_HEAD(, pmap_tlb_shootdown_job) pq_head;	/* queue 16b */
-	kmutex_t pq_lock;		/* spin lock on queue 12b */
+	kmutex_t pq_lock;		/* spin lock on queue 16b */
 	int pq_pte;			/* aggregate PTE bits 4b */
 	int pq_count;			/* number of pending requests 4b */
 	int pq_tbia;			/* pending global flush 4b */
-	uint8_t pq_pad[64-16-12-4-4-4];	/* pad to 64 bytes */
+	uint8_t pq_pad[64-16-16-4-4-4];	/* pad to 64 bytes */
 } pmap_tlb_shootdown_q[ALPHA_MAXPROCS] __aligned(CACHE_LINE_SIZE);
 
 /* If we have more pending jobs than this, we just nail the whole TLB. */

Reply via email to