Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Use __cacheline_aligned
details: https://anonhg.NetBSD.org/src/rev/ffb7b9cb3f8f
branches: trunk
changeset: 781276:ffb7b9cb3f8f
user: matt <matt%NetBSD.org@localhost>
date: Thu Aug 30 02:23:14 2012 +0000
description:
Use __cacheline_aligned
diffstat:
sys/kern/kern_lock.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 36672ecceaf8 -r ffb7b9cb3f8f sys/kern/kern_lock.c
--- a/sys/kern/kern_lock.c Thu Aug 30 02:10:15 2012 +0000
+++ b/sys/kern/kern_lock.c Thu Aug 30 02:23:14 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_lock.c,v 1.152 2011/11/27 03:24:00 jmcneill Exp $ */
+/* $NetBSD: kern_lock.c,v 1.153 2012/08/30 02:23:14 matt Exp $ */
/*-
* Copyright (c) 2002, 2006, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_lock.c,v 1.152 2011/11/27 03:24:00 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_lock.c,v 1.153 2012/08/30 02:23:14 matt Exp $");
#include <sys/param.h>
#include <sys/proc.h>
@@ -53,7 +53,7 @@
bool kernel_lock_dodebug;
__cpu_simple_lock_t kernel_lock[CACHE_LINE_SIZE / sizeof(__cpu_simple_lock_t)]
- __aligned(CACHE_LINE_SIZE);
+ __cacheline_aligned;
void
assert_sleepable(void)
Home |
Main Index |
Thread Index |
Old Index