patch-2.4.19 linux-2.4.19/mm/highmem.c

Next file: linux-2.4.19/mm/memory.c
Previous file: linux-2.4.19/mm/filemap.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.18/mm/highmem.c linux-2.4.19/mm/highmem.c
@@ -32,7 +32,8 @@
  */
 static int pkmap_count[LAST_PKMAP];
 static unsigned int last_pkmap_nr;
-static spinlock_t kmap_lock __cacheline_aligned_in_smp = SPIN_LOCK_UNLOCKED;
+static spinlock_cacheline_t kmap_lock_cacheline = {SPIN_LOCK_UNLOCKED};
+#define kmap_lock  kmap_lock_cacheline.lock
 
 pte_t * pkmap_page_table;
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)